Backend\Modules\Groups\Actions\Edit::getData PHP Метод

getData() приватный Метод

Get the data to edit
private getData ( )
    private function getData()
    {
        $this->id = $this->getParameter('id');
        // get dashboard sequence
        $this->hiddenOnDashboard = BackendGroupsModel::getSetting($this->id, 'hidden_on_dashboard');
        // get the record
        $this->record = BackendGroupsModel::get($this->id);
        // no item found, throw an exceptions, because somebody is fucking with our URL
        if (empty($this->record)) {
            $this->redirect(BackendModel::createURLForAction('Index') . '&error=non-existing');
        }
        $this->getWidgets();
        $this->getActions();
        $this->bundleActions();
    }