Lines Matching refs:this

72         $this->name = $name;
73 $this->group = $group;
75 $this->root = $root;
78 $this->add($k, $v);
82 $this->setValue($value);
95 $this->value = $value;
111 if (is_array($this->value)) {
112 if (0 == count($this->value)) {
114 } elseif (1 === count($this->value)) {
115 return $this->value[0];
117 return $this->getRawMimeDirValue();
120 return $this->value;
131 $this->value = $parts;
144 if (is_null($this->value)) {
146 } elseif (is_array($this->value)) {
147 return $this->value;
149 return [$this->value];
171 if (isset($this->parameters[strtoupper($name)])) {
172 $this->parameters[strtoupper($name)]->addValue($value);
174 $param = new Parameter($this->root, $name, $value);
176 $this->parameters[$param->name] = $param;
187 return $this->parameters;
224 $str = $this->name;
225 if ($this->group) {
226 $str = $this->group.'.'.$this->name;
229 foreach ($this->parameters() as $param) {
233 $str .= ':'.$this->getRawMimeDirValue();
258 return $this->getParts();
271 $this->setValue(reset($value));
273 $this->setValue($value);
287 foreach ($this->parameters as $parameter) {
295 if ($this->group) {
296 $parameters['group'] = $this->group;
301 strtolower($this->name),
303 strtolower($this->getValueType()),
305 $this->getJsonValue()
317 $this->setJsonValue($value);
330 foreach ($this->parameters as $parameter) {
338 $writer->startElement(strtolower($this->name));
352 $this->xmlSerializeValue($writer);
364 $valueType = strtolower($this->getValueType());
366 foreach ($this->getJsonValue() as $values) {
384 return (string) $this->getValue();
404 foreach ($this->parameters as $parameter) {
429 if (!isset($this->parameters[$name])) {
433 return $this->parameters[$name];
453 $param = new Parameter($this->root, $name, $value);
454 $this->parameters[$param->name] = $param;
473 unset($this->parameters[strtoupper($name)]);
484 foreach ($this->parameters as $key => $child) {
485 $this->parameters[$key] = clone $child;
486 $this->parameters[$key]->parent = $this;
513 if (!StringUtil::isUTF8($this->getRawMimeDirValue())) {
514 $oldValue = $this->getRawMimeDirValue();
519 $this->setRawMimeDirValue($newValue);
533 'node' => $this,
538 if (!preg_match('/^([A-Z0-9-]+)$/', $this->name)) {
541 …'message' => 'The propertyname: '.$this->name.' contains invalid characters. Only A-Z, 0-9 and - a…
542 'node' => $this,
546 $this->name = strtoupper(
547 str_replace('_', '-', $this->name)
550 $this->name = preg_replace('/([^A-Z0-9-])/u', '', $this->name);
554 if ($encoding = $this->offsetGet('ENCODING')) {
555 if (Document::VCARD40 === $this->root->getDocumentType()) {
559 'node' => $this,
566 switch ($this->root->getDocumentType()) {
579 $this['ENCODING'] = $encoding;
583 'node' => $this,
593 'node' => $this,
600 foreach ($this->parameters as $param) {
616 foreach ($this->parameters as $param) {
619 $this->parameters = [];