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


PHP ClassMethods::__construct方法代码示例

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


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

示例1: __construct

 public function __construct($format = 'Y-m-d')
 {
     parent::__construct();
     $dateStrategy = new DateTimeStrategy($format);
     $this->addStrategy('birth_date', $dateStrategy);
     $this->addStrategy('hire_date', $dateStrategy);
 }
开发者ID:srayner,项目名称:nickel,代码行数:7,代码来源:StaffHydrator.php

示例2: __construct

 /**
  * @param string $needle          What substring identifies the related object
  * @param string $setter          What function to call to populate the object
  * @param mixed  $objectPrototype Prototype Object to be used for the Hydration
  * @param bool   $underscoreSeparatedKeys
  */
 public function __construct($needle, $setter, $objectPrototype, $underscoreSeparatedKeys = true)
 {
     parent::__construct($underscoreSeparatedKeys);
     $this->needle = $needle;
     $this->setter = $setter;
     $this->prototype = $objectPrototype;
 }
开发者ID:manuakasam,项目名称:join-hydrator,代码行数:13,代码来源:OneToOneHydrator.php

示例3: __construct

 /**
  * {@inheritdoc}
  */
 public function __construct($underscoreSeparatedKeys = true)
 {
     parent::__construct($underscoreSeparatedKeys);
     // Exclude this methods from the extraction
     $this->filterComposite->addFilter('model', new MethodMatchFilter('getModel', true), FilterComposite::CONDITION_AND);
     $this->filterComposite->addFilter('hydrator', new MethodMatchFilter('getHydrator', true), FilterComposite::CONDITION_AND);
     $this->filterComposite->addFilter('inputFilter', new MethodMatchFilter('getInputFilter', true), FilterComposite::CONDITION_AND);
 }
开发者ID:matryoshka-model,项目名称:matryoshka,代码行数:11,代码来源:ClassMethods.php

示例4: __construct

 public function __construct($underscoreSeparatedKeys = true)
 {
     parent::__construct();
     $this->setUnderscoreSeparatedKeys($underscoreSeparatedKeys);
     $this->callableMethodFilter = new OptionalParametersFilter();
     $this->filterComposite->addFilter('is', new IsFilter());
     $this->filterComposite->addFilter('has', new HasFilter());
     $this->filterComposite->addFilter('get', new GetFilter());
     $this->filterComposite->addFilter('parameter', new OptionalParametersFilter(), FilterComposite::CONDITION_AND);
 }
开发者ID:alexsawallich,项目名称:node,代码行数:10,代码来源:NodeHydrator.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     $addressStrategy = new AddressStrategy();
     $datetimeStrategy = new DateTimeFormatterStrategy(\DateTime::ISO8601);
     $this->addStrategy('billing_address', $addressStrategy);
     $this->addStrategy('shipping_address', $addressStrategy);
     $this->addStrategy('created_time', $datetimeStrategy);
     $this->addStrategy('updated_time', $datetimeStrategy);
 }
开发者ID:continuousphp,项目名称:zoho-subscriptions,代码行数:10,代码来源:CustomerHydrator.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $datetimeStrategy = new DateTimeFormatterStrategy(\DateTime::ISO8601);
     $planStrategy = new PlanStrategy();
     $cardStrategy = new CardStrategy();
     $customerStrategy = new CustomerStrategy();
     $this->addStrategy('created_time', $datetimeStrategy);
     $this->addStrategy('updated_time', $datetimeStrategy);
     $this->addStrategy('plan', $planStrategy);
     $this->addStrategy('card', $cardStrategy);
     $this->addStrategy('customer', $customerStrategy);
     $this->addStrategy('current_term_starts_at', $datetimeStrategy);
     $this->addStrategy('current_term_ends_at', $datetimeStrategy);
 }
开发者ID:zoho-api,项目名称:zoho-subscriptions,代码行数:15,代码来源:SubscriptionHydrator.php

示例7: __construct

 public function __construct()
 {
     parent::__construct(false);
 }
开发者ID:n3vrax,项目名称:dotkernel,代码行数:4,代码来源:UserRoleHydrator.php

示例8: __construct

 public function __construct(UserLogic $userLogic, PasswordHasher $passwordHasher)
 {
     $this->userLogic = $userLogic;
     $this->passwordHasher = $passwordHasher;
     parent::__construct(false);
 }
开发者ID:gdpro,项目名称:gdpro-user,代码行数:6,代码来源:UserHydrator.php

示例9: __construct

 /**
  * @param ZendCryptPassword $cryptoService
  * @param bool|array        $underscoreSeparatedKeys
  */
 public function __construct(ZendCryptPassword $cryptoService, $underscoreSeparatedKeys = true)
 {
     parent::__construct($underscoreSeparatedKeys);
     $this->cryptoService = $cryptoService;
 }
开发者ID:rawatanil3,项目名称:ZfcUser,代码行数:9,代码来源:UserHydrator.php

示例10: __construct

 public function __construct($underscoreSeparatedKeys = false)
 {
     parent::__construct($underscoreSeparatedKeys);
 }
开发者ID:n3vrax,项目名称:dotkernel,代码行数:4,代码来源:TransporterEntityHydrator.php

示例11: __construct

 /**
  * @param HydratorPluginManager $pluginManager
  */
 public function __construct(HydratorPluginManager $pluginManager)
 {
     parent::__construct();
     $this->pluginManager = $pluginManager;
 }
开发者ID:serlo-org,项目名称:athene2-hydrator,代码行数:8,代码来源:PluginAwareClassMethods.php

示例12: __construct

 public function __construct(AddressService $addressService)
 {
     parent::__construct(false);
     $this->addressService = $addressService;
 }
开发者ID:DavidHavl,项目名称:Ajasta,代码行数:5,代码来源:AddressHydrator.php


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