diff options
author | Silvio <silvio@devlet.com.br> | 2010-07-30 18:23:15 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-07-30 18:23:15 -0300 |
commit | ac89ccd27ccd781b0e8c7534f41838c1c6a7050a (patch) | |
tree | 6235731f16cbf76f0dc53c5a4f2dd88cefdda738 | |
parent | 649168fd3a3dee88d6c56f762a1759f58f9286f9 (diff) | |
download | cinisis-ac89ccd27ccd781b0e8c7534f41838c1c6a7050a.tar.gz cinisis-ac89ccd27ccd781b0e8c7534f41838c1c6a7050a.tar.bz2 |
Adding methodName() to IsisConnector
-rw-r--r-- | classes/IsisConnector.php | 11 |
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 |