aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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