Nette\Database\Table\GroupedSelection::setActive PHP Method

setActive() public method

Sets active group.
public setActive ( $active ) : self
return self
    public function setActive($active)
    {
        $this->active = $active;
        return $this;
    }

Usage Example

示例#1
0
 function getReferencingTable($table, $column, $active = NULL, $forceNewInstance = FALSE)
 {
     $referencing =& $this->referencing["{$table}:{$column}"];
     if (!$referencing || $forceNewInstance) {
         $referencing = new GroupedSelection($table, $this, $column);
         $referencing->where("{$table}.{$column}", array_keys((array) $this->rows));
     }
     return $referencing->setActive($active);
 }
All Usage Examples Of Nette\Database\Table\GroupedSelection::setActive