1 | <?php |
||
16 | class ClassNamingUtility |
||
17 | { |
||
18 | /** |
||
19 | * Explodes a modelName like \Vendor\Ext\Domain\Model\Foo into several |
||
20 | * pieces like vendorName, extensionName, subpackageKey and controllerName. |
||
21 | * |
||
22 | * @param string $modelName The model name to be exploded |
||
23 | * |
||
24 | * @throws Exception |
||
25 | * |
||
26 | * @return array Parts of the object model name |
||
27 | * |
||
28 | * @see \TYPO3\CMS\Core\Utility\ClassNamingUtility::explodeObjectControllerName |
||
29 | */ |
||
30 | public static function explodeObjectModelName($modelName) |
||
50 | |||
51 | /** |
||
52 | * Get the extension key by the given model name. |
||
53 | * |
||
54 | * @param string|object $modelClassName |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | public static function getExtensionKeyByModel($modelClassName) |
||
67 | |||
68 | /** |
||
69 | * Get FQN by path (segment). |
||
70 | * |
||
71 | * @param string $vendorName |
||
72 | * @param string $extensionKey |
||
73 | * @param string $path |
||
74 | * |
||
75 | * @return string |
||
76 | */ |
||
77 | public static function getFqnByPath($vendorName, $extensionKey, $path) |
||
85 | } |
||
86 |