aboutsummaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-07-30 18:23:15 -0300
committerSilvio <silvio@devlet.com.br>2010-07-30 18:23:15 -0300
commitac89ccd27ccd781b0e8c7534f41838c1c6a7050a (patch)
tree6235731f16cbf76f0dc53c5a4f2dd88cefdda738 /classes
parent649168fd3a3dee88d6c56f762a1759f58f9286f9 (diff)
downloadcinisis-ac89ccd27ccd781b0e8c7534f41838c1c6a7050a.tar.gz
cinisis-ac89ccd27ccd781b0e8c7534f41838c1c6a7050a.tar.bz2
Adding methodName() to IsisConnector
Diffstat (limited to 'classes')
-rw-r--r--classes/IsisConnector.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/classes/IsisConnector.php b/classes/IsisConnector.php
index ff686da..277412d 100644
--- a/classes/IsisConnector.php
+++ b/classes/IsisConnector.php
@@ -331,6 +331,17 @@ class IsisConnector {
}
/**
+ * Guess a method name from a type.
+ *
+ * @param string $type Mapping type
+ * @return string Method name
+ */
+ static function methodName($type)
+ {
+ return 'import'. ucfirst($type);
+ }
+
+ /**
* Check on an ISIS schema whether a field has a map.
*
* @param $field