本文整理汇总了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());
}
示例2: __construct
/**
* Create new instance.
*/
public function __construct($id = 0, $name = null)
{
parent::__construct();
$this->setId($id);
$this->name = $name;
$this->sortOrder = 0;
}
示例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');
}
示例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;
}
示例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;
}
示例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;
}
示例7: __construct
/**
* Create new instance.
*/
public function __construct()
{
parent::__construct();
$this->id = 0;
$this->name = null;
$this->extension = null;
}
示例8: __construct
/**
* Create new instance.
*/
public function __construct()
{
parent::__construct();
$this->collectionId = 0;
$this->name = '';
$this->items = array();
}
示例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);
}
示例10: __construct
/**
* Create new instance.
*/
public function __construct()
{
parent::__construct();
$this->categories = array();
$this->rootCategories = array();
$this->productTypeIdMap = null;
}
示例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;
}
示例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;
}
示例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);
}
示例14: __construct
/**
* Create new instance.
*/
public function __construct()
{
parent::__construct();
$this->name = null;
$this->email = null;
$this->amount = 0;
$this->message = null;
}
示例15: __construct
/**
* Create new instance.
*/
public function __construct()
{
parent::__construct();
$this->id = null;
$this->config = array();
$this->basePath = null;
$this->locales = array();
}