src/Charcoal/Cms/Service/Manager/EventManager.php
public function numPages()
    {
        if ($this->numPage) {
            $this->numPage;
        };

        $entries = $this->entries();
        $count = count($entries);

        if ($this->numPerPage()) {
            $this->numPage = ceil($count / $this->numPerPage());
        } else {
            $this->numPage = 1;
        }

        return $this->numPage;
    }
public function numPages()
    {
        if ($this->numPage) {
            $this->numPage;
        };

        $entries = $this->entries();
        $count = count($entries);

        if ($this->numPerPage()) {
            $this->numPage = ceil($count / $this->numPerPage());
        } else {
            $this->numPage = 1;
        }

        return $this->numPage;
    }
public function numPages ( ) { if ( $ this -> numPage ) { $ this -> numPage ; } ; $ entries = $ this -> entries ( ) ; $ count = count ( $ entries ) ; if ( $ this -> numPerPage ( ) ) { $ this -> numPage = ceil ( $ count / $ this -> numPerPage ( ) ) ; } else { $ this -> numPage = 1 ; } return $ this -> numPage ; }
The total amount of pages.
@return float
The total amount of pages .