Inheritance: extends SecurableModule
 protected function resolveElementInformationDuringFormLayoutRender(&$elementInformation)
 {
     parent::resolveElementInformationDuringFormLayoutRender($elementInformation);
     $automaticDisable = CategoriesModule::isAutomaticCodeDisabled();
     if ($automaticDisable === false) {
         if ($elementInformation['attributeName'] == 'code') {
             $elementInformation['disabled'] = true;
         }
     }
 }
Ejemplo n.º 2
0
 public function actionMassDeleteProgress()
 {
     $pageSize = Yii::app()->pagination->resolveActiveForCurrentUserByType('massDeleteProgressPageSize');
     $category = new Category(false);
     $dataProvider = $this->getDataProviderByResolvingSelectAllFromGet(new CategoriesSearchForm($category), $pageSize, Yii::app()->user->userModel->id, null, 'CategoriesSearchView');
     $this->processMassDeleteProgress('Category', $pageSize, CategoriesModule::getModuleLabelByTypeAndLanguage('Plural'), $dataProvider);
 }