コード例 #1
0
ファイル: TabElement.php プロジェクト: torbenkoehn/php-xtpl
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     $this->ignoreAttribute('NAME');
     if (!$this->hasAttribute('NAME')) {
         $this->setAttribute('NAME', $this->getUniqueId());
     }
 }
コード例 #2
0
 /**
  * HeadingElement constructor
  *
  * @param $heading int
  * @param AElement[]|AElement|string|null $content
  */
 public function __construct($heading = self::H1, $content = null)
 {
     parent::__construct(self::SIGN . $heading, $content);
     return $this;
 }
コード例 #3
0
ファイル: SpanElement.php プロジェクト: stechy1/htmlFramework
 /**
  * DivElement constructor.
  * @param AElement[]|AElement|string|null $content
  */
 public function __construct($content = null)
 {
     parent::__construct(self::SIGN, $content);
     return $this;
 }
コード例 #4
0
ファイル: BrandElement.php プロジェクト: torbenkoehn/php-xtpl
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     $this->addClass('navbar-brand');
 }