public function __construct($name, $value) { parent::__construct(); $this->setExtClassInfo("Ext.grid.PropertyRecord", null); $this->_name = $name; $this->_value = $value; }
protected function getConfigParams($lazy = false) { if ($this->_listeners->getCount() == 0) { $this->setExtConfigProperty("listeners", null); } return parent::getConfigParams($lazy); }
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; } }
public function getJavascript($lazy = false, $varName = null) { return parent::getJavascript(true, null); }
/** * 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); }
public function __construct() { parent::__construct(); //$this->setExtClassInfo("Ext.tree.AbstractSelectionModel", null); }
public function __construct() { parent::__construct(); $this->setExtClassInfo("Ext.data.DataReader", null); $this->_fields = new PhpExt_Data_FieldConfigObjectCollection(); }
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; }
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); }
public function __construct() { parent::__construct(); $this->setExtClassInfo("Ext.Shadow"); }
public function __construct() { parent::__construct(); $this->setExtClassInfo("Ext.Toolbar.Item", "tbitem"); }
public function __construct() { parent::__construct(); $this->setExtClassInfo("Ext.layout.ContainerLayout", null); $validProps = array("extraCls", "renderHidden"); $this->addValidConfigProperties($validProps); $this->addValidLayoutDataClassName("PhpExt_Layout_ContainerLayoutData"); }
public static function unregister() { $mc = PhpExt_Object::createMethodSignature("unregister", array(), true); return PhpExt_Object::getMethodInvokeStm("Ext.QuickTips", $mc, true); }
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); }
/** * 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); }
public function getJavascript($lazy = false, $varName = null) { return PhpExt_Object::getJavascript(false, $varName); }