Beispiel #1
0
 /**
  * Initializes the widget.
  * This method will publish JUI assets if necessary.
  * It will also register jquery and JUI JavaScript files and the theme CSS file.
  * If you override this method, make sure you call the parent implementation first.
  */
 public function init()
 {
     assert('!empty($this->type)');
     assert('!empty($this->dataUrl)');
     assert('$this->dataFormat == "URIData" || $this->dataFormat == "XMLData"');
     assert('is_int($this->height) && $this->height > 0');
     parent::init();
 }
 /**
  * Initialize the Calendar Widget
  */
 public function init()
 {
     parent::init();
 }
Beispiel #3
0
 /**
  * Initializes the widget.
  * This method will publish JUI assets if necessary.
  * It will also register jquery and JUI JavaScript files and the theme CSS file.
  * If you override this method, make sure you call the parent implementation first.
  */
 public function init()
 {
     assert('is_string($this->uploadUrl) && $this->uploadUrl != ""');
     assert('is_string($this->deleteUrl) && $this->deleteUrl != ""');
     assert('is_string($this->inputId)   && $this->inputId   != ""');
     assert('is_string($this->inputName) && $this->inputName != ""');
     assert('is_string($this->hiddenInputName) && $this->hiddenInputName != ""');
     assert('is_array($this->existingFiles)');
     Yii::app()->getClientScript()->registerCoreScript('jquery.ui');
     parent::init();
 }
 public function init()
 {
     $this->resolveSelectivePluginScriptLoad();
     parent::init();
     // TODO: @Shoaibi: Critical: Find a better way to deal with this.
     //$this->resolveSelectiveCssLoad();
 }