• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Item\Base类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: setId

 /**
  * Sets the new ID of the item.
  *
  * @param string|null $id ID of the item
  */
 public function setId($id)
 {
     if (($this->values['id'] = \Aimeos\MShop\Common\Item\Base::checkId($this->getId(), $id)) === null) {
         $this->modified = true;
     } else {
         $this->modified = false;
     }
 }
开发者ID:andreasfernandez,项目名称:aimeos-core,代码行数:13,代码来源:Base.php


示例2: setId

 /**
  * Sets the new ID of the item.
  *
  * @param string|null $id ID of the item
  * @return \Aimeos\MShop\Common\Item\Iface Item for chaining method calls
  */
 public function setId($id)
 {
     $key = $this->prefix . 'id';
     if (($this->values[$key] = \Aimeos\MShop\Common\Item\Base::checkId($this->getId(), $id)) === null) {
         $this->modified = true;
     } else {
         $this->modified = false;
     }
     $this->values['id'] = $this->values[$key];
     return $this;
 }
开发者ID:aimeos,项目名称:aimeos-core,代码行数:17,代码来源:Base.php


示例3: toArray

 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['order.base.coupon.baseid'] = $this->getBaseId();
     $list['order.base.coupon.productid'] = $this->getProductId();
     $list['order.base.coupon.code'] = $this->getCode();
     return $list;
 }
开发者ID:andreasfernandez,项目名称:aimeos-core,代码行数:13,代码来源:Standard.php


示例4: __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


示例5: toArray

 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list[$this->prefix . 'salutation'] = $this->getSalutation();
     $list[$this->prefix . 'company'] = $this->getCompany();
     $list[$this->prefix . 'vatid'] = $this->getVatID();
     $list[$this->prefix . 'title'] = $this->getTitle();
     $list[$this->prefix . 'firstname'] = $this->getFirstname();
     $list[$this->prefix . 'lastname'] = $this->getLastname();
     $list[$this->prefix . 'address1'] = $this->getAddress1();
     $list[$this->prefix . 'address2'] = $this->getAddress2();
     $list[$this->prefix . 'address3'] = $this->getAddress3();
     $list[$this->prefix . 'postal'] = $this->getPostal();
     $list[$this->prefix . 'city'] = $this->getCity();
     $list[$this->prefix . 'state'] = $this->getState();
     $list[$this->prefix . 'countryid'] = $this->getCountryId();
     $list[$this->prefix . 'languageid'] = $this->getLanguageId();
     $list[$this->prefix . 'telephone'] = $this->getTelephone();
     $list[$this->prefix . 'telefax'] = $this->getTelefax();
     $list[$this->prefix . 'email'] = $this->getEmail();
     $list[$this->prefix . 'website'] = $this->getWebsite();
     $list[$this->prefix . 'flag'] = $this->getFlag();
     return $list;
 }
开发者ID:huchunhui55,项目名称:aimeos-core,代码行数:29,代码来源:Base.php


示例6: isModified

 /**
  * Tests if the object was modified.
  *
  * @return boolean True if modified, false if not
  */
 public function isModified()
 {
     return $this->modified || parent::isModified();
 }
开发者ID:aimeos,项目名称:aimeos-core,代码行数:9,代码来源:Standard.php


示例7: toArray

 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['product.property.parentid'] = $this->getParentId();
     $list['product.property.typeid'] = $this->getTypeId();
     $list['product.property.languageid'] = $this->getLanguageId();
     $list['product.property.value'] = $this->getValue();
     $list['product.property.type'] = $this->getType();
     return $list;
 }
开发者ID:mvnp,项目名称:aimeos-core,代码行数:15,代码来源:Standard.php


示例8: toArray

 /**
  * Returns the item values as array.
  *
  * @return array Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['coupon.config'] = $this->getConfig();
     $list['coupon.label'] = $this->getLabel();
     $list['coupon.datestart'] = $this->getDateStart();
     $list['coupon.dateend'] = $this->getDateEnd();
     $list['coupon.provider'] = $this->getProvider();
     $list['coupon.status'] = $this->getStatus();
     return $list;
 }
开发者ID:aimeos,项目名称:aimeos-core,代码行数:16,代码来源:Standard.php


示例9: toArray

 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['locale.siteid'] = $this->getSiteId();
     $list['locale.languageid'] = $this->getLanguageId();
     $list['locale.currencyid'] = $this->getCurrencyId();
     $list['locale.position'] = $this->getPosition();
     $list['locale.status'] = $this->getStatus();
     return $list;
 }
开发者ID:mvnp,项目名称:aimeos-core,代码行数:15,代码来源:Standard.php


示例10: toArray

 /**
  * Returns the item values as array.
  *
  * @return array Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['customer.group.code'] = $this->getCode();
     $list['customer.group.label'] = $this->getLabel();
     return $list;
 }
开发者ID:aimeos,项目名称:aimeos-core,代码行数:12,代码来源:Standard.php


示例11: fromArray

 /**
  * Sets the item values from the given array.
  *
  * @param array $list Associative list of item keys and their values
  * @return array Associative list of keys and their values that are unknown
  */
 public function fromArray(array $list)
 {
     $unknown = array();
     $list = parent::fromArray($list);
     foreach ($list as $key => $value) {
         switch ($key) {
             case 'cache.id':
                 $this->setId($value);
                 break;
             case 'cache.value':
                 $this->setValue($value);
                 break;
             case 'cache.expire':
                 $this->setTimeExpire($value);
                 break;
             case 'cache.tags':
                 $this->setTags($value);
                 break;
             default:
                 $unknown[$key] = $value;
         }
     }
     return $unknown;
 }
