public static function getAll($sitio = null, $limit = 0, $order = "fecha") { if ($sitio) { $where = "id_sitio = {$sitio}"; } $noticias = new Noticias(); return $noticias->fetchAll($where, $order, $limit); }