/** * 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; }
/** * 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); }
/** * 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); } }
/** * 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(); }
/** * Constructor */ public function __construct() { // IContainer constructor parent::__construct(self::HEADER, 'string'); }
/** * Constructor */ public function __construct() { // IContainer constructor parent::__construct(IBody::HEADER, IBody::PART, 'string'); // Set up sections $this->_Sections = array(); }