コード例 #1
0
 public function buildBranch($content)
 {
     if ($this->getParentNode() != null) {
         return Html::getTag(static::$BRANCH_TAG, null, $content);
     } else {
         return Html::getTag(static::$BRANCH_TAG, $this->getProperties(), $content);
     }
 }
コード例 #2
0
 public function testClosedDivWithProperties()
 {
     $this->assertEquals('<div class="foo" />', Html::getClosedTag('div', 'class="foo"'));
 }
コード例 #3
0
 public function buildLinkPattern($caption)
 {
     $this->addLinkPropertie('href', $this->getAction());
     return Html::getTag(static::$LINK_TAG, $this->getLinkProperties(), $caption);
 }