protected function makeMassDeleteView($model, $activeAttributes, $selectedRecordCount, $title, $massDeleteViewClassName = 'MassDeleteView', $useModuleClassNameForItemLabel = true)
 {
     return parent::makeMassDeleteView($model, $activeAttributes, $selectedRecordCount, $title, $massDeleteViewClassName = 'MassDeleteView', false);
 }
 public function filters()
 {
     return array_merge(parent::filters(), array(array(self::getRightsFilterPath() . ' + drillDownDetails', 'moduleClassName' => 'ReportsModule', 'rightName' => ReportsModule::RIGHT_ACCESS_REPORTS), array(self::getRightsFilterPath() . ' + selectType', 'moduleClassName' => 'ReportsModule', 'rightName' => ReportsModule::RIGHT_CREATE_REPORTS), array(ZurmoModuleController::ZERO_MODELS_CHECK_FILTER_PATH . ' + list, index', 'controller' => $this)));
 }
 public function filters()
 {
     return array_merge(parent::filters(), array(array(static::ZERO_MODELS_CHECK_FILTER_PATH . ' + list, index', 'controller' => $this, 'activeActionElementType' => 'WorkflowMessageInQueuesMenu', 'breadCrumbLinks' => static::getListBreadcrumbLinks())));
 }
Beispiel #4
0
 public function filters()
 {
     return array_merge(parent::filters(), array(array(ZurmoBaseController::RIGHTS_FILTER_PATH, 'moduleClassName' => 'MarketingModule', 'rightName' => MarketingModule::RIGHT_ACCESS_MARKETING)));
 }
 public function filters()
 {
     return array_merge(parent::filters(), array(array(ZurmoBaseController::RIGHTS_FILTER_PATH . ' + pushDashboard', 'moduleClassName' => 'ZurmoModule', 'rightName' => ZurmoModule::RIGHT_PUSH_DASHBOARD_OR_LAYOUT)));
 }
 public function filters()
 {
     return array_merge(parent::filters(), array(array(ZurmoBaseController::RIGHTS_FILTER_PATH . ' - index, welcome, hideWelcome, getTip', 'moduleClassName' => 'HomeModule', 'rightName' => HomeModule::RIGHT_ACCESS_DASHBOARDS), array(ZurmoBaseController::RIGHTS_FILTER_PATH . ' + createDashboard', 'moduleClassName' => 'HomeModule', 'rightName' => HomeModule::RIGHT_CREATE_DASHBOARDS), array(ZurmoBaseController::RIGHTS_FILTER_PATH . ' + deleteDashboard', 'moduleClassName' => 'HomeModule', 'rightName' => HomeModule::RIGHT_DELETE_DASHBOARDS), array(ZurmoBaseController::RIGHTS_FILTER_PATH . ' + pushDashboard', 'moduleClassName' => 'ZurmoModule', 'rightName' => ZurmoModule::RIGHT_PUSH_DASHBOARD_OR_LAYOUT)));
 }
 public function filters()
 {
     return array_merge(parent::filters(), array(array(self::getRightsFilterPath() . ' + selectType', 'moduleClassName' => 'WorkflowsModule', 'rightName' => WorkflowsModule::RIGHT_CREATE_WORKFLOWS), array(static::USER_EMAIL_TEMPLATE_ACCESS_FILTER_PATH, 'controller' => $this), array(static::ZERO_MODELS_CHECK_FILTER_PATH . ' + list, index', 'controller' => $this, 'activeActionElementType' => 'WorkflowsMenu', 'breadCrumbLinks' => static::getListBreadcrumbLinks()), array(static::ZERO_MODELS_CHECK_FILTER_PATH . ' + manageOrder', 'controller' => $this, 'activeActionElementType' => 'WorkflowManageOrderMenu', 'breadCrumbLinks' => static::getManageOrderBreadcrumbLinks())));
 }
 public function filters()
 {
     return array_merge(parent::filters(), array(array(ZurmoBaseController::RIGHTS_FILTER_PATH, 'moduleClassName' => 'ZurmoModule', 'rightName' => ZurmoModule::RIGHT_ACCESS_ADMINISTRATION)));
 }
 public function filters()
 {
     $modelClassName = $this->getModule()->getPrimaryModelName();
     $viewClassName = $modelClassName . 'EditAndDetailsView';
     return array_merge(parent::filters(), array(array(ZurmoBaseController::REQUIRED_ATTRIBUTES_FILTER_PATH . ' + create, createFromRelation, edit', 'moduleClassName' => get_class($this->getModule()), 'viewClassName' => $viewClassName), array(ContactWebFormsDefaultController::ZERO_MODELS_CHECK_FILTER_PATH . ' + list, index', 'controller' => $this, 'activeActionElementType' => 'ContactWebFormEntriesListLink', 'breadcrumbLinks' => static::getListBreadcrumbLinks())));
 }
 public function filters()
 {
     $filters = array('apiRequest');
     return array_merge($filters, parent::filters());
 }
 public function filters()
 {
     $modelClassName = $this->getModule()->getPrimaryModelName();
     $viewClassName = $modelClassName . 'EditAndDetailsView';
     return array_merge(parent::filters(), array(array(ZurmoBaseController::REQUIRED_ATTRIBUTES_FILTER_PATH . ' + create, createFromRelation, edit', 'moduleClassName' => get_class($this->getModule()), 'viewClassName' => $viewClassName), array(ZurmoModuleController::ZERO_MODELS_CHECK_FILTER_PATH . ' + list, index', 'controller' => $this)));
 }
 /**
  * Override to process the security on the email message to match a related model if present.
  * (non-PHPdoc)
  * @see ZurmoBaseController::actionAfterSuccessfulModelSave()
  */
 protected function actionAfterSuccessfulModelSave($model, $modelToStringValue, $redirectUrlParams = null)
 {
     assert('$model instanceof CreateEmailMessageForm');
     $emailMessage = $model->getModel();
     $relatedId = ArrayUtil::getArrayValue(GetUtil::getData(), 'relatedId');
     $relatedModelClassName = ArrayUtil::getArrayValue(GetUtil::getData(), 'relatedModelClassName');
     if ($relatedId != null && $relatedModelClassName != null && is_subclass_of($relatedModelClassName, 'OwnedSecurableItem')) {
         $relatedModel = $relatedModelClassName::getById((int) $relatedId);
         $explicitReadWriteModelPermissions = ExplicitReadWriteModelPermissionsUtil::makeBySecurableItem($relatedModel);
         ExplicitReadWriteModelPermissionsUtil::resolveExplicitReadWriteModelPermissions($emailMessage, $explicitReadWriteModelPermissions);
     }
     parent::actionAfterSuccessfulModelSave($model, $modelToStringValue, $redirectUrlParams);
 }