コード例 #1
0
ファイル: X2Widget.php プロジェクト: shuvro35/X2CRM
 /**
  * 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());
 }
コード例 #2
0
 /**
  * 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');
 }
コード例 #3
0
 /**
  * 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;
 }
コード例 #4
0
ファイル: X2Widget.php プロジェクト: dsyman2/X2CRM
 /**
  * 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);
 }
コード例 #5
0
ファイル: Widget.php プロジェクト: niranjan2m/Voyanga
 public function __construct($owner = null)
 {
     parent::__construct($owner);
     Yii::app()->configManager->configMe($this);
 }
コード例 #6
0
ファイル: MenuWidget.php プロジェクト: BertHankes/LimeSurvey
 public function __construct($owner = null)
 {
     parent::__construct($owner);
     Yii::import('application.helpers.surveytranslator_helper', true);
 }
コード例 #7
0
ファイル: ConfigWidget.php プロジェクト: damnpoet/yiicart
 public function __construct()
 {
     parent::__construct();
 }
コード例 #8
0
ファイル: JqxWidgetBase.php プロジェクト: hung5s/yap
 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')));
 }
コード例 #9
0
ファイル: YiiPlayer.php プロジェクト: sokil/php-acestream
 public function __construct($owner = null)
 {
     parent::__construct($owner);
     $this->_player = new Player();
 }
コード例 #10
0
ファイル: Widget.php プロジェクト: blindest/Yii-CMS-2.0
 public function __construct()
 {
     $this->attachBehaviors($this->behaviors());
     parent::__construct();
 }
コード例 #11
0
ファイル: X2Widget.php プロジェクト: keyeMyria/CRM
 /**
  * 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());
 }