コード例 #1
0
ファイル: Table.php プロジェクト: 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;
 }
コード例 #2
0
ファイル: Html.php プロジェクト: 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;
 }