当前位置: 首页>>代码示例>>PHP>>正文


PHP Admin::__construct方法代码示例

本文整理汇总了PHP中Sonata\AdminBundle\Admin\Admin::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Admin::__construct方法的具体用法?PHP Admin::__construct怎么用?PHP Admin::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Sonata\AdminBundle\Admin\Admin的用法示例。


在下文中一共展示了Admin::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct($code, $class, $baseControllerName)
 {
     parent::__construct($code, $class, $baseControllerName);
     if (!$this->hasRequest()) {
         $this->datagridValues = array('_page' => 1, '_per_page' => 25, '_sort_order' => 'ASC', '_sort_by' => 'position');
     }
 }
开发者ID:Quiss,项目名称:Evrika,代码行数:7,代码来源:PartnerAdmin.php

示例2: __construct

 public function __construct($code, $class, $baseControllerName)
 {
     parent::__construct($code, $class, $baseControllerName);
     if (!$this->hasRequest()) {
         $this->datagridValues = array('_page' => 1, '_per_page' => 25);
     }
 }
开发者ID:Quiss,项目名称:Evrika,代码行数:7,代码来源:BannerAdmin.php

示例3: __construct

 public function __construct($code, $class, $baseControllerName, PageManagerInterface $pageManagerInterface, OptionalSiteInterface $optionalSiteInterface)
 {
     $this->pageManagerInterface = $pageManagerInterface;
     $this->optionalSiteInterface = $optionalSiteInterface;
     $this->positionHandler = new PositionHandler();
     parent::__construct($code, $class, $baseControllerName);
 }
开发者ID:skillberto,项目名称:SonataPageMenuBundle,代码行数:7,代码来源:MenuAdmin.php

示例4: __construct

 public function __construct($code, $class, $baseControllerName)
 {
     parent::__construct($code, $class, $baseControllerName);
     $entity = new $class();
     $accessor = PropertyAccess::createPropertyAccessor();
     $entityReflection = new \ReflectionClass($class);
     foreach ($entityReflection->getProperties() as $property) {
         $propertyName = $property->getName();
         if ($accessor->isWritable($entity, $propertyName) && $accessor->isReadable($entity, $propertyName)) {
             $this->fields[] = ['name' => $propertyName];
         }
     }
 }
开发者ID:rotanov,项目名称:fefu-social-network,代码行数:13,代码来源:VDolgahAdmin.php

示例5: __construct

 /**
  * @param string                   $code
  * @param string                   $class
  * @param string                   $baseControllerName
  * @param Pool                     $pool
  * @param CategoryManagerInterface $categoryManager
  */
 public function __construct($code, $class, $baseControllerName, Pool $pool, CategoryManagerInterface $categoryManager)
 {
     parent::__construct($code, $class, $baseControllerName);
     $this->pool = $pool;
     $this->categoryManager = $categoryManager;
 }
开发者ID:ipalo,项目名称:SonataMediaBundle,代码行数:13,代码来源:BaseMediaAdmin.php

示例6: __construct

 public function __construct($code, $class, $baseControllerName, ContainerInterface $container)
 {
     $this->container = $container;
     parent::__construct($code, $class, $baseControllerName);
 }
开发者ID:pirasterize,项目名称:sonata-form-builder,代码行数:5,代码来源:FormBuilderAdmin.php

示例7: __construct

 public function __construct($code, $class, $baseControllerName, $container = null)
 {
     parent::__construct($code, $class, $baseControllerName);
     $this->container = $container;
 }
开发者ID:kozmon,项目名称:teachme,代码行数:5,代码来源:PageBlockAdmin.php

示例8: __construct

 public function __construct($code, $class, $baseControllerName)
 {
     $this->setYamlParser(new Parser());
     parent::__construct($code, $class, $baseControllerName);
 }
开发者ID:kwojc,项目名称:IbrowsSonataTranslationBundle,代码行数:5,代码来源:TranslationFileAdmin.php

示例9: __construct

 /**
  * Constructor
  *
  * @param string             $code               A Sonata admin code
  * @param string             $class              A Sonata admin class name
  * @param string             $baseControllerName A Sonata admin base controller name
  * @param RoutePageGenerator $routePageGenerator Sonata route page generator service
  */
 public function __construct($code, $class, $baseControllerName, RoutePageGenerator $routePageGenerator)
 {
     $this->routePageGenerator = $routePageGenerator;
     parent::__construct($code, $class, $baseControllerName);
 }
开发者ID:saberyounis,项目名称:Sonata-Project,代码行数:13,代码来源:SiteAdmin.php

示例10: __construct

 /**
  * SchoolYearAdmin constructor.
  * @param string $code
  * @param string $class
  * @param string $baseControllerName
  * @param \Doctrine\ORM\EntityManagerInterface $entityManager
  * @param string $absoluteUploadPath
  */
 public function __construct($code, $class, $baseControllerName, \Doctrine\ORM\EntityManagerInterface $entityManager, $absoluteUploadPath)
 {
     $this->entityManager = $entityManager;
     $this->absoluteUploadPath = $absoluteUploadPath;
     parent::__construct($code, $class, $baseControllerName);
 }
开发者ID:WildCodeSchool,项目名称:projet-gesty,代码行数:14,代码来源:SchoolYearAdmin.php

示例11: __construct

 /**
  * @param string         $code
  * @param string         $class
  * @param string         $baseControllerName
  * @param ContextManager $contextManager
  */
 public function __construct($code, $class, $baseControllerName, ContextManager $contextManager)
 {
     parent::__construct($code, $class, $baseControllerName);
     $this->contextManager = $contextManager;
 }
开发者ID:rlamarche,项目名称:SonataClassificationBundle,代码行数:11,代码来源:CategoryAdmin.php

示例12: __construct

 public function __construct($code, $class, $baseControllerName, DateNow $date_now_service)
 {
     $this->date_now_service = $date_now_service;
     parent::__construct($code, $class, $baseControllerName);
 }
开发者ID:WildCodeSchool,项目名称:projet-gesty,代码行数:5,代码来源:EleveAdmin.php

示例13: __construct

 /**
  * @param string $code
  * @param string $class
  * @param string $baseControllerName
  */
 public function __construct($code, $class, $baseControllerName)
 {
     $this->getRequestParameters($this->getRequest());
     return parent::__construct($code, $class, $baseControllerName);
 }
开发者ID:defan-marunchak,项目名称:eurotax,代码行数:10,代码来源:AbstractTabsAdmin.php

示例14: __construct

 public function __construct($code, $class, $baseControllerName, EntityManager $entityManager)
 {
     parent::__construct($code, $class, $baseControllerName);
     $this->entityManager = $entityManager;
 }
开发者ID:NeonXP,项目名称:NightQuest,代码行数:5,代码来源:FileAdmin.php

示例15: __construct

 public function __construct($code, $class, $baseControllerName)
 {
     parent::__construct($code, $class, $baseControllerName);
     // TODO: Change the autogenerated stub
     $this->setTranslationDomain('BrotherContactUsBundle');
 }
开发者ID:brother79,项目名称:brother-contact-us-bundle,代码行数:6,代码来源:EntryAdmin.php


注:本文中的Sonata\AdminBundle\Admin\Admin::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。