Lines Matching defs:to

48  * @param mixed $default The value to use when filling up missing elements
60 * This is similar to empty() but will return false for "0".
65 * To avoid this it's recommended to guard the call with isset like this:
71 * @param bool $trim Consider a string of whitespace to be blank
98 * Return a secret token to be used for CSRF attack prevention
122 * @param null|string $token security token or null to read it from request variable
225 // FIXME ... perhaps it would be better to ensure the temporary changes weren't necessary
311 * Initialize and/or fill global $JSINFO with some basic info to be given to javascript
320 //export minimal info to JS, plugins can add more
437 //add to array
443 //save to session
452 * currently used to replace the colon with something else
453 * on Windows (non-IIS) systems and to have proper URL encoding
494 * This builds a link to a wikipage
500 * @param string $id page id, defaults to start page
546 * This builds a link to an alternate page format
551 * @param string $id page id, defaults to start page
552 * @param string $format the export renderer to use
590 * Build a link to a media file
592 * Will return a link to the detail page if $direct is false
595 * will strip default parameters to produce even cleaner URLs
599 * @param bool $direct link to detail page if false
685 * Returns the URL to the DokuWiki base script
706 * Action Plugins can use this event to inspect the blocked data
720 * @param string $text - optional text to check, if not given the globals are used
738 // we prepare the text a tiny bit to prevent spammers circumventing URL checks
784 * headers are set. If the single parameter is set, it tries to return
885 * Convert one or more comma separated IPs to hostnames
953 * @param string $id page id to lock
978 * @param string $id page id to unlock
998 * convert line ending to unix format
1022 * It also converts line endings to Windows format which is
1071 * @param string $id the id of the page to be created
1082 'id' => $id, // the id of the page to be created
1092 // if the before event did not set a template file, try to find one
1132 * @var string $id the id of the page to be created
1190 // we need the callback to work around strftime's char limit
1203 * The range parameter needs to have the form "from-to"
1210 * @param string $range in form "from-to"
1220 [$from, $to] = sexplode('-', $range, 2);
1223 $to = $to ? $to - 1 : (strlen($text));
1227 $slices[1] = substr($text, $from, $to - $from);
1228 $slices[2] = substr($text, $to);
1235 * function to join the text slices.
1236 * When the pretty parameter is set to true it adds additional empty
1272 * This check is only executed when the page is about to be saved again from the
1319 * moves the current version to the attic and returns its revision date
1337 * @param string $who Who to notify (admin|subscribers|register)
1341 * @param string[] $replace Additional string substitutions, @KEY@ to be replaced by value
1353 // decide if there is something to do, eg. whom to mail
1357 $to = $conf['notify'];
1367 $to = $data['addresslist'];
1368 if (empty($to)) return false;
1371 return false; //just to be safe
1376 return $subscription->sendPageDiff($to, $tpl, $id, $rev, $summary, $current_rev);
1484 * The format default to $conf['dformat']. It is passed to
1485 * strftime - %f can be used to get the value from datetime_h()
1491 * @param string $format empty default to $conf['dformat'], or provide format as recognized by strftime()
1566 * Convert php.ini shorthands to byte
1611 * in the middle to shorten but only if at least $min chars are
1612 * left to display it. Otherwise it will be left off.
1614 * @param string $keep the part to keep
1615 * @param string $short the part to shorten
1617 * @param int $min minimum number of chars to have left for middle shortening
1618 * @param string $char the shortening character to use
1671 //setting 'link' to false disables linking
1772 * Returns the path to a image file for the currently chosen license.
1807 * @param int $mem Size of memory you want to allocate in bytes
1817 // parse limit to bytes
1835 * Send a HTTP redirect to the browser
1842 * @param string $url url being directed to
1876 // pass info about the redirect back to the test suite
1931 // due to #2721 there might be duplicate entries,
1943 * Add a preference to the DokuWiki cookie
1945 * Remove it by setting $val to false
1973 // no break because we want to remove duplicate entries
2001 * @param string &$text reference to the CSS or JavaScript code to clean
2017 * @param string $file full path to the SVG file
2018 * @param int $maxsize maximum allowed size for the SVG to be embedded