开发者ID:aimeos,项目名称:aimeos-core,代码行数:30,代码来源:Standard.php


示例12: toArray

 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['tag.typeid'] = $this->getTypeId();
     $list['tag.languageid'] = $this->getLanguageId();
     $list['tag.label'] = $this->getLabel();
     $list['tag.type'] = $this->getType();
     return $list;
 }
开发者ID:huchunhui55,项目名称:aimeos-core,代码行数:14,代码来源:Standard.php


示例13: __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


示例14: toArray

 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['product.stock.warehouse.code'] = $this->getCode();
     $list['product.stock.warehouse.label'] = $this->getLabel();
     $list['product.stock.warehouse.status'] = $this->getStatus();
     return $list;
 }
开发者ID:andreasfernandez,项目名称:aimeos-core,代码行数:13,代码来源:Standard.php


示例15: toArray

 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['plugin.type'] = $this->getType();
     $list['plugin.typeid'] = $this->getTypeId();
     $list['plugin.label'] = $this->getLabel();
     $list['plugin.provider'] = $this->getProvider();
     $list['plugin.config'] = $this->getConfig();
     $list['plugin.status'] = $this->getStatus();
     $list['plugin.position'] = $this->getPosition();
     return $list;
 }
开发者ID:huchunhui55,项目名称:aimeos-core,代码行数:17,代码来源:Standard.php


示例16: toArray

 /**
  * Returns the item values as array.
  *
  * @return array Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['order.base.service.attribute.attrid'] = $this->getAttributeId();
     $list['order.base.service.attribute.parentid'] = $this->getParentId();
     $list['order.base.service.attribute.type'] = $this->getType();
     $list['order.base.service.attribute.name'] = $this->getName();
     $list['order.base.service.attribute.code'] = $this->getCode();
     $list['order.base.service.attribute.value'] = $this->getValue();
     return $list;
 }
开发者ID:mvnp,项目名称:aimeos-core,代码行数:16,代码来源:Standard.php


示例17: toArray

 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['coupon.code.count'] = $this->getCount();
     $list['coupon.code.code'] = $this->getCode();
     $list['coupon.code.parentid'] = $this->getParentId();
     $list['coupon.code.datestart'] = $this->getDateStart();
     $list['coupon.code.dateend'] = $this->getDateEnd();
     return $list;
 }
开发者ID:mvnp,项目名称:aimeos-core,代码行数:15,代码来源:Standard.php


示例18: toArray

 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list[$this->prefix . 'parentid'] = $this->getParentId();
     $list[$this->prefix . 'typeid'] = $this->getTypeId();
     $list[$this->prefix . 'type'] = $this->getType();
     $list[$this->prefix . 'domain'] = $this->getDomain();
     $list[$this->prefix . 'refid'] = $this->getRefId();
     $list[$this->prefix . 'datestart'] = $this->getDateStart();
     $list[$this->prefix . 'dateend'] = $this->getDateEnd();
     $list[$this->prefix . 'config'] = $this->getConfig();
     $list[$this->prefix . 'position'] = $this->getPosition();
     $list[$this->prefix . 'status'] = $this->getStatus();
     return $list;
 }
开发者ID:boettner-it,项目名称:aimeos-core,代码行数:20,代码来源:Standard.php


示例19: toArray

 /**
  * Returns the item values as array.
  *
  * @return array Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['log.facility'] = $this->getFacility();
     $list['log.timestamp'] = $this->getTimestamp();
     $list['log.priority'] = $this->getPriority();
     $list['log.message'] = $this->getMessage();
     $list['log.request'] = $this->getRequest();
     return $list;
 }
开发者ID:aimeos,项目名称:aimeos-core,代码行数:15,代码来源:Standard.php


示例20: toArray

 /**
  * Returns the item values as array.
  *
  * @return Associative list of item properties and their values
  */
 public function toArray()
 {
     $list = parent::toArray();
     $list['job.label'] = $this->getLabel();
     $list['job.method'] = $this->getMethod();
     $list['job.parameter'] = $this->getParameter();
     $list['job.result'] = $this->getResult();
     $list['job.status'] = $this->getStatus();
     return $list;
 }
开发者ID:mvnp,项目名称:aimeos-core,代码行数:15,代码来源:Standard.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Item\Iface类代码示例发布时间:2022-05-23
下一篇:
PHP MShop\Factory类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap