Author: mcantelon
Date: Wed Apr 4 11:48:33 2012
New Revision: 11363
Log:
Added method to check to see if a certain CLI option is supported by a task.
Modified:
trunk/lib/task/import/csvImportBaseTask.class.php
Modified: trunk/lib/task/import/csvImportBaseTask.class.php
==============================================================================
--- trunk/lib/task/import/csvImportBaseTask.class.php Wed Apr 4 00:03:55
2012 (r11362)
+++ trunk/lib/task/import/csvImportBaseTask.class.php Wed Apr 4 11:48:33
2012 (r11363)
@@ -77,4 +77,20 @@
. "source name).\n";
}
}
+
+ /**
+ * Checks to see if a particular option is supported
+ *
+ * @param string $name option name
+ *
+ * @return boolean
+ */
+ protected function acceptsOption($name)
+ {
+ foreach($this->getOptions() as $option)
+ {
+ if ($name == $option->getName()) return TRUE;
+ }
+ return FALSE;
+ }
}
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.