Lines Matching refs:file

26  *   document - refers to either a page or a media file here
75 // set the file locations
121 $file = $this->files['opts'];
122 if(file_exists($file)) {
123 $options = unserialize(io_readFile($file, false));
154 * be written to the option file once the plan gets committed
215 * Add a single media file to be moved to the plan
271 foreach($this->files as $file) {
272 @unlink($file);
423 $pagelist = file($this->files['pagelist']);
435 $medialist = file($this->files['medialist']);
447 $medialist = file($this->files['affected']);
470 $file = $this->files['pagelist'];
475 $file = $this->files['medialist'];
481 $doclist = fopen($file, 'a+');
547 // update the list file
584 $missing = file($missing_fn);
592 $affected = file($this->files['affected']);
677 * Appends a page move operation in the list file
773 $referenceidx = file($fn, FILE_IGNORE_NEW_LINES);
796 * Store the aggregated document lists in the file system and reset the internal storage
810 foreach($lists as $store => $file) {
826 io_saveFile($file, $data);
840 * Get the last line from the list that is stored in the file that is referenced by the handle
841 * The handle is set to the newline before the file id
843 * @param resource $handle The file handle to read from
847 // begin the seek at the end of the file
854 if($c === false) return false; // EOF, i.e. the file is empty
868 if($line === '') return false; // beginning of file reached and no content
942 * write log to file
949 $file = $conf['cachedir'] . '/move/' . strftime('%Y%m%d-%H%M%S', $optime) . '.log';
950 io_saveFile($file, $log, true);