当前位置: 首页>>代码示例>>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;未经允许,请勿转载。