protected function startActionModule($action)
    {
        $this->controlAccess("module_$action");

        switch ($action) {
            case 'enable':
                return $this->module_model->enable($this->data_module['id']);
            case 'disable':
                return $this->module_model->disable($this->data_module['id']);
            case 'install':
                return $this->module_model->install($this->data_module['id']);
            case 'uninstall':
                return $this->module_model->uninstall($this->data_module['id']);
        }

        $this->outputHttpStatus(403);
        return null;
    }
protected function startActionModule($action)
    {
        $this->controlAccess("module_$action");

        switch ($action) {
            case 'enable':
                return $this->module_model->enable($this->data_module['id']);
            case 'disable':
                return $this->module_model->disable($this->data_module['id']);
            case 'install':
                return $this->module_model->install($this->data_module['id']);
            case 'uninstall':
                return $this->module_model->uninstall($this->data_module['id']);
        }

        $this->outputHttpStatus(403);
        return null;
    }
protected function startActionModule ( $ action ) { $ this -> controlAccess ( "module_$action" ) ; switch ( $ action ) { case 'enable' : return $ this -> module_model -> enable ( $ this -> data_module [ 'id' ] ) ; case 'disable' : return $ this -> module_model -> disable ( $ this -> data_module [ 'id' ] ) ; case 'install' : return $ this -> module_model -> install ( $ this -> data_module [ 'id' ] ) ; case 'uninstall' : return $ this -> module_model -> uninstall ( $ this -> data_module [ 'id' ] ) ; } $ this -> outputHttpStatus ( 403 ) ; return null ; }
Performs an action against a module
@param string $action
@return mixed
Performs an action against a module