Backend\Modules\Profiles\Actions\EditProfileGroup::execute PHP Метод

execute() публичный Метод

Execute the action.
public execute ( )
    public function execute()
    {
        // get parameters
        $this->id = $this->getParameter('id', 'int');
        $this->profileId = $this->getParameter('profile_id', 'int');
        // does the item exists
        if ($this->id !== null && BackendProfilesModel::existsProfileGroup($this->id)) {
            // does profile exists
            if ($this->profileId !== null && BackendProfilesModel::exists($this->profileId)) {
                parent::execute();
                $this->getData();
                $this->loadForm();
                $this->validateForm();
                $this->parse();
                $this->display();
            } else {
                $this->redirect(BackendModel::createURLForAction('Index') . '&error=non-existing');
            }
        } else {
            $this->redirect(BackendModel::createURLForAction('Index') . '&error=non-existing');
        }
    }