Ejemplo n.º 1
0
 /**
  * Constructor.
  * Initializes the list with an array or an iterable object.
  * @param array|Iterator the intial data. Default is null, meaning no initial data.
  * @param boolean whether the list is read-only
  * @param numeric the default priority of items without specified priorities.
  * @param integer the precision of the numeric priorities
  * @throws TInvalidDataTypeException If data is not null and is neither an array nor an iterator.
  */
 public function __construct($data = null, $readOnly = false, $defaultPriority = 10, $precision = 8)
 {
     parent::__construct();
     if ($data !== null) {
         $this->copyFrom($data);
     }
     $this->setReadOnly($readOnly);
     $this->setPrecision($precision);
     $this->setDefaultPriority($defaultPriority);
 }
Ejemplo n.º 2
0
 public function __construct(TControl $owner, $readOnly = false)
 {
     $this->_o = $owner;
     parent::__construct(null, $readOnly);
 }
Ejemplo n.º 3
0
 /**
  * This initializes the list and the name of the method to be called
  *	@param string the name of the function call
  */
 public function __construct($method)
 {
     $this->_method = $method;
     parent::__construct();
 }
Ejemplo n.º 4
0
 /**
  * Constructor.
  * @param array|Iterator the initial data. Default is null, meaning no initialization.
  * @param boolean whether the list is read-only. Always true for paged list.
  */
 public function __construct($data = null, $readOnly = false)
 {
     parent::__construct($data, true);
 }
Ejemplo n.º 5
0
 /**
  * Constructor.
  * @param TWizard wizard that owns this collection
  */
 public function __construct(TWizard $wizard)
 {
     parent::__construct();
     $this->_wizard = $wizard;
 }
Ejemplo n.º 6
0
 /**
  * Constructor.
  * @param mixed owner of this collection.
  */
 public function __construct($owner = null)
 {
     $this->_o = $owner;
     parent::__construct();
 }
Ejemplo n.º 7
0
 /**
  * Constructor.
  * @param TDataGrid the control that owns this collection.
  */
 public function __construct(TDataGrid $owner)
 {
     parent::__construct();
     $this->_o = $owner;
 }
Ejemplo n.º 8
0
 /**
  * Constructor.
  * @param TXmlElement owner of this list
  */
 public function __construct(TXmlElement $owner)
 {
     parent::__construct();
     $this->_o = $owner;
 }