Example #1
0
 public function __construct($name, $value)
 {
     parent::__construct();
     $this->setExtClassInfo("Ext.grid.PropertyRecord", null);
     $this->_name = $name;
     $this->_value = $value;
 }
Example #2
0
 protected function getConfigParams($lazy = false)
 {
     if ($this->_listeners->getCount() == 0) {
         $this->setExtConfigProperty("listeners", null);
     }
     return parent::getConfigParams($lazy);
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
     $this->setExtClassInfo("Ext.Template", null);
     $args = func_get_args();
     if (count($args) > 0 && is_array($args[0])) {
         $this->_html = $args[0];
     } else {
         $this->_html = $args;
     }
 }
Example #4
0
 public function getJavascript($lazy = false, $varName = null)
 {
     return parent::getJavascript(true, null);
 }
Example #5
0
 /**
  * Displays a message box with an infinitely auto-updating progress bar. This can be used to block user interaction while waiting for a long-running process to complete that does not have defined intervals. You are responsible for closing the message box when the process is complete.
  * 
  * @param string $msg The message box body text
  * @param string $title (optional) The title bar text
  * @param PhpExt_ProgressBarWaitConfigObject $config (optional) A PhpExt_ProgressBarWaitConfigObject object
  * @return PhpExt_JavascriptStm
  */
 public static function wait($msg, $title = null, $config = null)
 {
     $args[] = $msg;
     if ($title !== null) {
         $args[] = $title;
     }
     if ($config !== null) {
         if ($title === null) {
             $args[] = null;
         }
         $args[] = $config;
     }
     $mc = PhpExt_Object::createMethodSignature("wait", $args, true);
     return PhpExt_Object::getMethodInvokeStm("Ext.Msg", $mc, true);
 }
Example #6
0
 public function __construct()
 {
     parent::__construct();
     //$this->setExtClassInfo("Ext.tree.AbstractSelectionModel", null);
 }
Example #7
0
 public function __construct()
 {
     parent::__construct();
     $this->setExtClassInfo("Ext.data.DataReader", null);
     $this->_fields = new PhpExt_Data_FieldConfigObjectCollection();
 }
Example #8
0
 public static function valueToJavascript($value, $lazy = false)
 {
     $resolvedValue = $value;
     if (is_bool($value)) {
         $resolvedValue = $value ? "true" : "false";
     } else {
         if (is_null($value)) {
             $resolvedValue = null;
         } else {
             if (is_string($value)) {
                 $resolvedValue = "'{$value}'";
             } else {
                 if (is_array($value)) {
                     $resolvedValue = PhpExt_Javascript::jsonEncode($value);
                 } else {
                     if (PhpExt_Object::isExtObject($value)) {
                         $resolvedValue = $value->getJavascript($lazy);
                     } else {
                         if (PhpExt_ObjectCollection::isExtObjectCollection($value)) {
                             if ($value->getCount() > 0) {
                                 $resolvedValue = $value->getJavascript($lazy);
                             }
                         } else {
                             if (PhpExt_Javascript::isJavascript($value) || PhpExt_Javascript::isJavascriptStm($value)) {
                                 $resolvedValue = $value->output();
                             } else {
                                 if (is_object($value)) {
                                     $resolvedValue = PhpExt_Javascript::jsonEncode($value);
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
     return $resolvedValue;
 }
Example #9
0
 public function __construct()
 {
     parent::__construct();
     $this->setExtClassInfo("Ext.form.Action");
     $validProps = array("failure", "method", "params", "scope", "success", "url", "waitMsg", "waitTitle", "failureType", "result");
     $this->addValidConfigProperties($validProps);
 }
Example #10
0
 public function __construct()
 {
     parent::__construct();
     $this->setExtClassInfo("Ext.Shadow");
 }
Example #11
0
 public function __construct()
 {
     parent::__construct();
     $this->setExtClassInfo("Ext.Toolbar.Item", "tbitem");
 }
Example #12
0
 public function __construct()
 {
     parent::__construct();
     $this->setExtClassInfo("Ext.layout.ContainerLayout", null);
     $validProps = array("extraCls", "renderHidden");
     $this->addValidConfigProperties($validProps);
     $this->addValidLayoutDataClassName("PhpExt_Layout_ContainerLayoutData");
 }
Example #13
0
 public static function unregister()
 {
     $mc = PhpExt_Object::createMethodSignature("unregister", array(), true);
     return PhpExt_Object::getMethodInvokeStm("Ext.QuickTips", $mc, true);
 }
Example #14
0
 public static function create(PhpExt_Data_FieldConfigObjectCollection $fields)
 {
     $mc = PhpExt_Object::createMethodSignature("create", array($fields), true);
     return PhpExt_Object::getMethodInvokeStm('Ext.data.Record', $mc, true);
 }
Example #15
0
 /**
  * Initiates an auto-updating progress bar. A duration can be specified, in which case the progress bar
  * will automatically reset after a fixed amount of time and optionally call a callback function if specified. 
  * If no duration is passed in, then the progress bar will run indefinitely and must be manually cleared by calling reset.
  * 
  * @param PhpExt_ProgressBarWaitConfigObject $config (optional) A PhpExt_ProgressBarWaitConfigObject object
  * @return PhpExt_JavascriptStm
  */
 public static function wait($config)
 {
     $args[] = $config;
     $mc = PhpExt_Object::createMethodSignature("wait", $args);
     return PhpExt_Object::getMethodInvokeStm($this->_varName, $mc, true);
 }
Example #16
0
 public function getJavascript($lazy = false, $varName = null)
 {
     return PhpExt_Object::getJavascript(false, $varName);
 }