public function __construct($type, $dataIndex)
 {
     parent::__construct();
     $validProps = array("type", "dataIndex", "options", "value", "phpMode", "active");
     $this->addValidConfigProperties($validProps);
     $this->setType($type);
 }
 public function __construct($fieldName, $direction = PhpExt_Data_SortInfoConfigObject::SORT_DIR_ASC)
 {
     parent::__construct();
     $validProps = array("field", "direction");
     $this->addValidConfigProperties($validProps);
     $this->setField($fieldName);
     $this->setDirection($direction);
 }
Exemple #3
0
 public function __construct($html, $colspan = null, $rowspan = null)
 {
     parent::__construct();
     $validProps = array("html", "rowspan", "colspan");
     $this->addValidConfigProperties($validProps);
     $this->setHtml($html);
     $this->setColSpan($colspan);
     $this->setRowSpan($rowspan);
 }
 public function __construct($header)
 {
     parent::__construct();
     $validProps = array("align", "dataIndex", "editor", "fixed", "header", "hidden", "hideable", "id", "renderer", "resizable", "sortable", "width", "locked");
     $this->addValidConfigProperties($validProps);
     $this->setHeader($header);
 }
Exemple #5
0
 /**
  * 
  *
  * @param array $params An object containing properties to pass as HTTP parameters to a remote data source.
  * @param PhpExt_Handler $callback A function to be called after the Records have been loaded.
  * @param PhpExt_JavascriptStm $scope Scope with which to call the callback (defaults to the Store object)
  * @param boolean $add Indicator to append loaded records rather than replace the current cache.
  */
 public function __construct($params = null, $callback = null, $scope = null, $add = null)
 {
     parent::__construct();
     $validProps = array("params", "callback", "scope", "add");
     $this->addValidConfigProperties($validProps);
     if ($params !== null) {
         $this->setParams($params);
     }
     if ($callback !== null) {
         $this->setCallback($callback);
     }
     if ($scope !== null) {
         $this->setScope($scope);
     }
     if ($add !== null) {
         $this->setAdd($add);
     }
 }
Exemple #6
0
 /**
  * @param string $id The type of tool to create. For a list of possible values see {@link PhpExt_Tool::setId()}.
  * @param PhpExt_JavascriptStm $handler The Javacript function to call when clicked, can be created with {@link PhpExt_Javascript::functionDef()} 
  * @param boolean $scope The scope in which to call the handler.
  * @param string $qtip A tip string, or a config argument to Ext.QuickTip.register
  * @param string $hidden True to initially render hidden. 
  * @param PhpExt_ListenerCollection $on A {@link PhpExt_ListenerCollection}
  */
 public function __construct($id, $handler, $scope = null, $qtip = null, $hidden = null, $on = null)
 {
     parent::__construct();
     $validProps = array("id", "handler", "scope", "qtip", "hidden", "on");
     $this->addValidConfigProperties($validProps);
     $this->setId($id);
     $this->setHandler($handler);
     if ($scope !== null) {
         $this->setScope($scope);
     }
     if ($qtip !== null) {
         $this->setQtip($qtip);
     }
     if ($hidden !== null) {
         $this->setHidden($hidden);
     }
     if ($on !== null) {
         $this->setOn($on);
     }
 }
Exemple #7
0
 public function __construct($name, $mapping = null, $type = null, $dateFormat = null, $sortType = null, $sortDir = null, $convert = null)
 {
     parent::__construct();
     $validProps = array("name", "mapping", "type", "sortType", "sortDir", "convert", "dateFormat");
     $this->addValidConfigProperties($validProps);
     $this->setName($name);
     $this->setMapping($mapping);
     $this->setType($type);
     $this->setSortType($sortType);
     $this->setSortDir($sortDir);
     $this->setConvert($convert);
     $this->setDateFormat($dateFormat);
 }
 public function __construct()
 {
     parent::__construct();
     $validProps = array("duration", "interval", "increment", "fn", "scope");
     $this->addValidConfigProperties($validProps);
 }
Exemple #9
0
 public function __construct($handler, $scope = null, $delay = null, $single = null, $buffer = null)
 {
     parent::__construct();
     $validProps = array("fn", "scope", "delay", "single", "buffer");
     $this->addValidConfigProperties($validProps);
     $this->setHandler($handler);
     $this->setScope($scope);
     $this->setDelay($delay);
     $this->setSingle($single);
     $this->setBuffer($buffer);
 }
Exemple #10
0
 public function __construct()
 {
     parent::__construct();
     $validProps = array("animEl", "buttons", "closable", "cls", "defaultTextHeight", "fn", "scope", "icon", "iconCls", "maxWidth", "minWidth", "modal", "msg", "multiline", "progress", "progressText", "prompt", "proxyDrag", "title", "value", "wait", "waitConfig", "width");
     $this->addValidConfigProperties($validProps);
 }
 /**
  * @param string $url The URL to request.
  * @param array $params The parameters to pass to the server. These may be specified as a urlencoded string, or as an array containing properties which represent parameters.
  * @param boolean $scripts If true any <script> tags embedded in the response text will be extracted and executed. If this option is specified, the callback will be called after the execution of the scripts.
  * @param string $method The HTTP method to use. Defaults to AUTO_LOAD_METHOD_POST if params are present, or AUTO_LOAD_METHOD_GET if not. 
  */
 public function __construct($url, $params = array(), $scripts = null, $method = null)
 {
     parent::__construct();
     $validProps = array("url", "method", "params", "scripts", "callback", "scope", "discardUrl", "timeout", "noCache", "text");
     $this->addValidConfigProperties($validProps);
     $this->setUrl($url);
     if (count($params) > 0) {
         $this->setParams($params);
     }
     if ($scripts !== null) {
         $this->setScripts($scripts);
     }
     if ($method !== null) {
         $this->setMethod($method);
     }
 }