/** * @param \Dibi\Fluent $fluent * * @return int */ public function countRows(\Dibi\Fluent $fluent) { return (int) $fluent->select(false)->select('count(*)')->execute()->fetchSingle(); }
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}`"); }