Lines Matching defs:value
86 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
142 protected function colorType($value)
144 if (preg_match('/^#([0-9a-fA-F]{3}){1,2}$/', $value)) {