public function total() {
        
        if(is_null($this->totalCount)) {
            $cpt = $this->getParent()->fetchQuery($this->countQuery);
            $this->totalCount = intval($cpt['cpt']);
        }
        
        return $this->totalCount;
    }
public function total() {
        
        if(is_null($this->totalCount)) {
            $cpt = $this->getParent()->fetchQuery($this->countQuery);
            $this->totalCount = intval($cpt['cpt']);
        }
        
        return $this->totalCount;
    }
public function total ( ) { if ( is_null ( $ this -> totalCount ) ) { $ cpt = $ this -> getParent ( ) -> fetchQuery ( $ this -> countQuery ) ; $ this -> totalCount = intval ( $ cpt [ 'cpt' ] ) ; } return $ this -> totalCount ; }
return total number of result
@return integer
return total number of result