當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。