Lines Matching defs:to

22  * @param string $id - a pageid, the namespace of that id will be tried to deleted
23 * @param string $basedir - the config name of the type to delete (datadir or mediadir usally)
41 //try to delete dir else return
56 * Used to read in a DokuWiki page from file, and send IO_WIKIPAGE_READ events.
58 * Generates the action event which delegates to io_readFile().
59 * Action plugins are allowed to modify the page content in transit.
106 * If you want to use the returned value in unserialize
107 * be sure to set $clean to false!
161 //8192 seems to be the maximum buffersize?
187 * Used to write out a DokuWiki page to file, and send IO_WIKIPAGE_WRITE events.
189 * This generates an action event and delegates to io_saveFile().
190 * Action plugins are allowed to modify the page content in transit.
192 * (The append parameter is set to false.)
243 * Internal function to save contents to a file.
245 * @param string $file filename path to file
289 * Saves $content to $file.
291 * If the third parameter is set to true the given content
297 * @param string $file filename path to file
320 * The default, when $maxlines is 0 is to delete all matching lines then append a single line.
324 * Otherwise each line is matched and replaced individually, up to the first $maxlines lines
327 * Be sure to include the trailing newline in $oldline when replacing entire lines.
333 * @param string $oldline exact linematch to remove
334 * @param string $newline new line to insert
336 * @param int $maxlines number of occurrences of the line to replace
375 // $matched will be set to 0|1 depending on whether pattern is matched and line replaced
407 * Be sure to include the trailing newline in $badline
410 * @param string $badline exact linematch to remove
422 * Tries to lock a file
428 * the lock is assumed to be stale and the function goes on
564 * @param bool $removefiles defaults to false which will delete empty directories only
611 * @return false|string path to new directory or false
635 * - $file is the full filename to save the file, incl. path
642 * @param string $url url to download
643 * @param string $file path to file or directory where to save
644 * @param bool $useAttachment true: try to use name of download, uses otherwise $defaultName
645 * false: uses $file as path to file
704 * @param string $to
707 function io_rename($from, $to)
710 if (!@rename($from, $to)) {
711 if (@copy($from, $to)) {
713 chmod($to, $conf['fperm']);
755 * memory intensive because not the whole file needs to be loaded
758 * @param string $file The file to search
760 * @param int $max How many lines to return (0 for all)
799 * @param string $file filename path to file
822 //8192 seems to be the maximum buffersize?