示例#1
0
 protected function configureRoutes(RouteCollection $collection)
 {
     parent::configureRoutes($collection);
     $collection->add('activate', $this->getRouterIdParameter() . '/activate');
     $collection->add('deactivate', $this->getRouterIdParameter() . '/deactivate');
 }
 /**
  * {@inheritdoc}
  */
 protected function configureRoutes(RouteCollection $collection)
 {
     parent::configureRoutes($collection);
     $collection->add('view', $this->getRouterIdParameter() . '/view');
     $collection->add('savePosition', 'save-position');
     $collection->add('switchParent', 'switch-parent');
     $collection->add('composePreview', '{block_id}/compose_preview', array('block_id' => null));
 }
 protected function configureRoutes(RouteCollection $collection)
 {
     // Me
     $collection->add('workflow', $this->getRouterIdParameter() . '/workflow');
     $collection->add('moveon', $this->getRouterIdParameter() . '/moveon');
     $collection->add('reset', $this->getRouterIdParameter() . '/reset');
     $collection->add('popto', $this->getRouterIdParameter() . '/popto');
     // Parent
     parent::configureRoutes($collection);
 }
 /**
  * (non-PHPdoc).
  *
  * @see \Sonata\AdminBundle\Admin\Admin::configureRoutes()
  */
 protected function configureRoutes(RouteCollection $collection)
 {
     parent::configureRoutes($collection);
     if (!$this->getAllowToAdd()) {
         $collection->remove('create');
     }
 }
 /**
  * {@inheritdoc}
  */
 protected function configureRoutes(RouteCollection $collection)
 {
     parent::configureRoutes($collection);
     $collection->remove('create');
     $collection->remove('delete');
 }
 protected function configureRoutes(RouteCollection $collection)
 {
     parent::configureRoutes($collection);
     $collection->remove('show');
     $collection->add('install-counter', 'install/counter/{id}', array('_controller' => 'WebCounterAdminController:installCounter'), array('id' => '\\d+'))->add('install-goals', 'install/goals/{id}', array('_controller' => 'ItBlasterCounterManagementBundle:WebCounterAdmin:installGoals'), array('id' => '\\d+'));
 }
 /**
  * @inheritdoc
  */
 protected function configureRoutes(RouteCollection $collection)
 {
     $collection->clearExcept(['list', 'show', 'batch', 'export']);
     parent::configureRoutes($collection);
 }
 protected function configureRoutes(RouteCollection $collection)
 {
     parent::configureRoutes($collection);
     $collection->add('get_fields', $this->getRouterIdParameter() . '/get_fields')->add('select_widget', $this->getRouterIdParameter() . '/select_widget')->add('create_field', $this->getRouterIdParameter() . '/create_field')->add('do_create_field', $this->getRouterIdParameter() . '/do_create_field/{type}')->add('edit_field', $this->getRouterIdParameter() . '/edit_field/{field_id}')->add('do_edit_field', $this->getRouterIdParameter() . '/do_edit_field/{field_id}')->add('delete_field', $this->getRouterIdParameter() . '/delete_field/{field_id}')->add('do_delete_field', $this->getRouterIdParameter() . '/do_delete_field/{field_id}')->add('move_field', $this->getRouterIdParameter() . '/move_field/{field_id}/{to}')->add('set_field_state', $this->getRouterIdParameter() . '/set_field_state/{item_id}/{active}')->add('select_constraint', $this->getRouterIdParameter() . '/select_constraint/{field_id}')->add('create_constraint', $this->getRouterIdParameter() . '/create_constraint/{field_id}')->add('do_create_constraint', $this->getRouterIdParameter() . '/do_create_constraint/{field_id}/{constraint}')->add('edit_constraint', $this->getRouterIdParameter() . '/edit_constraint/{constraint_id}')->add('do_edit_constraint', $this->getRouterIdParameter() . '/do_edit_constraint/{constraint_id}')->add('delete_constraint', $this->getRouterIdParameter() . '/delete_constraint/{constraint_id}')->add('do_delete_constraint', $this->getRouterIdParameter() . '/do_delete_constraint/{constraint_id}')->add('set_constraint_state', $this->getRouterIdParameter() . '/set_constraint_state/{item_id}/{active}')->add('get_listeners', $this->getRouterIdParameter() . '/get_listeners')->add('select_listener', $this->getRouterIdParameter() . '/select_listener')->add('create_listener', $this->getRouterIdParameter() . '/create_listener')->add('do_create_listener', $this->getRouterIdParameter() . '/do_create_listener/{listener}')->add('edit_listener', $this->getRouterIdParameter() . '/edit_listener/{listener_id}')->add('do_edit_listener', $this->getRouterIdParameter() . '/do_edit_listener/{listener_id}')->add('delete_listener', $this->getRouterIdParameter() . '/delete_listener/{listener_id}')->add('do_delete_listener', $this->getRouterIdParameter() . '/do_delete_listener/{listener_id}')->add('set_listener_state', $this->getRouterIdParameter() . '/set_listener_state/{item_id}/{active}')->add('get_templates', $this->getRouterIdParameter() . '/get_templates')->add('select_template', $this->getRouterIdParameter() . '/select_template')->add('create_template', $this->getRouterIdParameter() . '/create_template')->add('do_create_template', $this->getRouterIdParameter() . '/do_create_template/{template}')->add('edit_template', $this->getRouterIdParameter() . '/edit_template/{template_id}')->add('do_edit_template', $this->getRouterIdParameter() . '/do_edit_template/{template_id}')->add('delete_template', $this->getRouterIdParameter() . '/delete_template/{template_id}')->add('do_delete_template', $this->getRouterIdParameter() . '/do_delete_template/{template_id}')->add('set_template_state', $this->getRouterIdParameter() . '/set_template_state/{item_id}/{active}')->add('get_behaviors', $this->getRouterIdParameter() . '/get_behaviors')->add('do_create_behavior', $this->getRouterIdParameter() . '/do_create_behavior')->add('delete_behavior', $this->getRouterIdParameter() . '/delete_behavior/{behavior_id}')->add('do_delete_behavior', $this->getRouterIdParameter() . '/do_delete_behavior/{behavior_id}')->add('set_behavior_state', $this->getRouterIdParameter() . '/set_behavior_state/{item_id}/{active}')->add('select_behavior_condition', $this->getRouterIdParameter() . '/select_behavior_condition/{behavior_id}')->add('create_behavior_condition', $this->getRouterIdParameter() . '/create_behavior_condition/{behavior_id}')->add('do_create_behavior_condition', $this->getRouterIdParameter() . '/do_create_behavior_condition/{behavior_id}/{condition}')->add('edit_behavior_condition', $this->getRouterIdParameter() . '/edit_behavior_condition/{condition_id}')->add('do_edit_behavior_condition', $this->getRouterIdParameter() . '/do_edit_behavior_condition/{condition_id}')->add('delete_behavior_condition', $this->getRouterIdParameter() . '/delete_behavior_condition/{condition_id}')->add('do_delete_behavior_condition', $this->getRouterIdParameter() . '/do_delete_behavior_condition/{condition_id}')->add('set_behavior_condition_state', $this->getRouterIdParameter() . '/set_behavior_condition_state/{item_id}/{active}')->add('select_behavior_action', $this->getRouterIdParameter() . '/select_behavior_action/{behavior_id}/{check}')->add('create_behavior_action', $this->getRouterIdParameter() . '/create_behavior_action/{behavior_id}/{check}')->add('do_create_behavior_action', $this->getRouterIdParameter() . '/do_create_behavior_action/{behavior_id}/{check}/{action}')->add('edit_behavior_action', $this->getRouterIdParameter() . '/edit_behavior_action/{action_id}')->add('do_edit_behavior_action', $this->getRouterIdParameter() . '/do_edit_behavior_action/{action_id}')->add('delete_behavior_action', $this->getRouterIdParameter() . '/delete_behavior_action/{action_id}')->add('do_delete_behavior_action', $this->getRouterIdParameter() . '/do_delete_behavior_action/{action_id}')->add('set_behavior_action_state', $this->getRouterIdParameter() . '/set_behavior_action_state/{item_id}/{active}');
 }