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


PHP Base::__construct方法代码示例

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


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

示例1: __construct

 /**
  * Initializes the site object.
  *
  * @param array $values Possible params to be set on initialization
  */
 public function __construct(array $values = array(), array $children = array())
 {
     \Aimeos\MW\Common\Base::checkClassList('\\Aimeos\\MShop\\Locale\\Item\\Site\\Iface', $children);
     parent::__construct('locale.site.', $values);
     $this->values = $values;
     $this->children = $children;
 }
开发者ID:huchunhui55,项目名称:aimeos-core,代码行数:12,代码来源:Standard.php

示例2: __construct

 /**
  * Initializes the object with the locale values.
  *
  * @param array $values Values to be set on initialisation
  * @param \Aimeos\MShop\Locale\Item\Site\Iface|null $site Site object
  * @param array $sitePath List of site IDs up to the root site item
  * @param array $siteSubTree List of site IDs from all sites below the current site
  */
 public function __construct(array $values = array(), \Aimeos\MShop\Locale\Item\Site\Iface $site = null, array $sitePath = array(), array $siteSubTree = array())
 {
     parent::__construct('locale.', $values);
     $this->values = $values;
     $this->site = $site;
     $this->sitePath = $sitePath;
     $this->siteSubTree = $siteSubTree;
 }
开发者ID:mvnp,项目名称:aimeos-core,代码行数:16,代码来源:Standard.php

示例3: __construct

 /**
  * Initializes the currency object object.
  *
  * @param array $values Possible params to be set on initialization
  */
 public function __construct(array $values = array())
 {
     parent::__construct('locale.currency.', $values);
     $this->values = $values;
     if (isset($values['locale.currency.id'])) {
         $this->setId($values['locale.currency.id']);
     }
 }
开发者ID:aimeos,项目名称:aimeos-core,代码行数:13,代码来源:Standard.php

示例4: __construct

 /**
  * Initializes the type item object.
  *
  * @param string $prefix Property prefix when converting to array
  * @param array $values Initial values of the list type item
  */
 public function __construct($prefix, array $values = array())
 {
     parent::__construct($prefix, $values);
     $this->prefix = $prefix;
     $this->values = $values;
 }
开发者ID:boettner-it,项目名称:aimeos-core,代码行数:12,代码来源:Standard.php

示例5: __construct

 /**
  * Initializes the job item.
  *
  * @param array $values Associative list of key/value pairs
  */
 public function __construct(array $values = array())
 {
     parent::__construct('job.', $values);
     $this->values = $values;
 }
开发者ID:mvnp,项目名称:aimeos-core,代码行数:10,代码来源:Standard.php

示例6: __construct

 /**
  * Initializes the stock item object with the given values
  */
 public function __construct(array $values = array())
 {
     parent::__construct('product.stock.', $values);
     $this->values = $values;
 }
开发者ID:mvnp,项目名称:aimeos-core,代码行数:8,代码来源:Standard.php

示例7: __construct

 /**
  * Initializes the customer group item
  *
  * @param array $values List of key/value pairs of the customer group
  */
 public function __construct($values = array())
 {
     parent::__construct('customer.group.', $values);
     $this->values = $values;
 }
开发者ID:aimeos,项目名称:aimeos-core,代码行数:10,代码来源:Standard.php

示例8: __construct

 /**
  * Initializes the order item base service attribute item.
  *
  * @param array $values Associative array of key/value pairs.
  */
 public function __construct(array $values = array())
 {
     parent::__construct('order.base.service.attribute.', $values);
     $this->values = $values;
 }
开发者ID:mvnp,项目名称:aimeos-core,代码行数:10,代码来源:Standard.php

示例9: __construct

 /**
  * Initializes the order base coupon item.
  *
  * @param array $values Values to be set on initialisation.
  * Possible keys: 'id', 'baseid', 'ordprodid', 'code', 'mtime'
  */
 public function __construct(array $values = array())
 {
     parent::__construct('order.base.coupon.', $values);
     $this->values = $values;
 }
开发者ID:andreasfernandez,项目名称:aimeos-core,代码行数:11,代码来源:Standard.php

示例10: __construct

 /**
  * Initializes the item with the given values.
  *
  * @param string $prefix Prefix for the keys returned by toArray()
  * @param array $values Associative list of key/value pairs of the item properties
  * @param array $listItems Two dimensional associative list of domain / ID / list items that implement \Aimeos\MShop\Common\Item\Lists\Iface
  * @param array $refItems Two dimensional associative list of domain / ID / domain items that implement \Aimeos\MShop\Common\Item\Iface
  */
 public function __construct($prefix, array $values = array(), array $listItems = array(), array $refItems = array())
 {
     parent::__construct($prefix, $values);
     $this->listItems = $listItems;
     $this->refItems = $refItems;
 }
开发者ID:mvnp,项目名称:aimeos-core,代码行数:14,代码来源:Base.php

示例11: __construct

 /**
  * Initializes the order base service item
  *
  * @param \Aimeos\MShop\Price\Item\Iface $price
  * @param array $values Values to be set on initialisation
  * @param array $attributes Attributes to be set on initialisation
  */
 public function __construct(\Aimeos\MShop\Price\Item\Iface $price, array $values = array(), array $attributes = array())
 {
     parent::__construct('order.base.service.', $values);
     \Aimeos\MW\Common\Base::checkClassList('\\Aimeos\\MShop\\Order\\Item\\Base\\Service\\Attribute\\Iface', $attributes);
     $this->attributes = $attributes;
 }
开发者ID:aimeos,项目名称:aimeos-core,代码行数:13,代码来源:Base.php


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