Package | system.db.ar |
---|---|
Inheritance | class CStatElement |
Since | 1.0.4 |
Version | $Id$ |
Source Code | framework/db/ar/CActiveFinder.php |
Property | Type | Description | Defined By |
---|---|---|---|
relation | CActiveRelation | the relation represented by this tree node | CStatElement |
Method | Description | Defined By |
---|---|---|
__construct() | Constructor. | CStatElement |
query() | Performs the STAT query. | CStatElement |
the relation represented by this tree node
$finder | CActiveFinder | the finder |
$relation | CStatRelation | the STAT relation |
$parent | CJoinElement | the join element owning this STAT element |
public function __construct($finder,$relation,$parent)
{
$this->_finder=$finder;
$this->_parent=$parent;
$this->relation=$relation;
$parent->stats[]=$this;
}
Constructor.
public void query()
|
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.
Signup or Login in order to comment.