Beispiel #1
0
 function getCount()
 {
     if ($this->count !== null) {
         if ($this->count instanceof SelectStatement) {
             $this->count = $this->count->query()->fetch(Fetch::FIRST);
         }
         return $this->count;
     }
     if ($this->data) {
         return $this->count = count($this->data);
     }
     $this->count = $this->sql->getCount();
     return $this->count;
 }