From 0e12894d6c504cb02731d7fba2f7e227faef3398 Mon Sep 17 00:00:00 2001 From: Silvio Date: Tue, 28 Sep 2010 15:30:59 -0300 Subject: Support for custom parsing methods ad newOrExisting --- lib/sfIsisImporterEntities.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') 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'; } -- cgit v1.2.3