Lines Matching refs:this

74         $this->name = $name;
75 $this->group = $group;
77 $this->root = $root;
80 $this->add($k, $v);
84 $this->setValue($value);
100 $this->value = $value;
117 if (is_array($this->value)) {
118 if (count($this->value) == 0) {
120 } elseif (count($this->value) === 1) {
121 return $this->value[0];
123 return $this->getRawMimeDirValue();
126 return $this->value;
140 $this->value = $parts;
154 if (is_null($this->value)) {
156 } elseif (is_array($this->value)) {
157 return $this->value;
159 return [$this->value];
181 if (isset($this->parameters[strtoupper($name)])) {
182 $this->parameters[strtoupper($name)]->addValue($value);
185 $param = new Parameter($this->root, $name, $value);
187 $this->parameters[$param->name] = $param;
198 return $this->parameters;
238 $str = $this->name;
239 if ($this->group) $str = $this->group . '.' . $this->name;
241 foreach ($this->parameters() as $param) {
247 $str .= ':' . $this->getRawMimeDirValue();
274 return $this->getParts();
290 $this->setValue(reset($value));
292 $this->setValue($value);
307 foreach ($this->parameters as $parameter) {
315 if ($this->group) {
316 $parameters['group'] = $this->group;
321 strtolower($this->name),
323 strtolower($this->getValueType()),
325 $this->getJsonValue()
339 $this->setJsonValue($value);
355 foreach ($this->parameters as $parameter) {
365 $writer->startElement(strtolower($this->name));
383 $this->xmlSerializeValue($writer);
398 $valueType = strtolower($this->getValueType());
400 foreach ($this->getJsonValue() as $values) {
419 return (string)$this->getValue();
438 foreach ($this->parameters as $parameter) {
459 if (!isset($this->parameters[$name])) {
463 return $this->parameters[$name];
486 $param = new Parameter($this->root, $name, $value);
487 $this->parameters[$param->name] = $param;
509 unset($this->parameters[strtoupper($name)]);
522 foreach ($this->parameters as $key => $child) {
523 $this->parameters[$key] = clone $child;
524 $this->parameters[$key]->parent = $this;
552 if (!StringUtil::isUTF8($this->getRawMimeDirValue())) {
554 $oldValue = $this->getRawMimeDirValue();
559 $this->setRawMimeDirValue($newValue);
575 'node' => $this,
580 if (!preg_match('/^([A-Z0-9-]+)$/', $this->name)) {
583 …'message' => 'The propertyname: ' . $this->name . ' contains invalid characters. Only A-Z, 0-9 and…
584 'node' => $this,
588 $this->name = strtoupper(
589 str_replace('_', '-', $this->name)
592 $this->name = preg_replace('/([^A-Z0-9-])/u', '', $this->name);
598 if ($encoding = $this->offsetGet('ENCODING')) {
600 if ($this->root->getDocumentType() === Document::VCARD40) {
604 'node' => $this
612 switch ($this->root->getDocumentType()) {
628 'node' => $this
636 foreach ($this->parameters as $param) {
655 foreach ($this->parameters as $param) {
658 $this->parameters = [];