コード例 #1
0
ファイル: Script.php プロジェクト: joksnet/php-old
 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);
 }
コード例 #2
0
ファイル: Meta.php プロジェクト: joksnet/php-old
 public function __construct($content, $name = null, $httpEquiv = null)
 {
     parent::__construct('Meta');
     $this->_name = $name;
     $this->_httpEquiv = $httpEquiv;
     $this->_content = $content;
 }
コード例 #3
0
ファイル: Body.php プロジェクト: joksnet/php-old
 public function __construct($id = null)
 {
     parent::__construct('Body');
     if ($id) {
         $this->setId($id);
     }
 }
コード例 #4
0
ファイル: Style.php プロジェクト: joksnet/php-old
 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();
 }
コード例 #5
0
ファイル: Head.php プロジェクト: joksnet/php-old
 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');
 }
コード例 #6
0
ファイル: DocType.php プロジェクト: joksnet/php-old
 public function __construct($publicId = null, $systemId = null)
 {
     parent::__construct('Html');
     if ($publicId) {
         $this->_publicId = $publicId;
     }
     if ($systemId) {
         $this->_systemId = $systemId;
     }
 }
コード例 #7
0
ファイル: Element.php プロジェクト: joksnet/php-old
 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) );
     # }
 }