Пример #1
0
 public function filters()
 {
     return array_merge(parent::filters(), array(array(static::ZERO_MODELS_FOR_CONTACT_CHECK_FILTER_PATH . ' + listForMarketing, index', 'controller' => $this, 'activeActionElementType' => EmailTemplatesForMarketingMenuActionElement::getType(), 'breadCrumbLinks' => static::getListBreadcrumbLinks(), 'stateMetadataAdapterClassName' => 'EmailTemplatesForMarketingStateMetadataAdapter'), array(static::ZERO_MODELS_FOR_WORKFLOW_CHECK_FILTER_PATH . ' + listForWorkflow', 'controller' => $this, 'activeActionElementType' => EmailTemplatesForWorkflowMenuActionElement::getType(), 'breadCrumbLinks' => static::getListBreadcrumbLinks(), 'stateMetadataAdapterClassName' => 'EmailTemplatesForWorkflowStateMetadataAdapter')));
 }
 /**
  * @return array
  */
 public static function getDefaultMetadata()
 {
     $metadata = array('global' => array('toolbar' => array('elements' => array(array('type' => 'MarketingDashboardMenu', 'iconClass' => 'icon-marketing-dashboard'), array('type' => 'MarketingListsMenu', 'iconClass' => 'icon-marketing-lists'), array('type' => EmailTemplatesForMarketingMenuActionElement::getType(), 'iconClass' => 'icon-email-templates'), array('type' => 'CampaignsMenu', 'iconClass' => 'icon-marketing-campaigns')))));
     return $metadata;
 }