Exemple #1
0
 public static function getFileSetFiles(Set $fs)
 {
     $db = Loader::db();
     $r = $db->query('SELECT fsfID FROM FileSetFiles WHERE fsID = ? ORDER BY fsDisplayOrder ASC', array($fs->getFileSetID()));
     $files = array();
     while ($row = $r->FetchRow()) {
         $fsf = static::getByID($row['fsfID']);
         if (is_object($fsf)) {
             $files[] = $fsf;
         }
     }
     return $files;
 }
 /**
  * @return int
  */
 public function getFileSetID()
 {
     return parent::getFileSetID();
 }