예제 #1
0
 public function __construct()
 {
     parent::__construct();
     $this->setExtClassInfo("Ext.ux.Multiselect", "multiselect");
     $validProps = array("valueField", "data", "displayField", "dataFields", "imagePath", "height", "width", "store");
     $this->addValidConfigProperties($validProps);
 }
예제 #2
0
 public function __construct()
 {
     parent::__construct();
     $this->setExtClassInfo("Ext.ux.ItemSelector", "itemselector");
     $validProps = array("toLegend", "fromLegend", "valueField", "displayField", "fromData", "toData", "dataFields", "imagePath", "toStore", "fromStore", "msHeight", "msWidth");
     $this->addValidConfigProperties($validProps);
 }
예제 #3
0
 public function __construct()
 {
     parent::__construct();
     $this->setExtClassInfo("Ext.form.CheckboxGroup", "checkboxgroup");
     $this->_items = new PhpExt_ComponentCollection($this);
     $this->_items->setForceArray(true);
     $this->_extConfigProperties['items'] = $this->_items;
     $validProps = array("columns", "vertical", "columnWidth");
     $this->addValidConfigProperties($validProps);
 }
예제 #4
0
 public function __construct()
 {
     parent::__construct();
     $this->setExtClassInfo("Ext.form.TextField", "textfield");
     $validProps = array("allowBlank", "blankText", "disableKeyFilter", "emptyClass", "emptyText", "grow", "growMax", "growMin", "maskRe", "maxLength", "maxLengthText", "minLength", "minLengthText", "regex", "regexText", "selectOnFocus", "validator", "vtype", "vtypeText");
     $this->addValidConfigProperties($validProps);
 }
예제 #5
0
 public function __construct()
 {
     parent::__construct();
     $this->setExtClassInfo("Ext.form.HtmlEditor", "htmleditor");
     $validProps = array("createLinkText", "defaultLinkValue", "enableAlignments", "enableColors", "enableFont", "enableFontSize", "enableFormat", "enableLinks", "enableLists", "enableSourceEdit", "fontFamilies");
     $this->addValidConfigProperties($validProps);
 }
예제 #6
0
파일: Checkbox.php 프로젝트: pablius/oob-n1
 public function __construct()
 {
     parent::__construct();
     $this->setExtClassInfo("Ext.form.Checkbox", "checkbox");
     $validProps = array("autoCreate", "boxLabel", "checked", "fieldClass", "focusClass", "inputValue");
     $this->addValidConfigProperties($validProps);
 }
예제 #7
0
파일: Hidden.php 프로젝트: beodob/php-ext
 public function __construct()
 {
     parent::__construct();
     $this->setExtClassInfo("Ext.form.Hidden", "hidden");
 }
예제 #8
0
파일: Editor.php 프로젝트: pablius/oob-n1
 public function getJavascript($lazy = false, $varName = null)
 {
     if ($this->_varName == null) {
         $configParams = $this->getConfigParams($lazy);
         $className = $this->_extClassName;
         $configObj = "{" . implode(",", $configParams) . "}";
         $field = $this->_field->getJavascript(false);
         if ($lazy) {
             return $configObj;
         } else {
             $js = "new {$className}({$field},{$configObj})";
             if ($varName != null) {
                 $this->_varName = $varName;
                 $js = "var {$varName} = {$js};";
             }
             return $js;
         }
     } else {
         return $this->_varName;
     }
 }