Lines Matching defs:string
29 * @param string $string the string being converted
30 * @return string converted string
35 function hsc($string)
37 return htmlspecialchars($string, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, 'UTF-8');
44 * If the $input string does not contain enough elements, the missing elements will be
45 * filled up with the $default value. If the input string contains more elements, the last
48 * @param string $separator The boundary string
49 * @param string $string The input string
55 function sexplode($separator, $string, $limit, $default = null)
57 return array_pad(explode($separator, $string, $limit), $limit, $default);
74 * @param bool $trim Consider a string of whitespace to be blank
88 * strips control characters (<32) from the given string
90 * @param string $string being stripped
91 * @return string
95 function stripctl($string)
97 return preg_replace('/[\x00-\x1F]+/s', '', $string);
103 * @return string
125 * @param null|string $token security token or null to read it from request variable
146 * @return string html of hidden form field
160 * @param string $id pageid
325 $JSINFO['namespace'] = isset($INFO) ? (string)$INFO['namespace'] : '';
348 * Build an string of URL parameters
352 * @param string $sep series of pairs are separated by this character
353 * @return string query string
362 * Build an string of html tag attributes
367 * @param bool $skipEmptyStrings skip empty string values?
368 * @return string
392 * @return string[] with the data: array(pageid=>name, ... )
455 * @param string $id pageid being filtered
457 * @return string
467 $id = (string)$id;
492 * @param string $id page id, defaults to start page
493 * @param string|array $urlParameters URL parameters, associative array recommended
495 * @param string $separator parameter separator
496 * @return string
544 * @param string $id page id, defaults to start page
545 * @param string $format the export renderer to use
546 * @param string|array $urlParameters URL parameters, associative array recommended
548 * @param string $sep parameter separator
549 * @return string
591 * @param string $id the media file id or URL
592 * @param mixed $more string or array with additional parameters
594 * @param string $sep URL parameter separator
596 * @return string
683 * @return string
711 * @param string $text - optional text to check, if not given the globals are used
790 * @return string Returns an IP address if 'single' is true, or a comma-separated list
843 * @param string $link the link, e.g. "wiki>page"
855 * If $conf['dnslookups'] is disabled it simply returns the input string
857 * @param string $ips comma separated list of IP addresses
858 * @return string a comma separated list of hostnames
885 * @param string $id page id
919 * @param string $id page id to lock
944 * @param string $id page id to unlock
970 * @param string $text
971 * @return string
993 * @param string $text
994 * @return string
1008 * @param string $id page id
1009 * @param string $ext extension of file being read, default 'txt'
1010 * @return string
1022 * @param string $id page id
1023 * @param string|int $rev timestamp when a revision of wikitext is desired
1024 * @return string
1037 * @param string $id the id of the page to be created
1038 * @return string parsed pagetemplate content
1093 * @return string
1100 * @var string $id the id of the page to be created
1101 * @var string $tpl the text used as template
1102 * @var string $tplfile the file above text was/should be loaded from
1176 * @param string $range in form "from-to"
1177 * @param string $id page id
1178 * @param string $rev optional, the revision timestamp
1179 * @return string[] with three slices
1207 * @param string $pre prefix
1208 * @param string $text text in the middle
1209 * @param string $suf suffix
1211 * @return string
1241 * wiki, triggered in @param string $id the page ID
1256 * @param string $id page id
1257 * @param string $text wikitext being saved
1258 * @param string $summary summary of text update
1289 * @param string $id page id
1290 * @return int|string revision timestamp
1304 * @param string $id The changed page
1305 * @param string $who Who to notify (admin|subscribers|register)
1306 * @param int|string $rev Old page revision
1307 * @param string $summary What changed
1309 * @param string[] $replace Additional string substitutions, @KEY@ to be replaced by value
1310 * @param int|string $current_rev New page revision
1350 * @return array|string
1395 * @return string human readable size
1419 * @return string
1456 * @param string $format empty default to $conf['dformat'], or provide format as recognized by strftime()
1457 * @return string
1478 * @return string
1495 * @param string $email email address
1496 * @return string
1522 * @param string $string
1523 * @param string $char backslashed character
1524 * @return string
1528 function unslash($string, $char = "'")
1530 return str_replace('\\' . $char, $char, $string);
1541 * @param string $value PHP size shorthand
1566 * @param string $string
1567 * @return string
1569 function preg_quote_cb($string)
1571 return preg_quote($string, '/');
1575 * Shorten a given string by removing data from the middle
1577 * You can give the string in two parts, the first part $keep
1582 * @param string $keep the part to keep
1583 * @param string $short the part to shorten
1584 * @param int $max maximum chars you want for the whole string
1586 * @param string $char the shortening character to use
1587 * @return string
1606 * @param string|null $username or null when currently logged-in user should be used
1608 * @return string html or plain text(not escaped) of formatted user name
1620 * @param string|null $username or null when currently logged-in user should be used
1622 * @return string html or plain text(not escaped) of formatted user name
1741 * When no image exists, returns an empty string
1743 * @param string $type - type of image 'badge' or 'button'
1744 * @return string
1810 * @param string $url url being directed to
1862 * @param string $param The name of the parameter
1867 * @param string $exc The text of the raised exception
1888 * @param string $pref preference key
1890 * @return string preference value
1915 * @param string $pref preference key
1916 * @param string $val preference value
1969 * @param string &$text reference to the CSS or JavaScript code to clean
1985 * @param string $file full path to the SVG file
1987 * @return string|false the SVG content, false if the file couldn't be loaded