setActive() public method

Sets active group.
public setActive ( $active ) : self
return self
コード例 #1
0
ファイル: nette.min.php プロジェクト: Vrtak-CZ/NJLogParser
 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);
 }
コード例 #2
0
ファイル: loader.php プロジェクト: JanTvrdik/NetteExtras
Selection($table,$this->connection);$referenced->where($table.'.'.$referenced->primary,array_keys($keys));}else{$referenced=array();}}return$referenced;}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);}function