copyChildless() 공개 메소드

Returns a copy of this navigation item without its children.
public copyChildless ( ) : NavigationItem
리턴 NavigationItem
예제 #1
0
 public function testCopyChildless()
 {
     $copy = $this->item1->copyChildless();
     $this->assertEquals($this->item1->getAction(), $copy->getAction());
     $this->assertEquals($this->item1->getIcon(), $copy->getIcon());
     $this->assertEquals($this->item1->getHeaderIcon(), $copy->getHeaderIcon());
     $this->assertEquals($this->item1->getHeaderTitle(), $copy->getHeaderTitle());
     $this->assertEquals($this->item1->getId(), $copy->getId());
 }