public function getHandlers()
    {
        $commands = &gplcart_static('module.file_manager.handlers');

        if (isset($commands)) {
            return $commands;
        }

        $commands = (array) gplcart_config_get(__DIR__ . '/../config/commands.php');

        foreach ($commands as $id => &$command) {
            $command['command_id'] = $id;
        }

        $this->hook->attach('module.file_manager.handlers', $commands, $this);
        return $commands;
    }
public function getHandlers()
    {
        $commands = &gplcart_static('module.file_manager.handlers');

        if (isset($commands)) {
            return $commands;
        }

        $commands = (array) gplcart_config_get(__DIR__ . '/../config/commands.php');

        foreach ($commands as $id => &$command) {
            $command['command_id'] = $id;
        }

        $this->hook->attach('module.file_manager.handlers', $commands, $this);
        return $commands;
    }
public function getHandlers ( ) { $ commands = & gplcart_static ( 'module.file_manager.handlers' ) ; if ( isset ( $ commands ) ) { return $ commands ; } $ commands = ( array ) gplcart_config_get ( __DIR__ . '/../config/commands.php' ) ; foreach ( $ commands as $ id => & $ command ) { $ command [ 'command_id' ] = $ id ; } $ this -> hook -> attach ( 'module.file_manager.handlers' , $ commands , $ this ) ; return $ commands ; }
Returns an array of supported commands
@return array
Returns an array of supported commands