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