public static function getTempFiles($types) { $type = (array) $types; $model = new Default_Model_TempFiles(); $select = $model->getMapper()->getDbTable()->select()->where('type IN (?)', $type)->where('userId = ?', Zend_Registry::get('user')->getId()); $result = $model->fetchAll($select); return $result; }