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


PHP Value::__construct方法代碼示例

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


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

示例1: __construct

 /**
  * Constructor.
  * 
  * @since   __DEPLOY_VERSION__
  */
 public function __construct()
 {
     // Save time of object construction as a property.
     // Convert microtime to string to avoid loss of precision due to overflow.
     $parts = explode(' ', microtime());
     $this->raisedon = sprintf('%d%03d', $parts[1], $parts[0] * 1000);
     parent::__construct();
 }
開發者ID:chrisdavenport,項目名稱:service,代碼行數:13,代碼來源:Message.php

示例2: __construct

 public function __construct($aComponents = array(), $sSeparator = ',', $iLineNo = 0)
 {
     parent::__construct($iLineNo);
     if (!is_array($aComponents)) {
         $aComponents = array($aComponents);
     }
     $this->aComponents = $aComponents;
     $this->sSeparator = $sSeparator;
 }
開發者ID:gabrielrosset,項目名稱:moodle,代碼行數:9,代碼來源:ValueList.php

示例3: __construct

 /**
  * Set constructor.
  *
  * A Set object is immutable, and is used by Variables for comparing their
  * Default values or facts from the current Context.
  *
  * @param mixed $set Immutable value represented by this Value object
  */
 public function __construct($set)
 {
     parent::__construct($set);
     if (!is_array($this->value)) {
         if (is_null($this->value)) {
             $this->value = array();
         } else {
             $this->value = array($this->value);
         }
     }
     foreach ($this->value as &$value) {
         if (is_array($value)) {
             $value = new Set($value);
         }
     }
     $this->value = array_unique($this->value);
 }
開發者ID:inbarzecharia,項目名稱:Ruler,代碼行數:25,代碼來源:Set.php

示例4: __construct

 public function __construct($value = null)
 {
     parent::__construct();
     $this->value = $value;
 }
開發者ID:stevenmaguire,項目名稱:googleads-php-lib,代碼行數:5,代碼來源:LineItemService.php

示例5: __construct

 public function __construct($value = NULL, $ValueType = NULL)
 {
     if (get_parent_class('TextValue')) {
         parent::__construct();
     }
     $this->value = $value;
     $this->ValueType = $ValueType;
 }
開發者ID:josephbergdoll,項目名稱:berrics,代碼行數:8,代碼來源:CustomFieldService.php

示例6: __construct

 public function __construct($value = NULL, $ValueType = NULL)
 {
     parent::__construct();
     $this->value = $value;
     $this->ValueType = $ValueType;
 }
開發者ID:venkyanthony,項目名稱:google-api-dfp-php,代碼行數:6,代碼來源:CreativeWrapperService.php

示例7: __construct

 /**
  * @param \DateTime $date Date.
  * @param float|int|null $value Result value.
  */
 public function __construct(\DateTime $date, $value)
 {
     $this->date = $date;
     parent::__construct($value);
 }
開發者ID:edvinaskrucas,項目名稱:counter,代碼行數:9,代碼來源:DateValue.php

示例8: __construct

 public function __construct($value)
 {
     parent::__construct($value, ValueType::STRING);
 }
開發者ID:vube,項目名稱:google-visualization-php,代碼行數:4,代碼來源:TextValue.php

示例9: __construct

 public function __construct($value)
 {
     parent::__construct($value, ValueType::NUMBER);
 }
開發者ID:vube,項目名稱:google-visualization-php,代碼行數:4,代碼來源:NumberValue.php

示例10: __construct

 /**
  * @param string $type
  * @param mixed $value
  * @param string $alias
  */
 public function __construct($type, $value, $alias)
 {
     $this->alias = $alias;
     parent::__construct($type, $value);
 }
開發者ID:silktide,項目名稱:reposition,代碼行數:10,代碼來源:Reference.php

示例11: __construct

 public function __construct(&$object)
 {
     parent::__construct($object);
 }
開發者ID:sigmadesarrollo,項目名稱:logisoft,代碼行數:4,代碼來源:ServiceDescriptor.php

示例12: __construct

 public function __construct($field = null)
 {
     parent::__construct();
     $this->addDisallowedCharacterCode(ord(':'));
     $this->set(is_null($field) ? '' : $field);
 }
開發者ID:webignition,項目名稱:robots-txt-file,代碼行數:6,代碼來源:Field.php

示例13: __construct

 public function __construct($iLineNo = 0)
 {
     parent::__construct($iLineNo);
 }
開發者ID:gabrielrosset,項目名稱:moodle,代碼行數:4,代碼來源:PrimitiveValue.php

示例14: __construct

 public function __construct($value)
 {
     parent::__construct($value, ValueType::BOOLEAN);
 }
開發者ID:vube,項目名稱:google-visualization-php,代碼行數:4,代碼來源:BooleanValue.php


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