Overview

Packages

  • Jyxo_Beholder
  • Jyxo_Charset
  • Jyxo_Color
  • Jyxo_Css
  • Jyxo_ErrorHandling
  • Jyxo_FirePhp
  • Jyxo_Gettext
    • Parser
  • Jyxo_Html
  • Jyxo_Input
    • Chain
    • Filter
    • Validator
  • Jyxo_Mail
    • Email
    • Parser
    • Sender
  • Jyxo_Rpc
    • Json
    • Xml
  • Jyxo_Shell
  • Jyxo_SpamFilter
  • Jyxo_Spl
  • Jyxo_String
  • Jyxo_Svn
  • Jyxo_Time
  • Jyxo_Timer
  • Jyxo_Webdav
  • Jyxo_XmlReader
  • PHP

Classes

  • Jyxo_Mail_Email
  • Jyxo_Mail_Email_Address
  • Jyxo_Mail_Email_Attachment
  • Jyxo_Mail_Email_Attachment_File
  • Jyxo_Mail_Email_Attachment_InlineFile
  • Jyxo_Mail_Email_Attachment_InlineString
  • Jyxo_Mail_Email_Attachment_String
  • Jyxo_Mail_Email_Body
  • Jyxo_Mail_Email_Header
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
 1: <?php
 2: 
 3: /**
 4:  * Jyxo PHP Library
 5:  *
 6:  * LICENSE
 7:  *
 8:  * This source file is subject to the new BSD license that is bundled
 9:  * with this package in the file license.txt.
10:  * It is also available through the world-wide-web at this URL:
11:  * https://github.com/jyxo/php/blob/master/license.txt
12:  */
13: 
14: /**
15:  * Email header.
16:  *
17:  * @category Jyxo
18:  * @package Jyxo_Mail
19:  * @subpackage Email
20:  * @copyright Copyright (c) 2005-2011 Jyxo, s.r.o.
21:  * @license https://github.com/jyxo/php/blob/master/license.txt
22:  * @author Jaroslav HanslĂ­k
23:  */
24: class Jyxo_Mail_Email_Header extends Jyxo_Spl_Object
25: {
26:     /**
27:      * Header name.
28:      *
29:      * @var string
30:      */
31:     private $name = '';
32: 
33:     /**
34:      * Value.
35:      *
36:      * @var string
37:      */
38:     private $value = '';
39: 
40:     /**
41:      * Creates a header.
42:      *
43:      * @param string $name Header name
44:      * @param string $value Value
45:      */
46:     public function __construct($name, $value)
47:     {
48:         $this->setName($name);
49:         $this->setValue($value);
50:     }
51: 
52:     /**
53:      * Returns header name.
54:      *
55:      * @return string
56:      */
57:     public function getName()
58:     {
59:         return $this->name;
60:     }
61: 
62:     /**
63:      * Sets header name.
64:      *
65:      * @param string $name Name
66:      * @return Jyxo_Mail_Email_Header
67:      */
68:     public function setName($name)
69:     {
70:         $this->name = (string) $name;
71: 
72:         return $this;
73:     }
74: 
75:     /**
76:      * Returns value.
77:      *
78:      * @return string
79:      */
80:     public function getValue()
81:     {
82:         return $this->value;
83:     }
84: 
85:     /**
86:      * Sets value.
87:      *
88:      * @param string $value Value
89:      * @return Jyxo_Mail_Email_Header
90:      */
91:     public function setValue($value)
92:     {
93:         $this->value = (string) $value;
94: 
95:         return $this;
96:     }
97: }
98: 
Jyxo PHP Library API documentation generated by ApiGen 2.3.0