Esempio n. 1
0
 public function returning()
 {
     $number = func_num_args();
     for ($i = 0; $i < $number; $i++) {
         array_push($this->returning, ColumnManager::getColumn());
     }
     return $this;
 }
Esempio n. 2
0
function g($columns = null)
{
    if ($columns instanceof PersistenceModel) {
        $columns = func_num_args();
    }
    $list = array();
    for ($i = 0; $i < $columns; $i++) {
        $col = ColumnManager::getColumn();
        array_push($list, $col);
    }
    return $list;
}
Esempio n. 3
0
 public static function __as__($alias)
 {
     $column = ColumnManager::getColumn();
     return ColumnManager::addColumn(array('column' => $column, 'alias' => $alias));
 }
Esempio n. 4
0
 public function __get($name)
 {
     $fullname = ($this->relation ? "{$this->relation}." : "") . ($this->name ? "{$this->name}" : "");
     return ColumnManager::addColumn(new PersistenceModel($fullname, $name));
 }