/** * The bundle name * @return string */ static function MyBundle() { $className = \get_class(new static()); $endPos = strpos($className, '\\Modules\\'); $bundleNS = String::Start($className, $endPos); $startPos = strrpos($bundleNS, '\\'); return String::Part($bundleNS, $startPos + 1); }
function ClassName($tableName) { $result = $tableName; foreach ($this->prefixNamespaces as $prefix => $namespace) { if ($prefix && System\String::StartsWith($prefix, $result, !$this->prefixesCaseSensitive)) { $result = System\String::Part($result, System\String::Length($prefix)); break; } } return $this->ToCamelCase($result); }