concrete/src/Page/Single.php
public static function getList()
    {
        $db = Loader::db();
        $r = $db->query("select Pages.cID from Pages inner join Collections on Pages.cID = Collections.cID where cFilename is not null order by cDateModified desc");
        $pages = array();
        while ($row = $r->fetchRow()) {
            $c = Page::getByID($row['cID']);
            $pages[] = $c;
        }

        return $pages;
    }
public static function getList()
    {
        $db = Loader::db();
        $r = $db->query("select Pages.cID from Pages inner join Collections on Pages.cID = Collections.cID where cFilename is not null order by cDateModified desc");
        $pages = array();
        while ($row = $r->fetchRow()) {
            $c = Page::getByID($row['cID']);
            $pages[] = $c;
        }

        return $pages;
    }
public static function getList ( ) { $ db = Loader :: db ( ) ; $ r = $ db -> query ( "select Pages.cID from Pages inner join Collections on Pages.cID = Collections.cID where cFilename is not null order by cDateModified desc" ) ; $ pages = array ( ) ; while ( $ row = $ r -> fetchRow ( ) ) { $ c = Page :: getByID ( $ row [ 'cID' ] ) ; $ pages [ ] = $ c ; } return $ pages ; }
returns all pages in the site that are "single"
returns all pages in the site that are single