Beispiel #1
0
 /**
  * @param \Dibi\Fluent $fluent
  *
  * @return int
  */
 public function countRows(\Dibi\Fluent $fluent)
 {
     return (int) $fluent->select(false)->select('count(*)')->execute()->fetchSingle();
 }
Beispiel #2
0
 public function selectTreeSqlFactory($selectId = False)
 {
     $alias = $this->table->getAlias();
     $DF = new Fluent($this->connection);
     return $DF->select("`{$alias}`.`{$this->id}`")->from('`' . $this->table->getName() . "` AS `{$alias}`");
 }