예제 #1
0
파일: TreeView.php 프로젝트: lohini/cf
 /**
  * @return \ArrayIterator
  */
 protected function getDataRows()
 {
     if (TreeView::EXPANDED === $this->mode) {
         if ($this->dataRows === NULL) {
             $this->dataRows = $this->dataSource->fetchAssoc($this->primaryKey);
         }
         return $this->dataRows;
     }
     return parent::getDataRows();
 }
예제 #2
0
파일: DataGrid.php 프로젝트: lohini/cf
 /**
  * Generates columns from data source
  */
 protected function generateColumns()
 {
     foreach ($this->dataSource->getColumns() as $name) {
         $this->addColumn($name);
     }
 }