Exemplo n.º 1
0
 /**
  * @param $listIds
  * @param string $orderBy
  * @param string $fileType
  * @return array|Zend_Db_Table_Rowset_Abstract
  */
 public function getFileInfosByIdList($listIds, $orderBy = '')
 {
     $myList = Sydney_Tools::flat($listIds);
     if (count($myList) > 0) {
         $select = $this->select()->setIntegrityCheck(false)->from("filfiles")->join(array("u" => "users"), "filfiles.users_id = u.id", array("fname", "lname"))->where("filfiles.id IN (?)", $myList)->order($orderBy);
         return $this->fetchAll($select, Zend_DB::FETCH_ASSOC);
     } else {
         return array();
     }
 }