/plugin/struct/types/ |
H A D | Date.php | 41 * @param string $rawvalue the current value 46 public function valueEditor($name, $rawvalue, $htmlID) argument 48 if ($this->config['prefilltoday'] && !$rawvalue) { 49 $rawvalue = date('Y-m-d'); 54 'value' => $rawvalue, 69 * @param string|int $rawvalue 73 public function validate($rawvalue) argument 75 $rawvalue = parent::validate($rawvalue); 76 [$rawvalue] [all...] |
H A D | LongText.php | 39 * @param int|string $rawvalue 42 public function validate($rawvalue) argument 44 $rawvalue = rtrim($rawvalue); 45 $rawvalue = cleanText($rawvalue); 46 return $rawvalue; 53 * @param string $rawvalue 58 public function valueEditor($name, $rawvalue, $htmlID) argument 60 $rawvalue [all...] |
H A D | DateTime.php | 39 * @param string $rawvalue the current value 44 public function valueEditor($name, $rawvalue, $htmlID) argument 46 if ($this->config['prefilltoday'] && !$rawvalue) { 47 $rawvalue = date('Y-m-d\TH:i'); 49 $rawvalue = str_replace(' ', 'T', $rawvalue); 52 'value' => $rawvalue, 67 * @param string|array $rawvalue 71 public function validate($rawvalue) argument 73 $rawvalue [all...] |
H A D | Color.php | 16 public function validate($rawvalue) argument 18 $rawvalue = trim(strtolower($rawvalue)); 19 if (!preg_match('/^#[a-f0-9]{6}$/', $rawvalue)) { 24 if ($rawvalue === strtolower($this->config['default'])) { 25 $rawvalue = ''; 28 return $rawvalue; 64 public function valueEditor($name, $rawvalue, $htmlID) argument 66 if (!preg_match('/^#[a-f0-9]{6}$/', $rawvalue)) { 68 $rawvalue [all...] |
H A D | Mail.php | 32 * @param int|string $rawvalue 35 public function validate($rawvalue) argument 37 $rawvalue = parent::validate($rawvalue); 39 $mail = $this->config['prefix'] . $rawvalue . $this->config['postfix']; 44 return $rawvalue;
|
H A D | Decimal.php | 95 * @param int|string $rawvalue 99 public function validate($rawvalue) argument 101 $rawvalue = parent::validate($rawvalue); 102 $rawvalue = str_replace(',', '.', $rawvalue); // we accept both 104 if ((string)$rawvalue != (string)(float) $rawvalue) { 108 if ($this->config['min'] !== '' && (float) $rawvalue < (float) $this->config['min']) { 112 if ($this->config['max'] !== '' && (float) $rawvalue > (floa [all...] |
H A D | Media.php | 20 * @param string $rawvalue 23 public function validate($rawvalue) argument 25 $rawvalue = parent::validate($rawvalue); 27 if (!trim($this->config['mime'])) return $rawvalue; 32 [, $mime, ] = mimetype($rawvalue, false); 34 if (strpos($mime, $allow) === 0) return $rawvalue; 94 * @param string $rawvalue the current value 100 public function valueEditor($name, $rawvalue, $htmlID) 109 'value' => $rawvalue, 105 valueEditor($name, $rawvalue, $htmlID) global() argument [all...] |
H A D | Url.php | 20 * @param string $rawvalue 23 public function validate($rawvalue) argument 25 $rawvalue = parent::validate($rawvalue); 27 $url = $this->buildURL($rawvalue); 35 return $rawvalue;
|
H A D | User.php | 24 * @param string $rawvalue the user to validate 27 public function validate($rawvalue) 29 $rawvalue = parent::validate($rawvalue); 34 $info = $auth->getUserData($rawvalue, false); 35 if ($info === false) throw new ValidationException('User not found', $rawvalue); 38 return $rawvalue; 26 validate($rawvalue) global() argument
|
H A D | Checkbox.php | 26 * @param string $rawvalue 31 public function valueEditor($name, $rawvalue, $htmlID) 36 if ($rawvalue == $opt) { 33 valueEditor($name, $rawvalue, $htmlID) global() argument
|
H A D | Dropdown.php | 30 * @param string $rawvalue 33 public function valueEditor($name, $rawvalue, $htmlID) argument 43 if ($opt == $rawvalue) {
|
H A D | AbstractBaseType.php | 285 * @param string $rawvalue the current value 290 public function valueEditor($name, $rawvalue, $htmlID) 301 'value' => $rawvalue, 511 * @param string|int $rawvalue 515 public function validate($rawvalue) 517 return trim($rawvalue); 289 valueEditor($name, $rawvalue, $htmlID) global() argument 509 validate($rawvalue) global() argument
|
H A D | Page.php | 55 * @param string $rawvalue 58 public function validate($rawvalue) argument 60 [$page, $fragment] = array_pad(explode('#', $rawvalue, 2), 2, '');
|
/plugin/struct/meta/ |
H A D | ValueValidator.php | 30 * @param mixed &$rawvalue the value, will be fixed according to the type 33 public function validateValue(Column $col, &$rawvalue) 35 if ($rawvalue === null) $rawvalue = ''; // no data was passed 40 if ($type->isMulti() && !is_array($rawvalue)) { 41 $rawvalue = $type->splitValues($rawvalue); 47 if (is_array($rawvalue)) { 48 $rawvalue = array_filter($rawvalue, [ 34 validateValue(Column $col, & $rawvalue) global() argument [all...] |
H A D | Value.php | 21 protected $rawvalue; variable in dokuwiki\\plugin\\struct\\meta\\Value 70 return $this->rawvalue; 118 $this->rawvalue = []; 131 $this->rawvalue[] = $raw; 144 $this->rawvalue = (string)array_shift($this->rawvalue); 157 return ($this->rawvalue === '' || $this->rawvalue === []); 208 return $this->column->getType()->multiValueEditor($name, $this->rawvalue, $id); 210 return $this->column->getType()->valueEditor($name, $this->rawvalue, [all...] |
H A D | CSVSerialImporter.php | 67 * @param mixed $rawvalue 70 protected function validateValue(Column $col, &$rawvalue) argument 74 return parent::validateValue($col, $rawvalue); 77 $pid = cleanID($rawvalue);
|
H A D | CSVPageImporter.php | 124 * @param mixed $rawvalue 127 protected function validateValue(Column $col, &$rawvalue) 131 $pid = cleanID($rawvalue); argument 149 return parent::validateValue($col, $rawvalue);
|
H A D | CSVImporter.php | 164 * @param mixed &$rawvalue the value, will be fixed according to the type 167 protected function validateValue(Column $col, &$rawvalue) argument
|
/plugin/structgeohash/types/ |
H A D | GeoHash.php | 27 public function validate($rawvalue) { argument 29 if(!preg_match('/^[a-z0-9]{12}$/', $rawvalue)) { 30 $rawvalue = $this->config['default']; 32 return $rawvalue; 51 public function valueEditor($name, $rawvalue, $htmlID) { argument 52 if(!preg_match('/^[a-z0-9]{12}$/', $rawvalue)) { 53 $rawvalue = $this->config['default']; 60 'value' => $rawvalue,
|
/plugin/structgroup/types/ |
H A D | Group.php | 21 * @param string $rawvalue the user to validate 24 public function validate($rawvalue) { argument 25 $rawvalue = parent::validate($rawvalue); 31 if(! in_array($rawvalue, $authgroup->getGroups())) { 32 throw new ValidationException('Group not found: "' . $rawvalue . 37 return $rawvalue;
|
/plugin/structprogress/types/ |
H A D | Progress.php | 29 public function validate($rawvalue) argument 31 $rawvalue = parent::validate($rawvalue); 32 $rawvalue = str_replace(',', '.', $rawvalue); // we accept both 39 if ((string)$rawvalue != (string)floatval($rawvalue)) { 43 if (floatval($rawvalue) < $minvalue) { 47 if ($maxvalue !== 0 && floatval($rawvalue) > $maxvalue) { 51 return $rawvalue;
|
/plugin/structsection/types/ |
H A D | Section.php | 25 * @param string $rawvalue 30 public function valueEditor($name, $rawvalue, $htmlID) argument 32 $rawvalue = formText($rawvalue); 41 return "<textarea $attributes>$rawvalue</textarea>";
|
/plugin/structcombolookup/types/ |
H A D | NarrowingLookup.php | 57 protected function getRawValueNarrowingValue($rawvalue) { argument 66 $search->addFilter($this->config['field'], $rawvalue, '='); 108 protected function parentValueEditor($name, $rawvalue, $htmlID) { argument 117 if($opt == $this->getRawValueNarrowingValue($rawvalue)) { 134 * @param string $rawvalue 137 public function valueEditor($name, $rawvalue, $htmlID) { argument 138 $html = $this->parentValueEditor($name, $rawvalue, $htmlID); 152 if($opt == $rawvalue) {
|
/plugin/bez/struct/ |
H A D | BezType.php | 77 * @param string $rawvalue 80 public function validate($rawvalue) { argument 81 preg_match('/#([a-z]*)([0-9]+)/', $rawvalue, $matches); 102 return $rawvalue;
|
/plugin/structcombolookup/ |
H A D | action.php | 58 $rawvalue = $field->getParam('value'); 72 $search->addFilter($id, $rawvalue, '=');
|