Lines Matching defs:string

28  * @param string $string the string being converted
29 * @return string converted string
34 function hsc($string)
36 return htmlspecialchars($string, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, 'UTF-8');
43 * If the $input string does not contain enough elements, the missing elements will be
44 * filled up with the $default value. If the input string contains more elements, the last
47 * @param string $separator The boundary string
48 * @param string $string The input string
54 function sexplode($separator, $string, $limit, $default = null)
56 return array_pad(explode($separator, $string, $limit), $limit, $default);
73 * @param bool $trim Consider a string of whitespace to be blank
87 * strips control characters (<32) from the given string
89 * @param string $string being stripped
90 * @return string
94 function stripctl($string)
96 return preg_replace('/[\x00-\x1F]+/s', '', $string);
102 * @return string
124 * @param null|string $token security token or null to read it from request variable
145 * @return string html of hidden form field
159 * @param string $id pageid
324 $JSINFO['namespace'] = isset($INFO) ? (string)$INFO['namespace'] : '';
347 * Build an string of URL parameters
350 * @param string $sep series of pairs are separated by this character
351 * @return string query string
363 $url .= rawurlencode((string)$val);
370 * 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
475 $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
552 * @param string $id page id, defaults to start page
553 * @param string $format the export renderer to use
554 * @param string|array $urlParameters URL parameters, associative array recommended
556 * @param string $sep parameter separator
557 * @return string
599 * @param string $id the media file id or URL
600 * @param mixed $more string or array with additional parameters
602 * @param string $sep URL parameter separator
604 * @return string
691 * @return string
719 * @param string $text - optional text to check, if not given the globals are used
791 * @return string
877 * @param string $link the link, e.g. "wiki>page"
889 * 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
1004 * @param string $text
1005 * @return string
1027 * @param string $text
1028 * @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
1134 * @var string $id the id of the page to be created
1135 * @var string $tpl the text used as template
1136 * @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 * wiki, triggered in @param string $id the page ID
1290 * @param string $id page id
1291 * @param string $text wikitext being saved
1292 * @param string $summary summary of text update
1323 * @param string $id page id
1324 * @return int|string revision timestamp
1338 * @param string $id The changed page
1339 * @param string $who Who to notify (admin|subscribers|register)
1340 * @param int|string $rev Old page revision
1341 * @param string $summary What changed
1343 * @param string[] $replace Additional string substitutions, @KEY@ to be replaced by value
1344 * @param int|string $current_rev New page revision
1384 * @return array|string
1429 * @return string human readable size
1453 * @return string
1490 * @param string $format empty default to $conf['dformat'], or provide format as recognized by strftime()
1491 * @return string
1512 * @return string
1529 * @param string $email email address
1530 * @return string
1556 * @param string $string
1557 * @param string $char backslashed character
1558 * @return string
1562 function unslash($string, $char = "'")
1564 return str_replace('\\' . $char, $char, $string);
1575 * @param string $value PHP size shorthand
1600 * @param string $string
1601 * @return string
1603 function preg_quote_cb($string)
1605 return preg_quote($string, '/');
1609 * Shorten a given string by removing data from the middle
1611 * You can give the string in two parts, the first part $keep
1616 * @param string $keep the part to keep
1617 * @param string $short the part to shorten
1618 * @param int $max maximum chars you want for the whole string
1620 * @param string $char the shortening character to use
1621 * @return string
1640 * @param string|null $username or null when currently logged-in user should be used
1642 * @return string html or plain text(not escaped) of formatted user name
1654 * @param string|null $username or null when currently logged-in user should be used
1656 * @return string html or plain text(not escaped) of formatted user name
1775 * When no image exists, returns an empty string
1777 * @param string $type - type of image 'badge' or 'button'
1778 * @return string
1844 * @param string $url url being directed to
1896 * @param string $param The name of the parameter
1901 * @param string $exc The text of the raised exception
1922 * @param string $pref preference key
1924 * @return string preference value
1949 * @param string $pref preference key
1950 * @param string $val preference value
2003 * @param string &$text reference to the CSS or JavaScript code to clean
2019 * @param string $file full path to the SVG file
2021 * @return string|false the SVG content, false if the file couldn't be loaded