Esempio n. 1
0
 public function addJoin($tableFrom, $propertyFrom, $tableTo, $propertyTo, $as = null)
 {
     $connection = $this->dataSource->getConnection();
     $newJoin["FullTableFrom"] = $connection->parseTable($tableFrom);
     $newJoin["FullPropertyFrom"] = $connection->parseField($propertyFrom);
     $newJoin["FullTableTo"] = $connection->parseTable($tableTo);
     $newJoin["FullPropertyTo"] = $connection->parseField($propertyTo);
     $newJoin["As"] = null;
     if ($as) {
         $newJoin["As"] = $connection->parseTable($as);
     }
     $this->joins[] = $newJoin;
 }
Esempio n. 2
0
 /**
  *
  * @return int
  */
 public function getCount()
 {
     return $this->dataSource->getConnection()->getRowCount($this->result);
 }