CStatElement
Public Properties
Property |
Type |
Description |
Defined By |
relation | CActiveRelation | the relation represented by this tree node | CStatElement |
Public Methods
Method |
Description |
Defined By |
__construct() | Constructor. | CStatElement |
query() | Performs the STAT query. | CStatElement |
Property Details
public CActiveRelation $relation;
the relation represented by this tree node
Method Details
Source Code: framework/db/ar/CActiveFinder.php#1401 (
show)
public function __construct($finder,$relation,$parent)
{
$this->_finder=$finder;
$this->_parent=$parent;
$this->relation=$relation;
$parent->stats[]=$this;
}
Constructor.
Source Code: framework/db/ar/CActiveFinder.php#1412 (
show)
public function query()
{
if(preg_match('/^\s*(.*?)\((.*)\)\s*$/',$this->relation->foreignKey,$matches))
$this->queryManyMany($matches[1],$matches[2]);
else
$this->queryOneMany();
}
Performs the STAT query.