当前位置: 首页>>代码示例>>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;未经允许,请勿转载。