Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 118) sorted by relevance

12345

/dokuwiki/inc/Form/
H A DValueElement.php8 * Just like an Element but it's value is not part of its attributes
10 * What the value is (tag name, content, etc) is defined by the actual implementations
17 * @var string holds the element's value
19 protected $value = ''; variable in dokuwiki\\Form\\ValueElement
23 * @param string $value
26 public function __construct($type, $value, $attributes = []) argument
29 $this->val($value);
33 * Get or set the element's value
35 * @param null|string $value
38 public function val($value argument
[all...]
H A DTextareaElement.php27 * Get or set the element's value
29 * This is the preferred way of setting the element's value
31 * @param null|string $value
34 public function val($value = null) argument
36 if ($value !== null) {
37 $this->text = cleanText($value);
H A DElement.php47 * When no $value is given, the current content of the attribute is returned.
50 * When a $value is given, the content is set to that value and the Element
54 * @param null|string $value New value to set
57 public function attr($name, $value = null) argument
60 if ($value !== null) {
61 $this->attributes[$name] = $value;
142 * Get or set the element's value
144 * This is the preferred way of setting the element's value
149 val($value = null) global() argument
[all...]
H A DTagCloseElement.php56 * @param null|string $value
60 public function attr($name, $value = null) argument
62 if ($value === null) {
H A DInputElement.php91 * Figures out how to access the value for this field from INPUT data
98 * correct value yourself
121 * Handles the useInput flag and set the value attribute accordingly
131 $value = $INPUT->str($name);
133 $value = $INPUT->arr($name);
134 if (isset($value[$key])) {
135 $value = $value[$key];
137 $value = '';
140 $this->val($value);
[all...]
/dokuwiki/lib/plugins/config/core/
H A DConfigParser.php48 $value = $matches[$i][2];
54 if (preg_match('/^array ?\((.*)\)/', $value, $match)) {
64 $value = $arr;
66 $value = $this->readValue($value);
69 $config[$key] = $value;
76 * Convert php string into value
78 * @param string $value argument
81 protected function readValue($value)
90 if ($value
[all...]
/dokuwiki/lib/plugins/config/core/Setting/
H A DSettingOnoff.php14 protected function cleanValue($value) argument
16 if ($value === null) return null;
18 if (is_string($value)) {
19 if (strtolower($value) === 'false') return 0;
20 if (strtolower($value) === 'off') return 0;
21 if (trim($value) === '') return 0;
24 return (int) (bool) $value;
33 $value = $this->protected;
36 $value = is_null($this->local) ? $this->default : $this->local;
40 $checked = ($value)
[all...]
H A DSettingString.php16 $value = $this->protected;
19 $value = $this->input;
21 $value = is_null($this->local) ? $this->default : $this->local;
25 $value = htmlspecialchars($value);
29 ']" type="text" class="edit" value="' . $value . '" ' . $disable . '/>';
H A DSettingArray.php37 * update setting with user provided value $input
38 * if value fails error check, save it
50 $value = is_null($this->local) ? $this->default : $this->local;
51 if ($value == $input) return false;
71 $value = $this->protected;
74 $value = $this->input;
76 $value = is_null($this->local) ? $this->default : $this->local;
80 $value = htmlspecialchars($this->fromArray($value));
84 ']" type="text" class="edit" value
[all...]
H A DSetting.php15 /** @var mixed the default value of this setting */
17 /** @var mixed the local value of this setting */
19 /** @var mixed the protected value of this setting */
35 * @see initialize() to set the actual value of the setting
45 foreach ($params as $property => $value) {
47 $this->$property = $value;
57 * @see update() to set a new value
58 * @param mixed $default default setting value
59 * @param mixed $local local setting value
60 * @param mixed $protected protected setting value
107 cleanValue($value) global() argument
[all...]
H A DSettingMulticheckbox.php23 $value = is_null($this->local) ? $this->default : $this->local;
24 if ($value == $input) return false;
43 $value = $this->protected;
46 $value = $this->input;
48 $value = is_null($this->local) ? $this->default : $this->local;
54 $value = $this->str2array($value);
59 $idx = array_search($choice, $value);
72 '][]" type="checkbox" class="checkbox" value="' . $choice . '" ' . $disable . ' ' . $checked . "/>\n";
76 if ($idx !== false) unset($value[
[all...]
H A DSettingMultichoice.php20 $value = $this->protected;
23 $value = is_null($this->local) ? $this->default : $this->local;
26 // ensure current value is included
27 if (!in_array($value, $this->choices)) {
28 $this->choices[] = $value;
43 $selected = ($value == $choice) ? ' selected="selected"' : '';
52 $input .= ' <option value="' . $choice . '"' . $selected . ' >' . $option . '</option>' . "\n";
66 $value = is_null($this->local) ? $this->default : $this->local;
67 if ($value == $input) return false;
/dokuwiki/vendor/simplepie/simplepie/src/
H A DRating.php69 * Rating value
74 public $value; variable in SimplePie\\Rating
82 public function __construct($scheme = null, $value = null) argument
85 $this->value = $value;
114 * Get the value of the rating
120 if ($this->value !== null) {
121 return $this->value;
H A DRestriction.php82 public $value; variable in SimplePie\\Restriction
90 public function __construct($relationship = null, $type = null, $value = null) argument
94 $this->value = $value;
143 if ($this->value !== null) {
144 return $this->value;
/dokuwiki/inc/Input/
H A DGet.php22 * @param mixed $value Value to set
24 public function set($name, $value) argument
26 parent::set($name, $value);
27 $_REQUEST[$name] = $value;
H A DPost.php22 * @param mixed $value Value to set
24 public function set($name, $value)
26 parent::set($name, $value);
27 $_REQUEST[$name] = $value;
25 set($name, $value) global() argument
H A DInput.php42 * Apply the set filter to the given value
118 $value = $this->applyfilter($this->access[$name]);
119 if ($nonempty && empty($value)) return $default;
120 return $value;
127 * @param mixed $value Value to set
129 public function set($name, $value)
131 $this->access[$name] = $value;
138 * and intialized with the given $default value before a reference is returned
141 * @param mixed $default If parameter is not set, initialize with this value
166 $value
130 set($name, $value) global() argument
[all...]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/
H A DBigInteger.php60 private $value;
63 * Mode independent value used for serialization.
173 $this->value = clone $x;
175 $this->value = new static("$x");
176 $this->value->setPrecision($x->getPrecision());
178 $this->value = new self::$mainEngine($x, $base);
189 return $this->value->toString();
197 return (string)$this->value;
207 return $this->value->__debugInfo();
218 return $this->value
191 var $value; global() variable in phpseclib\\Math\\BigInteger
1328 _baseSquare($value) global() argument
1367 _karatsubaSquare($value) global() argument
3622 _trim($value) global() argument
[all...]
/dokuwiki/lib/scripts/jquery/
H A Djquery.cookie.js31 function stringifyCookieValue(value) { argument
32 return encode(config.json ? JSON.stringify(value) : String(value));
51 var value = config.raw ? s : parseCookieValue(s);
52 return $.isFunction(converter) ? converter(value) : value;
55 var config = $.cookie = function (key, value, options) {
59 if (value !== undefined && !$.isFunction(value)) {
68 encode(key), '=', stringifyCookieValue(value),
[all...]
/dokuwiki/lib/plugins/styling/
H A Dadmin.php86 foreach ($replacements as $key => $value) {
93 echo '<td><input type="' . $this->colorType($value) . '" name="tpl[' . hsc($key) . ']" ' .
94 'id="tpl__' . hsc($key) . '" value="' . hsc($this->colorValue($value)) . '" ' .
125 * @param string $value
128 protected function colorValue($value)
130 if (preg_match('/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/', $value, $match)) {
133 return $value;
137 * Decide the input type based on the value
139 * @param string $value
124 colorValue($value) global() argument
138 colorType($value) global() argument
[all...]
/dokuwiki/lib/scripts/
H A Deditor.js53 } // else use default value
72 * @param int val the relative value to resize in pixel
136 var search = "\n"+this.value.substr(0,selection.start);
153 if (match2 && this.value.substr(selection.start).match(/^($|\r?\n)/)) {
154 this.value = this.value.substr(0, linestart) + "\n" +
155 this.value.substr(selection.start);
173 this.value = this.value.substr(0,linestart)+
174 this.value
[all...]
/dokuwiki/inc/
H A Dform.php125 * Adds a name/value pair as a hidden field.
126 * The value of the field (but not the name) will be passed to
130 * @param string $value Field value. If null, remove a previously added field.
134 public function addHidden($name, $value)
136 if (is_null($value))
138 else $this->_hidden[$name] = $value;
230 * Gets the position of the first element with a matching attribute value.
233 * @param string $value Attribute value
133 addHidden($name, $value) global() argument
238 findElementByAttribute($name, $value) global() argument
421 form_makeButton($type, $act, $value = '', $attrs = array()) global() argument
450 form_makeField($type, $name, $value = '', $label = null, $id = '', $class = '', $attrs = array()) global() argument
476 form_makeFieldRight($type, $name, $value = '', $label = null, $id = '', $class = '', $attrs = array()) global() argument
500 form_makeTextField($name, $value = '', $label = null, $id = '', $class = '', $attrs = array()) global() argument
573 form_makeCheckboxField($name, $value = '1', $label = null, $id = '', $class = '', $attrs = array()) global() argument
598 form_makeRadioField($name, $value = '1', $label = null, $id = '', $class = '', $attrs = array()) global() argument
[all...]
/dokuwiki/inc/ChangeLog/
H A DRevisionInfo.php55 * set value of associated "current" key for internal use. Some UI element like diff
59 * @param bool $value true if the revision is current, otherwise false
62 public function isCurrent($value = null)
64 return (bool) $this->val('current', $value);
68 * Return or set a value of associated key of revision information
72 * @param mixed $value
75 public function val($key, $value = null)
77 if (isset($value) && !array_key_exists($key, $this->info)) {
79 $this->info[$key] = $value;
89 * Set extra key-value t
60 isCurrent($value = null) global() argument
73 val($key, $value = null) global() argument
[all...]
/dokuwiki/inc/parser/
H A Dparser.php64 public function __set($name, $value)
68 $this->handler = $value;
73 $this->lexer = $value;
77 $this->deprecationHelperMagicSet($name, $value);
71 __set($name, $value) global() argument
/dokuwiki/vendor/simplepie/simplepie/src/Cache/
H A DBaseDataCache.php70 * Fetches a value from the cache.
78 * @param mixed $default Default value to return if the key does not exist.
80 * @return array|mixed The value of the item from the cache, or $default in case of cache miss.
83 * MUST be thrown if the $key string is not a legal value.
114 * public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool;
118 * @param array $value The value of the item to store, must be serializable.
119 * @param null|int $ttl Optional. The TTL value of this item. If no value is sent and
120 * the driver supports TTL then the library may set a default value
128 set_data(string $key, array $value, int $ttl = null) global() argument
[all...]

12345