Example #1
0
 public static function getRecentlyModified($below, $maxrows = null, $contentType = "", $dateEnd = null)
 {
     if ($dateEnd == null) {
         $dateEnd = localtime();
     }
     $aryFiles = FileSystemHelper::getRecentlyModified($below);
     $aryPages = array();
     foreach ($aryFiles as $p => $d) {
         if ($maxrows == null || count($aryFiles) < $maxrows) {
             $objPage = new Page($p);
             if ($contentType == "" || $objPage->getContentType() == $contentType) {
                 $aryPages[] = $objPage;
             }
         }
     }
     return $aryPages;
 }