public function __construct(Torpor $torpor, $name = null, SimpleXMLElement $xmlDef = null, Grid $grid = null) { parent::__construct($torpor, $name); if ($grid instanceof Grid) { $this->setGrid($grid); } if ($xmlDef instanceof SimpleXMLElement) { $this->initialize($xmlDef); } }
public function GridSet(Torpor $torpor, $gridType = null, $sourceContent = null, $sourceGridAlias = null) { parent::__construct($torpor); if (!empty($gridType)) { $this->setType($gridType); } if (!empty($sourceContent)) { if ($sourceContent instanceof Grid) { $this->setSourceGrid($sourceContent, $sourceGridAlias); } else { if ($sourceContent instanceof Criteria) { $this->setSourceCriteria($sourceContent); } } } $this->setPageSize($this->Torpor()->pageSize()); }