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


PHP Base\ZMObject类代码示例

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


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

示例1: testProperties

 /**
  * Test properties.
  */
 public function testProperties()
 {
     $obj = new ZMObject();
     $obj->set('foo', 'bar');
     $obj->set('deng', 'poh');
     // custom only
     $this->assertEquals(array('foo' => 'bar', 'deng' => 'poh'), $obj->getProperties());
 }
开发者ID:zenmagick,项目名称:zenmagick,代码行数:11,代码来源:ZMObjectTest.php

示例2: __construct

 /**
  * Create new instance.
  */
 public function __construct($id = 0, $name = null)
 {
     parent::__construct();
     $this->setId($id);
     $this->name = $name;
     $this->sortOrder = 0;
 }
开发者ID:zenmagick,项目名称:zenmagick,代码行数:10,代码来源:ZMAttributeValue.php

示例3: __construct

 /**
  * Create new shipping method.
  *
  * @param ZMShippingProvider provider The shipping provider for this method.
  * @param array zenMethod The zen-cart method infos.
  */
 public function __construct($provider, $zenMethod)
 {
     parent::__construct();
     $this->provider = $provider;
     $this->zenMethod = $zenMethod;
     $this->taxRate = Beans::getBean('ZenMagick\\StoreBundle\\Entity\\TaxRate');
 }
开发者ID:zenmagick,项目名称:zenmagick,代码行数:13,代码来源:ShippingMethodWrapper.php

示例4: __construct

 /**
  * Create a new instance.
  *
  * @param ZMSearchCriteria criteria The search criteria; default is <code>null</code>.
  */
 public function __construct($criteria = null)
 {
     parent::__construct();
     $this->criteria = $criteria;
     $this->results = null;
     $this->totalNumberOfResults = null;
 }
开发者ID:zenmagick,项目名称:zenmagick,代码行数:12,代码来源:ZMSearchResultSource.php

示例5: __construct

 /**
  * Create a new payment type.
  *
  * @param object module The payment module; default is <code>null</code>.
  */
 public function __construct($module = null)
 {
     parent::__construct();
     $this->setModule($module);
     $this->fields = null;
     $this->prepared = false;
 }
开发者ID:zenmagick,项目名称:zenmagick,代码行数:12,代码来源:PaymentTypeWrapper.php

示例6: __construct

 /**
  * Create a new instance.
  */
 public function __construct(array $config = array())
 {
     parent::__construct();
     $defaults = array('strictErrorChecking' => false, 'useIncludePath' => false, 'urlContext' => false);
     $this->config = array_merge($defaults, $config);
     $this->cache = null;
 }
开发者ID:zenmagick,项目名称:zenmagick,代码行数:10,代码来源:RssFeedLoader.php

示例7: __construct

 /**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct();
     $this->id = 0;
     $this->name = null;
     $this->extension = null;
 }
开发者ID:zenmagick,项目名称:zenmagick,代码行数:10,代码来源:MediaType.php

示例8: __construct

 /**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct();
     $this->collectionId = 0;
     $this->name = '';
     $this->items = array();
 }
开发者ID:zenmagick,项目名称:zenmagick,代码行数:10,代码来源:MediaCollection.php

示例9: __construct

 /**
  * Create new validation rule.
  *
  * @param string name The field name; default is <code>null</code>.
  * @param string defaultMsg The default error message; default is <code>null</code>.
  * @param string msg Optional custom error message; default is <code>null</code>.
  */
 public function __construct($name = null, $defaultMsg = null, $msg = null)
 {
     parent::__construct();
     $this->setName($name);
     $this->setDefaultMsg($defaultMsg);
     $this->setMsg($msg);
 }
开发者ID:zenmagick,项目名称:zenmagick,代码行数:14,代码来源:ZMRule.php

示例10: __construct

 /**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct();
     $this->categories = array();
     $this->rootCategories = array();
     $this->productTypeIdMap = null;
 }
开发者ID:zenmagick,项目名称:zenmagick,代码行数:10,代码来源:Categories.php

示例11: __construct

 /**
  * Create a new instance.
  *
  * @param ZMSearchCriteria criteria Optional search criteria; default is <code>null</code>.
  */
 public function __construct($criteria = null)
 {
     parent::__construct();
     $this->criteria = $criteria;
     $this->sortId = null;
     $this->descending = false;
 }
开发者ID:zenmagick,项目名称:zenmagick,代码行数:12,代码来源:ZMProductFinder.php

示例12: __construct

 /**
  * Create a new filter option.
  *
  * @param string name The option name; default is <code>null</code>.
  * @param int id The option id; default is <code>null</code>.
  * @param boolean active Optional active flag if this option is currently active; default is <code>false</code>.
  */
 public function __construct($name = null, $id = null, $active = false)
 {
     parent::__construct();
     $this->name = $name;
     $this->id = $id;
     $this->active = $active;
 }
开发者ID:zenmagick,项目名称:zenmagick,代码行数:14,代码来源:ZMFilterOption.php

示例13: __construct

 /**
  * Create new image info.
  *
  * @param string image The default image name; default is <code>null</code>.
  * @param string alt The alt text; default is an empty string.
  */
 public function __construct($image = null, $alt = '')
 {
     parent::__construct();
     $this->altText = $alt;
     $this->parameter = array();
     $this->setDefaultImage($image);
 }
开发者ID:zenmagick,项目名称:zenmagick,代码行数:13,代码来源:ZMImageInfo.php

示例14: __construct

 /**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct();
     $this->name = null;
     $this->email = null;
     $this->amount = 0;
     $this->message = null;
 }
开发者ID:zenmagick,项目名称:zenmagick,代码行数:11,代码来源:ZMGVReceiver.php

示例15: __construct

 /**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct();
     $this->id = null;
     $this->config = array();
     $this->basePath = null;
     $this->locales = array();
 }
开发者ID:zenmagick,项目名称:zenmagick,代码行数:11,代码来源:Theme.php


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