public function __construct($type = self::TYPE_TEXT, $language = self::LANG_JAVASCRIPT) { parent::__construct('Script'); $this->setTagType(Wax_Document_Element::TAG_OPEN); $this->setAttribute('type', $type . '/' . $language); # $this->setAttribute('language', $language); }
public function __construct($content, $name = null, $httpEquiv = null) { parent::__construct('Meta'); $this->_name = $name; $this->_httpEquiv = $httpEquiv; $this->_content = $content; }
public function __construct($id = null) { parent::__construct('Body'); if ($id) { $this->setId($id); } }
public function __construct($media = self::MEDIA_SCREEN) { parent::__construct('Style'); $this->setAttribute('type', $this->_type); $this->setAttribute('media', $media); $this->_import = array(); $this->_style = array(); }
public function __construct() { parent::__construct('Head'); $this->_title = Wax_Document::createElement('title', $this)->setTagType(Wax_Document_Element::TAG_OPEN); $this->_meta = array(); $this->_script = array(); $this->_style = array(); $this->appendMeta($this->_contentType . ';' . ' charset=' . $this->_charset, null, 'Content-Type'); }
public function __construct($publicId = null, $systemId = null) { parent::__construct('Html'); if ($publicId) { $this->_publicId = $publicId; } if ($systemId) { $this->_systemId = $systemId; } }
public function __construct($tagName = null) { parent::__construct($tagName); # if ( !( is_null($id) ) && strlen($id) > 0 ) # $this->setId($id); # else # { # $classExplode = explode('_', get_class($this)); # $this->setId( array_pop($classExplode) ); # } }