Grido\Grid::getCount PHP Méthode

getCount() public méthode

Returns total count of data.
public getCount ( ) : integer
Résultat integer
    public function getCount()
    {
        if ($this->count === NULL) {
            $this->count = $this->getModel()->getCount();
        }
        return $this->count;
    }

Usage Example

Exemple #1
0
 /**
  * @return int
  */
 public function getCountEnd()
 {
     if ($this->countEnd === NULL) {
         $this->countEnd = $this->grid->getCount() > 0 ? min($this->grid->getCount(), $this->getPage() * $this->grid->getPerPage()) : 0;
     }
     return $this->countEnd;
 }