コード例 #1
0
ファイル: HrefTest.php プロジェクト: fruition-sciences/phpfw
 /**
  * @covers Href::set
  */
 public function testSetSecondId()
 {
     $newHref = $this->href->set("id", 11, true);
     $newHref = $newHref->set("id", 121, true);
     $this->assertArrayHasKey("id", $newHref->getAttributes());
     $this->assertContains(array(11, 121), $newHref->getAttributes());
 }
コード例 #2
0
ファイル: Link.php プロジェクト: fruition-sciences/phpfw
 public function setAction($action)
 {
     $this->href->set("_ac", $action);
     return $this;
 }