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


PHP Show\ShowMapper類代碼示例

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


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

示例1: configureShowFields

 /**
  * @param ShowMapper $showMapper
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     if ($this->useModel()) {
         $showMapper->add('Model')->add('ObjectId')->add('Locale');
     }
     $showMapper->add('OldUrl')->add('NewUrl');
 }
開發者ID:it-blaster,項目名稱:redirect-bundle,代碼行數:10,代碼來源:RedirectAdmin.php

示例2: configureShowFields

 /**
  * @param ShowMapper $showMapper
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->add('id')->add('rules')->add('description')->add('adressDelivery')->add('signDate')->add('expirationDate')->add('repPDF')->add('users', 'entity', array('class' => 'AMAPBundle:Account\\User', 'associated_property' => function ($amap) {
         return $amap->getUsername();
     }))->add('amap', 'contracts_amap', array('class' => 'AMAPBundle:AMAP\\AMAP', 'associated_property' => function ($amap) {
         return $amap->getName();
     }));
 }
開發者ID:ProjetColibriMSIA,項目名稱:AMAP,代碼行數:11,代碼來源:ContractAdmin.php

示例3: configureShowFields

 /**
  * @param ShowMapper $showMapper
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->add('id')->add('name')->add('phone')->add('adress')->add('description')->add('repIMG')->add('users', 'entity', array('class' => 'AMAPBundle:Account\\User', 'associated_property' => function ($amap) {
         return $amap->getUsername();
     }))->add('news', 'entity', array('class' => 'AMAPBundle:Announcement\\News', 'associated_property' => function ($amap) {
         return $amap->getName();
     }))->add('contracts_amap', 'entity', array('class' => 'AMAPBundle:Account\\Contract', 'associated_property' => function ($amap) {
         return $amap->getId();
     }));
 }
開發者ID:ProjetColibriMSIA,項目名稱:AMAP,代碼行數:13,代碼來源:AMAPAdmin.php

示例4: configureShowFields

 protected function configureShowFields(ShowMapper $mapper)
 {
     $mapper->add('id');
     $mapper->add('action');
     $mapper->add('objectId');
     $mapper->add('objectClass');
     $mapper->add('data', 'array', array('template' => 'IbrowsLoggableBundle:Admin:show_array.html.twig'));
     $mapper->add('oldData', 'array', array('template' => 'IbrowsLoggableBundle:Admin:show_array.html.twig'));
     $mapper->add('loggedAt');
     $mapper->add('username');
     $mapper->add('sourceUsername');
 }
開發者ID:fcpauldiaz,項目名稱:IbrowsLoggableBundle,代碼行數:12,代碼來源:LogAdmin.php

示例5: configureShowFields

 protected function configureShowFields(ShowMapper $mapper)
 {
     $mapper->add('id');
     $mapper->add('action');
     $mapper->add('objectId');
     $mapper->add('objectClass');
     $mapper->add('data', 'array');
     $mapper->add('oldData', 'array');
     $mapper->add('changeAt');
     $mapper->add('username');
 }
開發者ID:fcpauldiaz,項目名稱:IbrowsLoggableBundle,代碼行數:11,代碼來源:ChangeSetAdmin.php

示例6: configureShowField

 public function configureShowField(ShowMapper $showMapper)
 {
     $showMapper->add('title', 'text', ['label' => "Название пункта"])->add('id', 'integer', ['label' => "Порядковый номер"])->add('route', 'text', ['label' => "Путь"]);
 }
開發者ID:Kid-Binary,項目名稱:KamillNurakhmetov,代碼行數:4,代碼來源:MenuAdmin.php

示例7: configureShowField

 /**
  * @param \Sonata\AdminBundle\Show\ShowMapper $showMapper
  * @return void
  */
 protected function configureShowField(ShowMapper $showMapper)
 {
     $showMapper->add('routeName')->add('enabled')->add('decorate')->add('name')->add('slug')->add('customUrl');
 }
