소스 검색

Merge pull request #882 from guignonv/patch-6

Allows query object to be dumped as a string.
Bradford Condon 6 년 전
부모
커밋
782df5a63e
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      tripal/includes/TripalFieldQuery.inc

+ 7 - 0
tripal/includes/TripalFieldQuery.inc

@@ -247,4 +247,11 @@ class TripalFieldQuery extends EntityFieldQuery {
       throw new EntityFieldQueryException(t("Field storage engine not found."));
     }
   }
+
+  /**
+   * Allows query object to be dumped as a string.
+   */
+  public function __toString() {
+    return print_r($this, TRUE);
+  }
 }