Пример #1
0
 public function EntityAndSettingsEvent(EntityAndSettingsEvent $event)
 {
     //first is entity class, second is canedit and third is title field
     $event->setEntityAndSettings($event->setEntityClass('Adam\\SilverspringsBundle\\Entity\\HomePage'), $event->setTitle("Home Page"), $event->setCanEdit("true"), $event->setCanDelete("true"), $event->setCanAdd("true"), $event->setIcon("home"));
     $event->setEntityAndSettings($event->setEntityClass('Adam\\AdminBundle\\Entity\\Contacts'), $event->setTitle("Contact Page"), $event->setCanEdit("true"), $event->setCanAdd("true"), $event->setIcon("envelope"));
     $event->setEntityAndSettings($event->setEntityClass('Adam\\AdminBundle\\Entity\\User'), $event->setTitle("User"), $event->setCanEdit("true"), $event->setCanAdd("true"), $event->setCanDelete("true"), $event->setIcon("user"));
     $event->setEntityAndSettings($event->setEntityClass('Adam\\AdminBundle\\Entity\\Page'), $event->setTitle("Page"), $event->setCanEdit("true"), $event->setCanAdd("true"), $event->setIcon("list-alt"));
     $event->setEntityAndSettings($event->setEntityClass('Adam\\AdminBundle\\Entity\\LandingPage'), $event->setTitle("Landing Page"), $event->setCanEdit("true"), $event->setCanAdd("true"), $event->setIcon("th-list"));
     $event->setEntityAndSettings($event->setEntityClass('Adam\\AdminBundle\\Entity\\NavigationMenu'), $event->setTitle("Navigation Menu"), $event->setCanEdit("true"), $event->setCanAdd("true"), $event->setIcon("option-horizontal"));
 }
Пример #2
0
 public function EntityAndSettingsEvent(EntityAndSettingsEvent $event)
 {
     //first is entity class, second is canedit and third is title field
     $event->setEntityAndSettings($event->setEntityClass('Adam\\AdminBundle\\Entity\\Contacts'), $event->setTitle("Contact Page"), $event->setCanEdit("true"), $event->setCanAdd("true"));
     //        $event->setEntityAndSettings($event->setEntityClass('Adam\AdminBundle\Entity\HomePage'), $event->setTitle("Home Page"), $event->setCanEdit("true"), $event->setCanAdd("true"));
     $event->setEntityAndSettings($event->setEntityClass('Adam\\AdminBundle\\Entity\\User'), $event->setTitle("User"), $event->setCanEdit("true"), $event->setCanAdd("true"), $event->setCanDelete("true"));
     $event->setEntityAndSettings($event->setEntityClass('Adam\\AdminBundle\\Entity\\Page'), $event->setTitle("Page"), $event->setCanEdit("true"), $event->setCanAdd("true"));
     $event->setEntityAndSettings($event->setEntityClass('Adam\\AdminBundle\\Entity\\LandingPage'), $event->setTitle("Landing Page"), $event->setCanEdit("true"), $event->setCanAdd("true"));
     $event->setEntityAndSettings($event->setEntityClass('Adam\\AdminBundle\\Entity\\NavigationMenu'), $event->setTitle("Navigation Menu"), $event->setCanEdit("true"), $event->setCanAdd("true"));
     $event->setEntityAndSettings($event->setEntityClass('Adam\\AdminBundle\\Entity\\NavigationLink'), $event->setTitle("Navigation Menu Link"), $event->setCanEdit("true"), $event->setCanAdd("true"));
 }