public function initialize(FilterControllerEvent $event)
 {
     parent::initialize($event);
     $this->model = $this->getModel('lead.lead');
     $this->entityClass = 'Mautic\\LeadBundle\\Entity\\Lead';
     $this->entityNameOne = 'contact';
     $this->entityNameMulti = 'contacts';
     $this->permissionBase = 'lead:leads';
     $this->serializerGroups = ['leadDetails', 'userList', 'publishDetails', 'ipAddress', 'tagList'];
 }
 public function initialize(FilterControllerEvent $event)
 {
     parent::initialize($event);
     $this->model = $this->factory->getModel('lead.list');
     $this->entityClass = 'Mautic\\LeadBundle\\Entity\\LeadList';
     $this->entityNameOne = 'list';
     $this->entityNameMulti = 'lists';
     $this->permissionBase = 'lead:lists';
     $this->serializerGroups = array("leadListDetails", "userList", "publishDetails", "ipAddress");
 }
 /**
  * {@inheritdoc}
  */
 public function initialize(FilterControllerEvent $event)
 {
     parent::initialize($event);
     $this->model = $this->getModel('page');
     $this->entityClass = 'Mautic\\PageBundle\\Entity\\Page';
     $this->entityNameOne = 'page';
     $this->entityNameMulti = 'pages';
     $this->permissionBase = 'page:pages';
     $this->serializerGroups = ['pageDetails', 'categoryList', 'publishDetails'];
 }
 /**
  * {@inheritdoc}
  */
 public function initialize(FilterControllerEvent $event)
 {
     parent::initialize($event);
     $this->model = $this->factory->getModel('user.role');
     $this->entityClass = 'Mautic\\UserBundle\\Entity\\Role';
     $this->entityNameOne = 'role';
     $this->entityNameMulti = 'roles';
     $this->permissionBase = 'user:roles';
     $this->serializerGroups = array('roleDetails', 'publishDetails');
 }
 /**
  * {@inheritdoc}
  */
 public function initialize(FilterControllerEvent $event)
 {
     parent::initialize($event);
     $this->model = $this->factory->getModel('point');
     $this->entityClass = 'Mautic\\PointBundle\\Entity\\Point';
     $this->entityNameOne = 'point';
     $this->entityNameMulti = 'points';
     $this->permissionBase = 'point:points';
     $this->serializerGroups = array('pointDetails', 'categoryList', 'publishDetails');
 }
 public function initialize(FilterControllerEvent $event)
 {
     parent::initialize($event);
     $this->model = $this->factory->getModel('asset');
     $this->entityClass = 'Mautic\\AssetBundle\\Entity\\Asset';
     $this->entityNameOne = 'asset';
     $this->entityNameMulti = 'assets';
     $this->permissionBase = 'asset:assets';
     $this->serializerGroups = array("assetDetails", "categoryList", "publishDetails");
 }
 /**
  * {@inheritdoc}
  */
 public function initialize(FilterControllerEvent $event)
 {
     parent::initialize($event);
     $this->model = $this->getModel('user.user');
     $this->entityClass = 'Mautic\\UserBundle\\Entity\\User';
     $this->entityNameOne = 'user';
     $this->entityNameMulti = 'users';
     $this->permissionBase = 'user:users';
     $this->serializerGroups = ['userDetails', 'roleList', 'publishDetails'];
 }
Beispiel #8
0
 /**
  * {@inheritdoc}
  */
 public function initialize(FilterControllerEvent $event)
 {
     parent::initialize($event);
     $this->model = $this->getModel('report');
     $this->entityClass = 'Mautic\\ReportBundle\\Entity\\Report';
     $this->entityNameOne = 'report';
     $this->entityNameMulti = 'reports';
     $this->permissionBase = 'report:reports';
     $this->serializerGroups = array('reportList', 'reportDetails');
 }
 public function initialize(FilterControllerEvent $event)
 {
     parent::initialize($event);
     $this->model = $this->getModel('dashboard');
     $this->entityClass = 'Mautic\\DashboardBundle\\Entity\\Widget';
     $this->entityNameOne = 'widget';
     $this->entityNameMulti = 'widgets';
     $this->permissionBase = 'dashboard:widgets';
     $this->serializerGroups = [];
 }
Beispiel #10
0
 public function initialize(FilterControllerEvent $event)
 {
     parent::initialize($event);
     $this->model = $this->getModel('email');
     $this->entityClass = 'Mautic\\EmailBundle\\Entity\\Email';
     $this->entityNameOne = 'email';
     $this->entityNameMulti = 'emails';
     $this->permissionBase = 'email:emails';
     $this->serializerGroups = array("emailDetails", "categoryList", "publishDetails", "assetList");
 }
Beispiel #11
0
 public function initialize(FilterControllerEvent $event)
 {
     parent::initialize($event);
     $this->model = $this->getModel('campaign');
     $this->entityClass = 'Mautic\\CampaignBundle\\Entity\\Campaign';
     $this->entityNameOne = 'campaign';
     $this->entityNameMulti = 'campaigns';
     $this->permissionBase = 'campaign:campaigns';
     $this->serializerGroups = array("campaignDetails", "categoryList", "publishDetails");
 }