php Sonata-AdminBundle-Show-ShowMapper类(方法)实例源码

下面列出了php Sonata-AdminBundle-Show-ShowMapper 类(方法)源码代码实例,从而了解它的用法。

作者:it-blaste    项目:redirect-bundl   
/**
  * @param ShowMapper $showMapper
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     if ($this->useModel()) {
         $showMapper->add('Model')->add('ObjectId')->add('Locale');
     }
     $showMapper->add('OldUrl')->add('NewUrl');
 }

作者:ProjetColibriMSI    项目:AMA   
/**
  * @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();
     }));
 }

作者:ProjetColibriMSI    项目:AMA   
/**
  * @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();
     }));
 }

作者:fcpauldia    项目:IbrowsLoggableBundl   
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');
 }

作者:fcpauldia    项目:IbrowsLoggableBundl   
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');
 }

作者:Kid-Binar    项目:KamillNurakhmeto   
public function configureShowField(ShowMapper $showMapper)
 {
     $showMapper->add('title', 'text', ['label' => "Название пункта"])->add('id', 'integer', ['label' => "Порядковый номер"])->add('route', 'text', ['label' => "Путь"]);
 }

作者:norfi    项目:SonataPageBundl   
/**
  * @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');
 }

作者:Quis    项目:Evrik   
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' => 'Активен'));
 }

作者:it-blaste    项目:mail-template-bundl   
/**
  * @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'));
 }

作者:slim62    项目:bello   
/**
  * @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');
 }

作者:AienTec    项目:Taban-Parvaz-Asi   
/**
  * @param ShowMapper $showMapper
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->add('name');
 }

作者:Quis    项目:Evrik   
protected function configureShowField(ShowMapper $showMapper)
 {
     $showMapper->add('id')->add('title', null, array('label' => 'Название'))->add('country', null, array('label' => 'Страна'));
 }

作者:pbxg33    项目:vocadb-bundl   
/**
  * @param ShowMapper $showMapper
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->add('id')->add('type')->add('releaseDate')->add('rating')->add('name')->add('thumbnail')->add('deleted');
 }

作者:rlamarch    项目:SonataNewsBundl   
/**
  * {@inheritdoc}
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->add('author')->add('enabled')->add('title')->add('abstract')->add('content', null, array('safe' => true))->add('tags');
 }

作者:josephzha    项目:map2ucor   
/**
  * @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');
 }

作者:AlexLStudi    项目:alexlstudi   
/**
  * @param ShowMapper $showMapper
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->add('label')->add('level')->add('enabled');
 }

作者:jeoff0    项目:QCM_CDSM_BACKEN   
protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->add('que')->add('mcq')->add('media')->add('answers')->add('createdAt')->add('updatedAt');
 }

作者:Haize    项目:narratiowe   
/**
  * @param ShowMapper $showMapper
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->add('id')->add('intitule');
 }

作者:peruginn    项目:orangegate4-page-bundl   
/**
  * {@inheritdoc}
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->add('site')->add('routeName')->add('pageAlias')->add('type')->add('decorate')->add('name')->add('slug')->add('customUrl')->add('edited');
 }

作者:Quis    项目:Evrik   
protected function configureShowField(ShowMapper $showMapper)
 {
     $showMapper->add('id')->add('title', null, array('label' => 'Название'))->add('shortDescription', null, array('label' => 'Краткое описание', 'safe' => true))->add('body', null, array('label' => 'Основной текст', 'safe' => true))->add('link', null, array('label' => 'Ссылка'))->add('category', null, array('label' => 'Вид партнера'))->add('enabled', null, array('label' => 'Активен'))->add('created', null, array('label' => 'Дата создания', 'widget' => 'single_text', 'format' => 'd.m.Y в H:i'))->add('updated', null, array('label' => 'Дата последнего обновления', 'widget' => 'single_text', 'format' => 'd.m.Y в H:i'));
 }


问题


面经


文章

微信
公众号

扫码关注公众号