src/Mmi/Mvc/Structure.php
private static function _parseActions(array &$components, $controllerPath, $moduleName, $controllerName)
    {
        //łapanie nazw akcji w kodzie
        if (preg_match_all('/function ([a-zA-Z0-9]+Action)\(/', file_get_contents($controllerPath), $actions)) {
            foreach ($actions[1] as $action) {
                $components[$moduleName][$controllerName][substr($action, 0, -6)] = 1;
            }
        }
    }
private static function _parseActions(array &$components, $controllerPath, $moduleName, $controllerName)
    {
        //łapanie nazw akcji w kodzie
        if (preg_match_all('/function ([a-zA-Z0-9]+Action)\(/', file_get_contents($controllerPath), $actions)) {
            foreach ($actions[1] as $action) {
                $components[$moduleName][$controllerName][substr($action, 0, -6)] = 1;
            }
        }
    }
private static function _parseActions ( array & $ components , $ controllerPath , $ moduleName , $ controllerName ) { //łapanie nazw akcji w kodzie if ( preg_match_all ( '/function ([a-zA-Z0-9]+Action)\(/' , file_get_contents ( $ controllerPath ) , $ actions ) ) { foreach ( $ actions [ 1 ] as $ action ) { $ components [ $ moduleName ] [ $ controllerName ] [ substr ( $ action , 0 , - 6 ) ] = 1 ; } } }
Parsowanie akcji w kontrolerze
@param array $components
@param string $controllerPath
@param string $moduleName
@param string $controllerName
Parsowanie akcji w kontrolerze