Lines Matching refs:string

29  * @param string $string the string being converted
30 * @return string converted string
32 function hsc($string)
34 return htmlspecialchars($string, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, 'UTF-8');
41 * If the $input string does not contain enough elements, the missing elements will be
42 * filled up with the $default value. If the input string contains more elements, the last
45 * @param string $separator The boundary string
46 * @param string $string The input string
52 function sexplode($separator, $string, $limit, $default = null)
54 return array_pad(explode($separator, $string, $limit), $limit, $default);
71 * @param bool $trim Consider a string of whitespace to be blank
85 * strips control characters (<32) from the given string
89 * @param string $string being stripped
90 * @return string
92 function stripctl($string)
94 return preg_replace('/[\x00-\x1F]+/s', '', $string);
104 * @return string
122 * @param null|string $token security token or null to read it from request variable
145 * @return string html of hidden form field
160 * @param string $id pageid
322 $JSINFO['namespace'] = isset($INFO) ? (string) $INFO['namespace'] : '';
345 * Build an string of URL parameters
350 * @param string $sep series of pairs are separated by this character
351 * @return string query string
361 $url .= rawurlencode((string) $val);
368 * Build an string of html tag attributes
375 * @param bool $skipEmptyStrings skip empty string values?
376 * @return string
400 * @return string[] with the data: array(pageid=>name, ... )
463 * @param string $id pageid being filtered
465 * @return string
473 $id = (string) $id;
500 * @param string $id page id, defaults to start page
501 * @param string|array $urlParameters URL parameters, associative array recommended
503 * @param string $separator parameter separator
504 * @return string
551 * @param string $id page id, defaults to start page
552 * @param string $format the export renderer to use
553 * @param string|array $urlParameters URL parameters, associative array recommended
555 * @param string $sep parameter separator
556 * @return string
597 * @param string $id the media file id or URL
598 * @param mixed $more string or array with additional parameters
600 * @param string $sep URL parameter separator
602 * @return string
691 * @return string
720 * @param string $text - optional text to check, if not given the globals are used
791 * @return string
875 * @param string $link the link, e.g. "wiki>page"
887 * If $conf['dnslookups'] is disabled it simply returns the input string
891 * @param string $ips comma separated list of IP addresses
892 * @return string a comma separated list of hostnames
919 * @param string $id page id
953 * @param string $id page id to lock
978 * @param string $id page id to unlock
1005 * @param string $text
1006 * @return string
1028 * @param string $text
1029 * @return string
1042 * @param string $id page id
1043 * @param string $ext extension of file being read, default 'txt'
1044 * @return string
1056 * @param string $id page id
1057 * @param string|int $rev timestamp when a revision of wikitext is desired
1058 * @return string
1071 * @param string $id the id of the page to be created
1072 * @return string parsed pagetemplate content
1127 * @return string
1132 * @var string $id the id of the page to be created
1133 * @var string $tpl the text used as template
1134 * @var string $tplfile the file above text was/should be loaded from
1210 * @param string $range in form "from-to"
1211 * @param string $id page id
1212 * @param string $rev optional, the revision timestamp
1213 * @return string[] with three slices
1241 * @param string $pre prefix
1242 * @param string $text text in the middle
1243 * @param string $suf suffix
1245 * @return string
1275 * @param string $id the page ID
1291 * @param string $id page id
1292 * @param string $text wikitext being saved
1293 * @param string $summary summary of text update
1323 * @param string $id page id
1324 * @return int|string revision timestamp
1336 * @param string $id The changed page
1337 * @param string $who Who to notify (admin|subscribers|register)
1338 * @param int|string $rev Old page revision
1339 * @param string $summary What changed
1341 * @param string[] $replace Additional string substitutions, @KEY@ to be replaced by value
1342 * @param int|string $current_rev New page revision
1385 * @return array|string
1427 * @return string human readable size
1453 * @return string
1491 * @param string $format empty default to $conf['dformat'], or provide format as recognized by strftime()
1492 * @return string
1513 * @return string
1530 * @param string $email email address
1531 * @return string
1556 * @param string $string
1557 * @param string $char backslashed character
1558 * @return string
1560 function unslash($string, $char = "'")
1562 return str_replace('\\' . $char, $char, $string);
1573 * @param string $value PHP size shorthand
1598 * @param string $string
1599 * @return string
1601 function preg_quote_cb($string)
1603 return preg_quote($string, '/');
1607 * Shorten a given string by removing data from the middle
1609 * You can give the string in two parts, the first part $keep
1614 * @param string $keep the part to keep
1615 * @param string $short the part to shorten
1616 * @param int $max maximum chars you want for the whole string
1618 * @param string $char the shortening character to use
1619 * @return string
1638 * @param string|null $username or null when currently logged-in user should be used
1640 * @return string html or plain text(not escaped) of formatted user name
1652 * @param string|null $username or null when currently logged-in user should be used
1654 * @return string html or plain text(not escaped) of formatted user name
1773 * When no image exists, returns an empty string
1777 * @param string $type - type of image 'badge' or 'button'
1778 * @return string
1842 * @param string $url url being directed to
1894 * @param string $param The name of the parameter
1899 * @param string $exc The text of the raised exception
1920 * @param string $pref preference key
1922 * @return string preference value
1947 * @param string $pref preference key
1948 * @param string $val preference value
2001 * @param string &$text reference to the CSS or JavaScript code to clean
2017 * @param string $file full path to the SVG file
2019 * @return string|false the SVG content, false if the file couldn't be loaded