Exemplo n.º 1
0
Arquivo: Table.php Projeto: volux/dom
 /**
  * @param array $body
  *
  * @return $this|Table|Document
  */
 public function body(array $body)
 {
     foreach ($body as $rowValues) {
         $row = $this->body->append('tr');
         foreach ($rowValues as $value) {
             $row->append('td')->append($value);
         }
     }
     return $this;
 }
Exemplo n.º 2
0
Arquivo: Html.php Projeto: volux/dom
 /**
  * @param string $uri
  *
  * @return $this|Html
  */
 public function favicon($uri = '/favicon.ico')
 {
     $this->head->append('link')->attr(array('href' => $uri, 'rel' => 'shortcut icon', 'type' => 'image/x-icon'));
     return $this;
 }