Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 116) sorted by path

12345

/dokuwiki/bin/
H A Ddwpage.php136 'key',
189 $key = trim(array_shift($args));
190 $meta = p_get_metadata($wiki_id, $key, METADATA_RENDER_UNLIMITED);
/dokuwiki/
H A Dfeed.php38 $key = implode('$', [
44 $cache = new Cache($key, '.feed');
37 $key = join('', array_values($opt)) . '$' . $INPUT->server->str('REMOTE_USER') global() variable
/dokuwiki/inc/Action/
H A DExport.php105 if (is_array($data['headers'])) foreach ($data['headers'] as $key => $val) {
106 header("$key: $val");
/dokuwiki/inc/Cache/
H A DCache.php15 public $key = ''; // primary identifier for this item variable in dokuwiki\\Cache\\Cache
31 * @param string $key primary identifier
34 public function __construct($key, $ext) argument
36 $this->key = $key;
38 $this->cache = getCacheName($key, $ext);
/dokuwiki/inc/ChangeLog/
H A DRevisionInfo.php55 * set value of associated "current" key for internal use. Some UI element like diff
68 * Return or set a value of associated key of revision information
71 * @param string $key
75 public function val($key, $value = null)
77 if (isset($value) && !array_key_exists($key, $this->info)) {
79 $this->info[$key] = $value;
81 if (array_key_exists($key, $this->info)) {
83 return $this->info[$key];
89 * Set extra key-value to the revision information
96 foreach ($info as $key
73 val($key, $value = null) global() argument
[all...]
/dokuwiki/inc/Extension/
H A DPluginTrait.php209 foreach ($defaults as $key => $value) {
210 if (isset($conf['plugin'][$plugin][$key])) continue;
211 $conf['plugin'][$plugin][$key] = $value;
/dokuwiki/inc/Form/
H A DCheckableElement.php32 [$name, $key] = $this->getInputName();
37 if ($key === null) {
38 // no key - single value
48 if (isset($input[$key])) {
52 if (is_array($input[$key])) {
53 $input = $input[$key];
H A DElement.php97 foreach ((array) $attributes as $key => $val) {
98 $this->attr($key, $val);
H A DInputElement.php100 * @return array name and array key (null if not an array)
111 $key = array_keys($parsed[$name]);
112 $key = array_shift($key);
114 $key = null;
117 return [$name, $key];
127 [$name, $key] = $this->getInputName();
130 if ($key === null) {
134 if (isset($value[$key])) {
135 $value = $value[$key];
[all...]
H A DLegacyForm.php118 foreach ($legacy as $key => $val) {
119 if ($key[0] == '_') {
120 $control[substr($key, 1)] = $val;
121 } elseif ($key == 'name') {
122 $control[$key] = $val;
123 } elseif ($key == 'id') {
124 $control[$key] = $val;
126 $attributes[$key] = $val;
H A DOptGroup.php50 * attr-key => attr-value, ...
62 foreach ($options as $key => $val) {
66 'If option is given as array, it has to have a "label"-key!'
78 $this->options[$key] = $val;
79 } elseif (is_int($key)) {
82 $this->options[$key] = ['label' => (string)$val];
110 foreach ($this->options as $key => $val) {
111 $selected = in_array((string)$key, $this->values) ? ' selected="selected"' : '';
116 $html .= '<option' . $selected . ' value="' . hsc($key) . '" ' . $attrs . '>';
/dokuwiki/inc/HTTP/
H A DHTTPClient.php339 [$key, $val] = sexplode('=', $cookie, 2, '');
340 $key = trim($key);
342 if (isset($this->cookies[$key])) {
343 unset($this->cookies[$key]);
345 } elseif ($key) {
346 $this->cookies[$key] = $val;
781 [$key, $val] = sexplode(':', $line, 2, '');
782 $key = trim($key);
[all...]
H A DHeaders.php19 foreach ($policy as $key => $values) {
25 $policy[$key] = $values;
29 foreach ($policy as $key => $values) {
31 $cspheader .= " $key " . implode(' ', $values) . ';';
33 $cspheader .= " $key;";
/dokuwiki/inc/
H A DMailer.class.php81 * @param string $embed Unique key to reference this file from the HTML part
103 * @param string $embed Unique key to reference this file from the HTML part
227 foreach ($textrep as $key => $value) {
228 if (isset($htmlrep[$key])) continue;
230 $htmlrep[$key] = '<a href="' . hsc($value) . '">' . hsc($value) . '</a>';
232 $htmlrep[$key] = hsc($value);
248 foreach ($trep as $key => $substitution) {
249 $text = str_replace('@' . strtoupper($key) . '@', $substitution, $text);
251 foreach ($hrep as $key => $substitution) {
252 $html = str_replace('@' . strtoupper($key)
586 wrappedHeaderLine($key, $val) global() argument
[all...]
H A DPassHash.php372 $key = substr($salt, 16, 2);
373 $hash1 = strtolower(md5($key . md5($clear)));
374 $hash2 = substr($hash1, 0, 16) . $key . substr($hash1, 16);
815 * @param string $key Shared secret key used for generating the HMAC variant of the message digest.
819 public static function hmac($algo, $data, $key, $raw_output = false)
823 return hash_hmac($algo, $data, $key, $raw_output);
832 if (strlen($key) > $size) {
833 $key = str_pad(pack($pack, $algo($key)),
796 hmac($algo, $data, $key, $raw_output = false) global() argument
[all...]
H A DStyleUtils.php178 * @param array $replacements with key-value pairs
184 foreach ($replacements as $key => $value) {
185 $replacements[$key] = preg_replace(
/dokuwiki/inc/Parsing/Handler/
H A DBlock.php112 $key = count($this->calls);
113 if ($key && $call[0] == 'cdata' && $this->calls[$key - 1][0] == 'cdata') {
114 $this->calls[$key - 1][1][0] .= $call[1][0];
140 foreach ($calls as $key => $call) {
182 if (isset($calls[$key + 1]) && $calls[$key + 1][0] == 'eol') {
H A DLists.php82 $key = key($this->listStack);
98 $this->listStack[$key][2] = count($this->listCalls) - 2;
119 $this->listCalls[$this->listStack[$key][2]][1][1] = self::NODE;
132 $key = key($this->listStack);
145 $this->listStack[$key][2] = count($this->listCalls) - 2;
H A DNest.php71 $key = count($this->calls);
72 if ($key && $call[0] == 'cdata' && $this->calls[$key - 1][0] == 'cdata') {
73 $this->calls[$key - 1][1][0] .= $call[1][0];
H A DTable.php174 $key = -1;
175 while (++$key < count($this->tableCalls)) {
176 $call = $this->tableCalls[$key];
181 array_splice($this->tableCalls, $key + 1, 0, [['tablethead_open', [], $call[2]]]);
193 $cellKey[$lastRow][$lastCell] = $key;
197 $prev = in_array($this->tableCalls[$key - 1][0], ['tablecell_open', 'tableheader_open']);
198 $next = in_array($this->tableCalls[$key + 1][0], ['tablecell_close', 'tableheader_close']);
201 $this->tableCalls[$key - 1][1][1] = 'left';
205 $this->tableCalls[$key - 1][1][1] = 'right';
217 $this->tableCalls[$key][
[all...]
/dokuwiki/inc/Parsing/ParserMode/
H A DFormatting.php67 $key = array_search($type, $modes);
68 if (is_int($key)) {
69 unset($modes[$key]);
/dokuwiki/inc/Search/
H A DIndexer.php157 * An empty value will erase the key.
158 * The $key parameter can be an array to add multiple keys. $value will
159 * not be used if $key is an array.
162 * @param mixed $key a key string or array of key=>value pairs
169 public function addMetaKeys($page, $key, $value = null)
171 if (!is_array($key)) {
172 $key = [$key
163 addMetaKeys($page, $key, $value = null) global() argument
312 renameMetaValue($key, $oldvalue, $newvalue) global() argument
650 lookupKey($key, & $value, $func = null) global() argument
830 getPages($key = null) global() argument
864 histogram($min = 1, $max = 0, $minlen = 3, $key = null) global() argument
[all...]
/dokuwiki/inc/Ui/
H A DMediaDiff.php288 foreach ($rev1Tags as $key => $tag) {
289 if ($tag['value'] != $rev2Tags[$key]['value']) {
290 $rev2Tags[$key]['highlighted'] = true;
291 $rev1Tags[$key]['highlighted'] = true;
292 } elseif (!$tag['value'] || !$rev2Tags[$key]['value']) {
293 unset($rev2Tags[$key]);
294 unset($rev1Tags[$key]);
H A DSearch.php130 foreach ($options as $key => $option) {
133 if ($key === $activeOption) {
240 foreach ($options as $key => $option) {
242 $activeOption = $key;
263 foreach ($options as $key => $option) {
266 if ($key === $activeOption) {
405 foreach ($options as $key => $option) {
407 $activeOption = $key;
424 foreach ($options as $key => $option) {
427 if ($key
[all...]
H A DSubscribe.php92 $INPUT->str('sub_target') : key($targets);
102 $INPUT->str('sub_style') : key($styles);

12345