/** * Adds the file to the set * @param type $fID //accepts an ID or a File object * @return object */ public function addFileToSet($f_id) { if (is_object($f_id)) { $f_id = $f_id->getFileID(); } $file_set_file = FileSetFile::createAndGetFile($f_id,$this->fsID); return $file_set_file; }
/** * Adds the file to the set * @param type $fID //accepts an ID or a File object * @return object */ public function addFileToSet($f_id) { if (is_object($f_id)) { $f_id = $f_id->getFileID(); } $file_set_file = FileSetFile::createAndGetFile($f_id, $this->fsID); Events::fire('on_file_added_to_set', $f_id, $this->getFileSetID()); return $file_set_file; }