Lines Matching refs:name

111   public function set($name, $value)  argument
113 $lname = strtolower($name);
116 $this->headers[$name] = null;
117 $this->lowerHeaders[$lname] =& $this->headers[$name];
149 public function get($name) argument
151 $lname = strtolower($name);
152 if ($this->has($name))
161 public function remove($name) argument
163 $lname = strtolower($name);
164 if ($this->has($name))
166 unset($this->headers[$name]);
185 public function has($name) argument
187 $lname = strtolower($name);
272 public function setAttribute($header, $name, $value) argument
274 $name = strtolower($name);
280 …"Cannot set attribute '" . $name . "' for header '" . $header . "' as the header does not exist. "…
288 if ($value !== null) $this->attributes[$lheader][$name] = (string) $value;
289 else $this->attributes[$lheader][$name] = $value;
298 public function hasAttribute($header, $name) argument
300 $name = strtolower($name);
308 …utes[$lheader]) && isset($this->attributes[$lheader][$name]) && ($this->attributes[$lheader][$name
318 public function getAttribute($header, $name) argument
323 …"Cannot locate attribute '" . $name . "' for header '" . $header . "' as the header does not exist…
327 $name = strtolower($name);
330 if ($this->hasAttribute($header, $name))
332 return $this->attributes[$lheader][$name];
340 public function removeAttribute($header, $name) argument
342 $name = strtolower($name);
346 unset($this->attributes[$lheader][$name]);
369 public function getEncoded($name) argument
375 $lname = strtolower($name);
379 $value = $this->get($name);
381 $is_email = in_array($name, $this->emailContainingHeaders);
397 $row, 72, ($key > 0 ? 0 : (75-(strlen($name)+5))), $this->LE);
404 $used_length = strlen($name) + 2 + strlen($spec) + 2;
416 $used_length = strlen($name) + 2 + strlen($spec) + 2;
566 foreach ($this->headers as $name => $value) //Look at each header
569 $ret .= ltrim($name, ".") . ": " . $this->getEncoded($name) . $this->LE;