Lines Matching defs:to
23 * @param string $id - a pageid, the namespace of that id will be tried to deleted
24 * @param string $basedir - the config name of the type to delete (datadir or mediadir usally)
42 //try to delete dir else return
57 * Used to read in a DokuWiki page from file, and send IO_WIKIPAGE_READ events.
59 * Generates the action event which delegates to io_readFile().
60 * Action plugins are allowed to modify the page content in transit.
107 * If you want to use the returned value in unserialize
108 * be sure to set $clean to false!
162 //8192 seems to be the maximum buffersize?
188 * Used to write out a DokuWiki page to file, and send IO_WIKIPAGE_WRITE events.
190 * This generates an action event and delegates to io_saveFile().
191 * Action plugins are allowed to modify the page content in transit.
193 * (The append parameter is set to false.)
244 * Internal function to save contents to a file.
246 * @param string $file filename path to file
290 * Saves $content to $file.
292 * If the third parameter is set to true the given content
298 * @param string $file filename path to file
321 * The default, when $maxlines is 0 is to delete all matching lines then append a single line.
325 * Otherwise each line is matched and replaced individually, up to the first $maxlines lines
328 * Be sure to include the trailing newline in $oldline when replacing entire lines.
334 * @param string $oldline exact linematch to remove
335 * @param string $newline new line to insert
337 * @param int $maxlines number of occurrences of the line to replace
376 // $matched will be set to 0|1 depending on whether pattern is matched and line replaced
408 * Be sure to include the trailing newline in $badline
411 * @param string $badline exact linematch to remove
423 * Tries to lock a file
429 * the lock is assumed to be stale and the function goes on
565 * @param bool $removefiles defaults to false which will delete empty directories only
612 * @return false|string path to new directory or false
636 * - $file is the full filename to save the file, incl. path
643 * @param string $url url to download
644 * @param string $file path to file or directory where to save
645 * @param bool $useAttachment true: try to use name of download, uses otherwise $defaultName
646 * false: uses $file as path to file
705 * @param string $to
708 function io_rename($from, $to)
711 if (!@rename($from, $to)) {
712 if (@copy($from, $to)) {
714 chmod($to, $conf['fperm']);
756 * memory intensive because not the whole file needs to be loaded
759 * @param string $file The file to search
761 * @param int $max How many lines to return (0 for all)
800 * @param string $file filename path to file
823 //8192 seems to be the maximum buffersize?