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


PHP CWidget::__construct方法代碼示例

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


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

示例1: __construct

 /**
  * Constructor.
  * @param CBaseController $owner owner/creator of this widget. It could be either a widget or a 
  *  controller.
  */
 public function __construct($owner = null)
 {
     if ($this->namespace === '' && isset($_POST[X2Widget::NAMESPACE_KEY])) {
         $this->namespace = $_POST[X2Widget::NAMESPACE_KEY];
     }
     parent::__construct($owner);
     $this->attachBehaviors($this->behaviors());
 }
開發者ID:shuvro35,項目名稱:X2CRM,代碼行數:13,代碼來源:X2Widget.php

示例2: __construct

 /**
  * Constructs the calendar and sets it's attributes to default values.
  * @param CBaseController $owner The owner of calendar.
  */
 public function __construct(CBaseController $owner)
 {
     parent::__construct($owner);
     $this->_dataProvider = new ECalendarViewDataProvider();
     $this->_itemView = null;
     $this->_weeksInRow = 1;
     $this->_cssFile = null;
     $this->_ajaxUpdate = true;
     $this->getDataProvider()->getPagination()->setPageIndexVar($this->getId(true) . '_page');
 }
開發者ID:AndressJose,項目名稱:sistema-examenes,代碼行數:14,代碼來源:ECalendarView.php

示例3: __construct

 /**
  * Constructor.
  * @param CBaseController $owner owner/creator of this widget. It could be either a widget or a controller.
  */
 public function __construct($owner = null)
 {
     parent::__construct($owner);
     $this->_isFilter = $owner === null;
 }
開發者ID:conghua1013,項目名稱:Yii-Bootstrap-Admin,代碼行數:9,代碼來源:CFilterWidget.php

示例4: __construct

 /**
  * Constructor.
  * @param CBaseController $owner owner/creator of this widget. It could be either a widget or a 
  *  controller.
  */
 public function __construct($owner = null)
 {
     $this->attachBehaviors($this->behaviors());
     $this->initNamespace();
     parent::__construct($owner);
 }
開發者ID:dsyman2,項目名稱:X2CRM,代碼行數:11,代碼來源:X2Widget.php

示例5: __construct

 public function __construct($owner = null)
 {
     parent::__construct($owner);
     Yii::app()->configManager->configMe($this);
 }
開發者ID:niranjan2m,項目名稱:Voyanga,代碼行數:5,代碼來源:Widget.php

示例6: __construct

 public function __construct($owner = null)
 {
     parent::__construct($owner);
     Yii::import('application.helpers.surveytranslator_helper', true);
 }
開發者ID:BertHankes,項目名稱:LimeSurvey,代碼行數:5,代碼來源:MenuWidget.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
 }
開發者ID:damnpoet,項目名稱:yiicart,代碼行數:4,代碼來源:ConfigWidget.php

示例8: __construct

 public function __construct($owner = null)
 {
     parent::__construct($owner);
     $this->packageBaseUrl = app()->assetManager->publish(Yii::getPathOfAlias('Xpress.extensions.web.widgets.JqxWidgets.assets'));
     cs()->addPackage('jqwidgets.core', array('baseUrl' => $this->packageBaseUrl, 'js' => array($this->version . '/jqwidgets/jqxcore.js', $this->version . '/jqwidgets/jqxdata.js'), 'css' => array($this->version . '/jqwidgets/styles/jqx.base.css', $this->version . '/jqwidgets/styles/jqx.energyblue.css'), 'depends' => array('jquery')));
 }
開發者ID:hung5s,項目名稱:yap,代碼行數:6,代碼來源:JqxWidgetBase.php

示例9: __construct

 public function __construct($owner = null)
 {
     parent::__construct($owner);
     $this->_player = new Player();
 }
開發者ID:sokil,項目名稱:php-acestream,代碼行數:5,代碼來源:YiiPlayer.php

示例10: __construct

 public function __construct()
 {
     $this->attachBehaviors($this->behaviors());
     parent::__construct();
 }
開發者ID:blindest,項目名稱:Yii-CMS-2.0,代碼行數:5,代碼來源:Widget.php

示例11: __construct

 /**
  * Constructor.
  * @param CBaseController $owner owner/creator of this widget. It could be either a widget or a 
  *  controller.
  */
 public function __construct($owner = null)
 {
     parent::__construct($owner);
     $this->attachBehaviors($this->behaviors());
 }
開發者ID:keyeMyria,項目名稱:CRM,代碼行數:10,代碼來源:X2Widget.php


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