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


PHP Extension::__construct方法代码示例

本文整理汇总了PHP中Zend\GData\Extension\Extension::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Extension::__construct方法的具体用法?PHP Extension::__construct怎么用?PHP Extension::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend\GData\Extension\Extension的用法示例。


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

示例1: __construct

 /**
  * Constructs a new MediaRating element
  *
  * @param string $text
  * @param string $scheme
  */
 public function __construct($text = null, $scheme = null)
 {
     $this->registerAllNamespaces(\Zend\GData\Media\Media::$namespaces);
     parent::__construct();
     $this->_scheme = $scheme;
     $this->_text = $text;
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:13,代码来源:MediaRating.php

示例2: __construct

 /**
  * Constructs a new Zend_Gdata_GApps_Extension_Name object.
  *
  * @param string $familyName (optional) The familyName to be set for this
  *          object.
  * @param string $givenName (optional) The givenName to be set for this
  *          object.
  */
 public function __construct($familyName = null, $givenName = null)
 {
     $this->registerAllNamespaces(\Zend\GData\GApps\GApps::$namespaces);
     parent::__construct();
     $this->_familyName = $familyName;
     $this->_givenName = $givenName;
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:15,代码来源:Name.php

示例3: __construct

 /**
  * Constructs a new Zend_Gdata_Spreadsheets_Extension_Custom object.
  * @param string $column (optional) The column/tag name of the element.
  * @param string $value (optional) The text content of the element.
  */
 public function __construct($column = null, $value = null)
 {
     $this->registerAllNamespaces(\Zend\GData\Spreadsheets\Spreadsheets::$namespaces);
     parent::__construct();
     $this->_text = $value;
     $this->_rootElement = $column;
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:12,代码来源:Custom.php

示例4: __construct

 /**
  * Constructor for Zend_Gdata_Books_Extension_Review which
  * User-provided review
  *
  * @param string|null $lang Review language.
  * @param string|null $type Type of text construct (typically text, html,
  *        or xhtml).
  * @param string|null $value Text content of the review.
  */
 public function __construct($lang = null, $type = null, $value = null)
 {
     $this->registerAllNamespaces(\Zend\GData\Books\Books::$namespaces);
     parent::__construct();
     $this->_lang = $lang;
     $this->_type = $type;
     $this->_text = $value;
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:17,代码来源:Review.php

示例5: __construct

 /**
  * Constructs a new MediaPlayer element
  *
  * @param string $url
  * @param int $width
  * @param int $height
  */
 public function __construct($url = null, $width = null, $height = null)
 {
     $this->registerAllNamespaces(\Zend\GData\Media\Media::$namespaces);
     parent::__construct();
     $this->_url = $url;
     $this->_width = $width;
     $this->_height = $height;
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:15,代码来源:MediaPlayer.php

示例6: __construct

 /**
  * Constructs a new MediaRestriction element
  *
  * @param string $text
  * @param string $relationship
  * @param string $type
  */
 public function __construct($text = null, $relationship = null, $type = null)
 {
     $this->registerAllNamespaces(\Zend\GData\Media\Media::$namespaces);
     parent::__construct();
     $this->_text = $text;
     $this->_relationship = $relationship;
     $this->_type = $type;
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:15,代码来源:MediaRestriction.php

示例7: __construct

 /**
  * Constructs a new Zend_Gdata_YouTube_Extension_State object.
  *
  * @param string $explanation(optional) The explanation of this state
  * @param string $name(optional) The name value
  * @param string $reasonCode(optional) The reasonCode value
  * @param string $helpUrl(optional) The helpUrl value
  */
 public function __construct($explanation = null, $name = null, $reasonCode = null, $helpUrl = null)
 {
     $this->registerAllNamespaces(\Zend\GData\YouTube\YouTube::$namespaces);
     parent::__construct();
     $this->_text = $explanation;
     $this->_name = $name;
     $this->_reasonCode = $reasonCode;
     $this->_helpUrl = $reasonCode;
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:17,代码来源:State.php

示例8: __construct

 /**
  * Constructs a new Zend_Gdata_Spreadsheets_Extension_Cell element.
  *
  * @param string $text (optional) Text contents of the element.
  * @param string $row (optional) Row attribute of the element.
  * @param string $col (optional) Column attribute of the element.
  * @param string $inputValue (optional) Input value attribute of the element.
  * @param string $numericValue (optional) Numeric value attribute of the element.
  */
 public function __construct($text = null, $row = null, $col = null, $inputValue = null, $numericValue = null)
 {
     $this->registerAllNamespaces(\Zend\GData\Spreadsheets\Spreadsheets::$namespaces);
     parent::__construct();
     $this->_text = $text;
     $this->_row = $row;
     $this->_col = $col;
     $this->_inputValue = $inputValue;
     $this->_numericValue = $numericValue;
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:19,代码来源:Cell.php

示例9: __construct

 /**
  * Constructs a new MediaText element
  *
  * @param $text string
  * @param $type string
  * @param $lang string
  * @param $start string
  * @param $end string
  */
 public function __construct($text = null, $type = null, $lang = null, $start = null, $end = null)
 {
     $this->registerAllNamespaces(\Zend\GData\Media\Media::$namespaces);
     parent::__construct();
     $this->_text = $text;
     $this->_type = $type;
     $this->_lang = $lang;
     $this->_start = $start;
     $this->_end = $end;
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:19,代码来源:MediaText.php

示例10: __construct

 /**
  * Constructor for Zend_Gdata_DublinCore_Extension_Rights which
  * Information about rights held in and over the resource
  *
  * @param DOMElement $element (optional) DOMElement from which this
  *          object should be constructed.
  */
 public function __construct($value = null)
 {
     $this->registerAllNamespaces(\Zend\GData\DublinCore\DublinCore::$namespaces);
     parent::__construct();
     $this->_text = $value;
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:13,代码来源:Rights.php

示例11: __construct

 /**
  * Constructs a new Zend_Gdata_YouTube_Extension_Statistics object.
  * @param string $viewCount(optional) The viewCount value
  * @param string $videoWatchCount(optional) The videoWatchCount value
  * @param string $subscriberCount(optional) The subscriberCount value
  * @param string $lastWebAccess(optional) The lastWebAccess value
  * @param string $favoriteCount(optional) The favoriteCount value
  */
 public function __construct($viewCount = null, $videoWatchCount = null, $subscriberCount = null, $lastWebAccess = null, $favoriteCount = null)
 {
     $this->registerAllNamespaces(\Zend\GData\YouTube\YouTube::$namespaces);
     parent::__construct();
     $this->_viewCount = $viewCount;
     $this->_videoWatchCount = $videoWatchCount;
     $this->_subscriberCount = $subscriberCount;
     $this->_lastWebAccess = $lastWebAccess;
     $this->_favoriteCount = $favoriteCount;
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:18,代码来源:Statistics.php

示例12: __construct

 /**
  * Constructs a new Zend_Gdata_YouTube_Extension_Duration object.
  * @param bool $seconds(optional) The seconds value of the element.
  */
 public function __construct($seconds = null)
 {
     $this->registerAllNamespaces(\Zend\GData\YouTube\YouTube::$namespaces);
     parent::__construct();
     $this->_seconds = $seconds;
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:10,代码来源:Duration.php

示例13: __construct

 /**
  * Constructs a new Zend_Gdata_GApps_Extension_Login object.
  *
  * @param string $username (optional) The username to be used for this
  *          login.
  * @param string $password (optional) The password to be used for this
  *          login.
  * @param string $hashFunctionName (optional) The name of the hash
  *          function used to protect the password, or null if no
  *          has function has been applied. As of this writing,
  *          the only valid values are 'SHA-1' or null.
  * @param boolean $admin (optional) Whether the user is an administrator
  *          or not.
  * @param boolean $suspended (optional) Whether this login is suspended or not.
  * @param boolean $changePasswordAtNextLogin (optional) Whether
  *          the user is required to change their password at their
  *          next login.
  * @param boolean $agreedToTerms (optional) Whether the user has
  *          agreed to the terms of service.
  */
 public function __construct($username = null, $password = null, $hashFunctionName = null, $admin = null, $suspended = null, $changePasswordAtNextLogin = null, $agreedToTerms = null)
 {
     $this->registerAllNamespaces(\Zend\GData\GApps\GApps::$namespaces);
     parent::__construct();
     $this->_username = $username;
     $this->_password = $password;
     $this->_hashFunctionName = $hashFunctionName;
     $this->_admin = $admin;
     $this->_agreedToTerms = $agreedToTerms;
     $this->_suspended = $suspended;
     $this->_changePasswordAtNextLogin = $changePasswordAtNextLogin;
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:32,代码来源:Login.php

示例14: __construct

 public function __construct($text = null)
 {
     $this->registerAllNamespaces(\Zend\GData\YouTube\YouTube::$namespaces);
     parent::__construct();
     $this->_text = $text;
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:6,代码来源:Recorded.php

示例15: __construct

 /**
  * Constructs a new MediaKeywords element
  */
 public function __construct()
 {
     $this->registerAllNamespaces(\Zend\GData\Media\Media::$namespaces);
     parent::__construct();
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:8,代码来源:MediaKeywords.php


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