當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Admin::configureRoutes方法代碼示例

本文整理匯總了PHP中Sonata\AdminBundle\Admin\Admin::configureRoutes方法的典型用法代碼示例。如果您正苦於以下問題:PHP Admin::configureRoutes方法的具體用法?PHP Admin::configureRoutes怎麽用?PHP Admin::configureRoutes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Sonata\AdminBundle\Admin\Admin的用法示例。


在下文中一共展示了Admin::configureRoutes方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: configureRoutes

 protected function configureRoutes(RouteCollection $collection)
 {
     parent::configureRoutes($collection);
     $collection->add('activate', $this->getRouterIdParameter() . '/activate');
     $collection->add('deactivate', $this->getRouterIdParameter() . '/deactivate');
 }
開發者ID:rikon,項目名稱:jobeet,代碼行數:6,代碼來源:AffiliateAdmin.php

示例2: configureRoutes

 /**
  * {@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));
 }
開發者ID:hason,項目名稱:SonataDashboardBundle,代碼行數:11,代碼來源:BlockAdmin.php

示例3: configureRoutes

 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);
 }
開發者ID:simonoche,項目名稱:workflow-bundle,代碼行數:10,代碼來源:WorkflowAdmin.php

示例4: configureRoutes

 /**
  * (non-PHPdoc).
  *
  * @see \Sonata\AdminBundle\Admin\Admin::configureRoutes()
  */
 protected function configureRoutes(RouteCollection $collection)
 {
     parent::configureRoutes($collection);
     if (!$this->getAllowToAdd()) {
         $collection->remove('create');
     }
 }
開發者ID:vstm,項目名稱:IbrowsSimpleSeoBundle,代碼行數:12,代碼來源:MetaTagAdmin.php

示例5: configureRoutes

 /**
  * {@inheritdoc}
  */
 protected function configureRoutes(RouteCollection $collection)
 {
     parent::configureRoutes($collection);
     $collection->remove('create');
     $collection->remove('delete');
 }
開發者ID:hoangnd25,項目名稱:IndustryProject,代碼行數:9,代碼來源:ContentAdmin.php

示例6: configureRoutes

 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+'));
 }
開發者ID:it-blaster,項目名稱:counter-management-bundle,代碼行數:6,代碼來源:WebCounterAdmin.php

示例7: configureRoutes

 /**
  * @inheritdoc
  */
 protected function configureRoutes(RouteCollection $collection)
 {
     $collection->clearExcept(['list', 'show', 'batch', 'export']);
     parent::configureRoutes($collection);
 }
開發者ID:Vesax,項目名稱:admin-extra-bundle,代碼行數:8,代碼來源:ReadOnlyAdmin.php

示例8: configureRoutes

 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}');
 }
開發者ID:it-blaster,項目名稱:form-constructor-bundle,代碼行數:5,代碼來源:FcFormAdmin.php


注:本文中的Sonata\AdminBundle\Admin\Admin::configureRoutes方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。