aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-09-28 15:30:59 -0300
committerSilvio <silvio@devlet.com.br>2010-09-28 15:30:59 -0300
commit0e12894d6c504cb02731d7fba2f7e227faef3398 (patch)
tree78c39b971032401012f8488cb59c58b9a75b1d1d
parentbbcb70e48de302ab79b8f8468fb098739a9405ed (diff)
downloadsf_isis_importer_plugin-0e12894d6c504cb02731d7fba2f7e227faef3398.tar.gz
sf_isis_importer_plugin-0e12894d6c504cb02731d7fba2f7e227faef3398.tar.bz2
Support for custom parsing methods ad newOrExisting
-rw-r--r--lib/sfIsisImporterEntities.class.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sfIsisImporterEntities.class.php b/lib/sfIsisImporterEntities.class.php
index 5c85c3d..7cf8258 100644
--- a/lib/sfIsisImporterEntities.class.php
+++ b/lib/sfIsisImporterEntities.class.php
@@ -185,7 +185,11 @@ class sfIsisImporterEntities {
}
// Determine parse method.
- if (method_exists($this, 'parse'. $entity .'Name'))
+ if (method_exists($this, 'parse'. $entity))
+ {
+ $method = 'parse'. $entity;
+ }
+ elseif (method_exists($this, 'parse'. $entity .'Name'))
{
$method = 'parse'. $entity .'Name';
}