src/Charcoal/Cms/Service/Manager/NewsManager.php
public function entries()
    {
        $page = $this->page();
        $cat = $this->category();
        if (isset($this->entries[$cat])) {
            if (isset($this->entries[$cat][$page])) {
                return $this->entries[$cat][$page];
            }
        }

        $loader = $this->entriesLoader();

        $this->entries[$cat][$page] = $loader->load();

        return $this->entries[$cat][$page];
    }
public function entries()
    {
        $page = $this->page();
        $cat = $this->category();
        if (isset($this->entries[$cat])) {
            if (isset($this->entries[$cat][$page])) {
                return $this->entries[$cat][$page];
            }
        }

        $loader = $this->entriesLoader();

        $this->entries[$cat][$page] = $loader->load();

        return $this->entries[$cat][$page];
    }
public function entries ( ) { $ page = $ this -> page ( ) ; $ cat = $ this -> category ( ) ; if ( isset ( $ this -> entries [ $ cat ] ) ) { if ( isset ( $ this -> entries [ $ cat ] [ $ page ] ) ) { return $ this -> entries [ $ cat ] [ $ page ] ; } } $ loader = $ this -> entriesLoader ( ) ; $ this -> entries [ $ cat ] [ $ page ] = $ loader -> load ( ) ; return $ this -> entries [ $ cat ] [ $ page ] ; }
To be displayed news list.
@return mixed The news collection.
To be displayed news list .