예제 #1
0
파일: RFC822.php 프로젝트: mast3rpee/blw
 /**
  * Constructor
  *
  * @param \BLW\Model\MIME\MIMEVersion $Version
  *            Version of
  * @param \BLW\Model\MIME\Section $Section
  *            Main section of MIME body
  */
 public function __construct(IHeader $Version, ISection $Section)
 {
     // IContainer constructor
     parent::__construct(self::HEADER, 'string');
     // Set up properties
     $this->_Version = $Version;
     $this->_Section = $Section;
 }
예제 #2
0
파일: RFC822.php 프로젝트: mast3rpee/blw
 /**
  * Constructor
  *
  * @param \BLW\Model\MIME\Section $Section
  *            Main section of Mime body
  */
 public function __construct(ISection $Section)
 {
     // IContainer constructor
     parent::__construct(IBody::HEADER, IBody::PART, 'string');
     // Set up properties
     $this->_Sections = array($Section);
 }
예제 #3
0
 /**
  * Sets the value at the specified index to newval
  *
  * @link http://www.php.net/manual/en/arrayaccess.offsetset.php ArrayAccess::offsetSet()
  *
  * @param mixed $index
  *            The index being set.
  * @param mixed $newval
  *            The new value for the index.
  */
 public function offsetSet($index, $newval)
 {
     // Check index
     switch ($index) {
         // Readonly
         case 'Content-Type':
         case 'Content-Transfer-Encoding':
         case 'Content-Disposition':
         case 'Content-ID':
         case 'Content-Location':
         case 'Content-Base':
         case 'Content':
             trigger_error(sprintf('Cannot modify readonly offset %s[%s]', get_class($this), $index), E_USER_WARNING);
             break;
             // IContainer
         // IContainer
         default:
             parent::offsetSet($index, $newval);
     }
 }
예제 #4
0
파일: Section.php 프로젝트: mast3rpee/blw
 /**
  * Constructor
  *
  * @param string $Type
  *            [optional] Content type:
  *
  * <ul>
  * <li>multipart/mixed</li>
  * <li>multipart/alternative</li>
  * <li>multipart/related</li>
  * </ul>
  *
  * @param string $Boundary
  *            [optional] MIME boundary
  */
 public function __construct($Type = null, $Boundary = null)
 {
     // IContainer constructor
     parent::__construct('object', 'string');
     $this->_Type = strval($Type) ?: $this->_Type;
     $this->_Boundary = strval($Boundary) ?: $this->buildBoundary();
 }
예제 #5
0
파일: RFC2616.php 프로젝트: mast3rpee/blw
 /**
  * Constructor
  */
 public function __construct()
 {
     // IContainer constructor
     parent::__construct(self::HEADER, 'string');
 }
예제 #6
0
파일: RFC2616.php 프로젝트: mast3rpee/blw
 /**
  * Constructor
  */
 public function __construct()
 {
     // IContainer constructor
     parent::__construct(IBody::HEADER, IBody::PART, 'string');
     // Set up sections
     $this->_Sections = array();
 }