summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Ryan2011-10-02 16:19:27 (GMT)
committer Mike Ryan2011-10-02 16:19:27 (GMT)
commit7aa697fb2f49d645da36a472ce518d813b273b70 (patch)
tree2acbc26bea7369d957cb1d77ba50ca751d71e8d9
parentf458e1c5cf6547acfbc9dd8f960cfeb34e7d7140 (diff)
Issue #1290122 by mikeryan: Force destinations to implement __toString()
-rw-r--r--CHANGELOG.txt1
-rw-r--r--includes/destination.inc7
2 files changed, 8 insertions, 0 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 8aca154..dd6698b 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -6,6 +6,7 @@ Features and enhancements
- #1254398 - Prevent accidental emailing during migration.
Bug fixes
+- #1290122 - Force destinations to implement __toString().
- #1290120 - Warnings updating users if roles not set.
- #1290118 - Warning in MigrateItemJSON::getItem()
- #1133096 - Failure to clear currentRow in MigrateSourceMultiItems.
diff --git a/includes/destination.inc b/includes/destination.inc
index 2736ab3..0c417af 100644
--- a/includes/destination.inc
+++ b/includes/destination.inc
@@ -22,6 +22,13 @@ abstract class MigrateDestination {
* abstract static public function getKeySchema()
*/
+ /**
+ * Derived classes must implement __toString().
+ *
+ * @return string
+ * Description of the destination being migrated into
+ */
+ abstract public function __toString();
/**
* Derived classes must implement fields(), returning a list of available