Lines Matching refs:this

71         $this->name = $name;
72 $this->group = $group;
74 $this->root = $root;
77 $this->add($k, $v);
81 $this->setValue($value);
96 $this->value = $value;
113 if (is_array($this->value)) {
114 if (count($this->value)==0) {
116 } elseif (count($this->value)===1) {
117 return $this->value[0];
119 return $this->getRawMimeDirValue($this->value);
122 return $this->value;
135 $this->value = $parts;
149 if (is_null($this->value)) {
151 } elseif (is_array($this->value)) {
152 return $this->value;
154 return array($this->value);
177 if (isset($this->parameters[strtoupper($name)])) {
178 $this->parameters[strtoupper($name)]->addValue($value);
181 $param = new Parameter($this->root, $name, $value);
183 $this->parameters[$param->name] = $param;
194 return $this->parameters;
233 $str = $this->name;
234 if ($this->group) $str = $this->group . '.' . $this->name;
236 foreach($this->parameters as $param) {
242 $str.=':' . $this->getRawMimeDirValue();
269 return $this->getParts();
284 $this->setValue(reset($value));
286 $this->setValue($value);
301 foreach($this->parameters as $parameter) {
309 if ($this->group) {
310 $parameters['group'] = $this->group;
315 strtolower($this->name),
317 strtolower($this->getValueType()),
319 $this->getJsonValue()
335 return (string)$this->getValue();
353 foreach($this->parameters as $parameter) {
373 if (!isset($this->parameters[$name])) {
377 return $this->parameters[$name];
399 $param = new Parameter($this->root, $name, $value);
400 $this->parameters[$param->name] = $param;
421 unset($this->parameters[strtoupper($name)]);
434 foreach($this->parameters as $key=>$child) {
435 $this->parameters[$key] = clone $child;
436 $this->parameters[$key]->parent = $this;
463 if (!StringUtil::isUTF8($this->getRawMimeDirValue())) {
465 $oldValue = $this->getRawMimeDirValue();
470 $this->setRawMimeDirValue($newValue);
486 'node' => $this,
491 if (!preg_match('/^([A-Z0-9-]+)$/', $this->name)) {
494 …'message' => 'The propertyname: ' . $this->name . ' contains invalid characters. Only A-Z, 0-9 and…
495 'node' => $this,
499 $this->name = strtoupper(
500 str_replace('_', '-', $this->name)
503 $this->name = preg_replace('/([^A-Z0-9-])/u', '', $this->name);
509 if ($encoding = $this->offsetGet('ENCODING')) {
511 if ($this->root->getDocumentType()===Document::VCARD40) {
515 'node' => $this
523 switch($this->root->getDocumentType()) {
539 'node' => $this
547 foreach($this->parameters as $param) {