Эх сурвалжийг харах

Merge pull request #882 from guignonv/patch-6

Allows query object to be dumped as a string.
Bradford Condon 6 жил өмнө
parent
commit
782df5a63e

+ 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);
+  }
 }