當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ZMObject::__construct方法代碼示例

本文整理匯總了PHP中ZenMagick\Base\ZMObject::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP ZMObject::__construct方法的具體用法?PHP ZMObject::__construct怎麽用?PHP ZMObject::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ZenMagick\Base\ZMObject的用法示例。


在下文中一共展示了ZMObject::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

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

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

示例3: __construct

 /**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct();
     $this->collectionId = 0;
     $this->name = '';
     $this->items = array();
 }
開發者ID:zenmagick,項目名稱:zenmagick,代碼行數:10,代碼來源:MediaCollection.php

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

示例5: __construct

 /**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct();
     $this->id = 0;
     $this->name = null;
     $this->extension = null;
 }
開發者ID:zenmagick,項目名稱:zenmagick,代碼行數:10,代碼來源:MediaType.php

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

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

示例8: __construct

 /**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct();
     $this->categories = array();
     $this->rootCategories = array();
     $this->productTypeIdMap = null;
 }
開發者ID:zenmagick,項目名稱:zenmagick,代碼行數:10,代碼來源:Categories.php

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

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

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

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

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

示例14: __construct

 /**
  * 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;
 }
開發者ID:zenmagick,項目名稱:zenmagick,代碼行數:16,代碼來源:PluginStatusMapBuilder.php

示例15: __construct

 /**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct();
     $this->recordCompanyId = 0;
     $this->name = '';
     $this->image = null;
     $this->url = null;
 }
開發者ID:zenmagick,項目名稱:zenmagick,代碼行數:11,代碼來源:RecordCompany.php


注:本文中的ZenMagick\Base\ZMObject::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。