diff options
author | Silvio <silvio@devlet.com.br> | 2010-09-28 15:30:59 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-09-28 15:30:59 -0300 |
commit | 0e12894d6c504cb02731d7fba2f7e227faef3398 (patch) | |
tree | 78c39b971032401012f8488cb59c58b9a75b1d1d /lib/sfIsisImporterEntities.class.php | |
parent | bbcb70e48de302ab79b8f8468fb098739a9405ed (diff) | |
download | sf_isis_importer_plugin-0e12894d6c504cb02731d7fba2f7e227faef3398.tar.gz sf_isis_importer_plugin-0e12894d6c504cb02731d7fba2f7e227faef3398.tar.bz2 |
Support for custom parsing methods ad newOrExisting
Diffstat (limited to 'lib/sfIsisImporterEntities.class.php')
-rw-r--r-- | lib/sfIsisImporterEntities.class.php | 6 |
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'; } |