php ZenMagick-Base-ZMObject类(方法)实例源码

下面列出了php ZenMagick-Base-ZMObject 类(方法)源码代码实例,从而了解它的用法。

作者:zenmagic    项目:zenmagic   
/**
  * 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());
 }

作者:zenmagic    项目:zenmagic   
/**
  * Create new instance.
  */
 public function __construct($id = 0, $name = null)
 {
     parent::__construct();
     $this->setId($id);
     $this->name = $name;
     $this->sortOrder = 0;
 }

作者:zenmagic    项目:zenmagic   
/**
  * 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');
 }

作者:zenmagic    项目:zenmagic   
/**
  * 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;
 }

作者:zenmagic    项目:zenmagic   
/**
  * 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;
 }

作者:zenmagic    项目:zenmagic   
/**
  * 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;
 }

作者:zenmagic    项目:zenmagic   
/**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct();
     $this->id = 0;
     $this->name = null;
     $this->extension = null;
 }

作者:zenmagic    项目:zenmagic   
/**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct();
     $this->collectionId = 0;
     $this->name = '';
     $this->items = array();
 }

作者:zenmagic    项目:zenmagic   
/**
  * 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);
 }

作者:zenmagic    项目:zenmagic   
/**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct();
     $this->categories = array();
     $this->rootCategories = array();
     $this->productTypeIdMap = null;
 }

作者:zenmagic    项目:zenmagic   
/**
  * 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;
 }

作者:zenmagic    项目:zenmagic   
/**
  * 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;
 }

作者:zenmagic    项目:zenmagic   
/**
  * 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);
 }

作者:zenmagic    项目:zenmagic   
/**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct();
     $this->name = null;
     $this->email = null;
     $this->amount = 0;
     $this->message = null;
 }

作者:zenmagic    项目:zenmagic   
/**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct();
     $this->id = null;
     $this->config = array();
     $this->basePath = null;
     $this->locales = array();
 }

作者:zenmagic    项目:zenmagic   
/**
  * Create new instance.
  *
  * @param string defaultPluginClass The default plugin class name.
  * @param array pluginDirs List of plugin base directories.
  * @param PluginOptionsLoader pluginOptionsLoader The plugin options loader.
  * @param Cache cache Cache to be used.
  */
 public function __construct($defaultPluginClass, array $pluginDirs, PluginOptionsLoader $pluginOptionsLoader, Cache $cache)
 {
     parent::__construct();
     $this->defaultPluginClass = $defaultPluginClass;
     $this->pluginDirs = $pluginDirs;
     $this->pluginOptionsLoader = $pluginOptionsLoader;
     $this->cache = $cache;
 }

作者:zenmagic    项目:zenmagic   
/**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct();
     $this->recordCompanyId = 0;
     $this->name = '';
     $this->image = null;
     $this->url = null;
 }

作者:zenmagic    项目:zenmagic   
/**
  * Create new zone.
  */
 public function __construct()
 {
     parent::__construct();
     $this->setId(0);
     $this->countryId = 0;
     $this->code = '';
     $this->name = '';
 }

作者:zenmagic    项目:zenmagic   
/**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct();
     $this->title = '';
     $this->amount = 0;
     $this->value = 0;
     $this->taxClassId = 0;
 }

作者:zenmagic    项目:zenmagic   
/**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct();
     $this->resources = array('css' => array(), 'js' => array());
     $this->resourcesAsTemplates = false;
     $this->view = null;
     $this->virtualPathMap = array();
 }


问题


面经


文章

微信
公众号

扫码关注公众号