開發者ID:norfil,項目名稱:SonataPageBundle,代碼行數:8,代碼來源:PageAdmin.php

示例8: configureShowField

 protected function configureShowField(ShowMapper $showMapper)
 {
     $showMapper->add('id')->add('title', null, array('label' => 'Название'))->add('description', null, array('label' => 'Описание', 'safe' => true))->add('rules', null, array('label' => 'Правила', 'safe' => true))->add('extra', null, array('label' => 'Прочее', 'safe' => true))->add('registration', null, array('label' => 'Подача заявки до', 'widget' => 'single_text', 'format' => 'd.m.Y в H:i'))->add('ends', null, array('label' => 'Прием голосов до', 'widget' => 'single_text', 'format' => 'd.m.Y в H:i'))->add('showWinners', null, array('label' => 'Показать победителей'))->add('prizes', null, array('label' => 'Призы'))->add('sponsors', null, array('label' => 'Спонсоры'))->add('enabled', null, array('label' => 'Активен'));
 }
開發者ID:Quiss,項目名稱:Evrika,代碼行數:4,代碼來源:ContestAdmin.php

示例9: configureShowFields

 /**
  * @param ShowMapper $showMapper
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->add('Id', NULL, array('label' => 'mail_template_id'))->add('Alias', NULL, array('label' => 'mail_template_alias'))->add('Title', NULL, array('label' => 'mail_template_title'))->add('CreatedAt', NULL, array('label' => 'mail_template_created_at', 'format' => 'd.m.Y H:i'))->add('UpdatedAt', NULL, array('label' => 'mail_template_updated_at', 'format' => 'd.m.Y H:i'));
 }
開發者ID:it-blaster,項目名稱:mail-template-bundle,代碼行數:7,代碼來源:MailTemplateAdmin.php

示例10: configureShowFields

 /**
  * @param ShowMapper $showMapper
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->add('id')->add('name')->add('description')->add('image', 'string', ['template' => 'BellonBundle:Preview:category.preview.show.html.twig'])->add('metaTitle')->add('metaDescription')->add('metaKeywords');
 }
開發者ID:slim627,項目名稱:bellon,代碼行數:7,代碼來源:CategoryAdmin.php

示例11: configureShowFields

 /**
  * @param ShowMapper $showMapper
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->add('name');
 }
開發者ID:AienTech,項目名稱:Taban-Parvaz-Asia,代碼行數:7,代碼來源:HelperCategoryAdmin.php

示例12: configureShowField

 protected function configureShowField(ShowMapper $showMapper)
 {
     $showMapper->add('id')->add('title', null, array('label' => 'Название'))->add('country', null, array('label' => 'Страна'));
 }
開發者ID:Quiss,項目名稱:Evrika,代碼行數:4,代碼來源:CityAdmin.php

示例13: configureShowFields

 /**
  * @param ShowMapper $showMapper
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->add('id')->add('type')->add('releaseDate')->add('rating')->add('name')->add('thumbnail')->add('deleted');
 }
開發者ID:pbxg33k,項目名稱:vocadb-bundle,代碼行數:7,代碼來源:AlbumAdmin.php

示例14: configureShowFields

 /**
  * {@inheritdoc}
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->add('author')->add('enabled')->add('title')->add('abstract')->add('content', null, array('safe' => true))->add('tags');
 }
開發者ID:rlamarche,項目名稱:SonataNewsBundle,代碼行數:7,代碼來源:PostAdmin.php

示例15: configureShowFields

 /**
  * @param ShowMapper $showMapper
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->add('userId')->add('zoomLevel')->add('mapTitle')->add('name')->add('layerSeq')->add('titlePosition')->add('mapCenter')->add('titleStyle')->add('type')->add('showScale')->add('shared')->add('enabled')->add('public')->add('createdAt')->add('updatedAt')->add('description')->add('id');
 }
開發者ID:josephzhao,項目名稱:map2ucore,代碼行數:7,代碼來源:MapAdmin.php


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