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


PHP ShowMapper::tab方法代碼示例

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


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

示例1: configureShowFields

 /**
  * Configure Show mapper.
  *
  * For a quick view.
  *
  * @param ShowMapper $showMapper
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     // Here we set the fields of the ShowMapper variable
     $showMapper->tab('Vote')->with('Information', array('class' => 'col-md-8', 'box_class' => 'box box-solid box-primary'))->add('site')->add('annuaire')->add('tracker')->add('point')->end()->end();
 }
開發者ID:alexandre-t,項目名稱:pokeme,代碼行數:12,代碼來源:VoteAdmin.php

示例2: configureShowFields

 /**
  * Configure Show mapper.
  *
  * For a quick view.
  *
  * @param ShowMapper $showMapper
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     // Here we set the fields of the ShowMapper variable
     $showMapper->tab('General')->with('Information', array('class' => 'col-md-8', 'box_class' => 'box box-solid box-primary'))->add('name')->add('description')->add('url', 'url')->add('owner')->end()->end()->tab('Sites')->with('Data', array('class' => 'col-md-8', 'box_class' => 'box box-solid box-default'))->add('sites')->end()->end();
 }
開發者ID:alexandre-t,項目名稱:pokeme,代碼行數:12,代碼來源:AnnuaireAdmin.php

示例3: configureShowFields

 /**
  * Configure Show mapper by adding the validation tab.
  *
  * For a quick view.
  *
  * @param ShowMapper $showMapper
  */
 public function configureShowFields(ShowMapper $showMapper)
 {
     // Here we set the fields of the ShowMapper variable
     $showMapper->tab('Validation')->with('Validation', array('class' => 'col-md-4', 'box_class' => 'box box-solid'))->add('validation.status', 'choice', array('choices' => array(Validation::ACCEPTE => 'Accepté', Validation::EN_ATTENTE => 'En attente', Validation::REFUSE => 'Refusé')))->add('validation.reason')->add('validation.validator')->add('validation.created')->add('validation.updated')->end()->end();
 }
開發者ID:alexandre-t,項目名稱:pokeme,代碼行數:12,代碼來源:ValidationAdminExtension.php

示例4: configureShowFields

 /**
  * Configure Show mapper by adding the validation tab.
  *
  * For a quick view.
  *
  * @param ShowMapper $showMapper
  */
 public function configureShowFields(ShowMapper $showMapper)
 {
     // Here we set the fields of the ShowMapper variable
     $showMapper->tab('History')->with('History', array('class' => 'col-md-4', 'box_class' => 'box box-solid box-default'))->add('created')->add('ipCreator')->add('updated')->add('ipUpdater')->end()->end();
 }
開發者ID:alexandre-t,項目名稱:pokeme,代碼行數:12,代碼來源:HistoryAdminExtension.php

示例5: configureShowFields

 public function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->tab('General')->with('Addresses', array('class' => 'col-md-8', 'box_class' => 'box box-solid box-danger', 'description' => 'Lorem ipsum'))->add('employee.surename')->add('employee.forename')->end()->end();
 }
開發者ID:Nexotap,項目名稱:Ivory,代碼行數:4,代碼來源:PayrollAdmin.php

示例6: configureShowFields

 /**
  * Configure the show fields.
  *
  * @param ShowMapper $showMapper
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     // here we set the fields of the ShowMapper variable,
     // $showMapper (but this can be called anything)
     $showMapper->tab('General')->with('Information', array('class' => 'col-md-8', 'box_class' => 'box box-solid box-danger', 'description' => 'Lorem ipsum'))->add('id')->add('code')->add('name')->end()->end();
 }
開發者ID:Alexandre-T,項目名稱:jeu-de-role,代碼行數:11,代碼來源:RegistryAdmin.php


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