Exemplo n.º 1
0
Arquivo: A.php Projeto: adilab/html
 /**
  * 
  * @param string $url href attribute
  * @param string $text Tag inner
  */
 public function __construct($url, $text = NULL)
 {
     if (!$text) {
         $text = $url;
     }
     parent::__construct($text);
     $this->setAttribute('href', $url);
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct([]);
 }
Exemplo n.º 3
0
 /**
  * Constructs the url tag
  * @return null
  */
 public function __construct()
 {
     parent::__construct(self::NAME, true, false);
 }
Exemplo n.º 4
0
 /**
  * Constructs the italic tag
  * @return null
  */
 public function __construct()
 {
     parent::__construct(self::NAME);
 }
 public function __construct($content = '')
 {
     parent::__construct('author', $content);
 }
Exemplo n.º 6
0
Arquivo: Tag.php Projeto: adilab/html
 /**
  * 
  * @param string $name Tag name
  * @param string $data Inner value (only for paired tags)
  */
 public function __construct($name, $data = NULL)
 {
     parent::__construct($data);
     $this->name = $name;
 }
 /**
  * Creates a new tag
  * 
  * @param string $tagName the tag name
  * @param string $content the tags content
  */
 public function __construct($content = '')
 {
     parent::__construct('license', $content);
 }
Exemplo n.º 8
0
Arquivo: Img.php Projeto: adilab/html
 /**
  * 
  * @param string $url Url of picture
  */
 public function __construct($url)
 {
     parent::__construct();
     $this->setAttribute('src', $url);
 }