getUrl() 공개 메소드

Get document url
public getUrl ( boolean $forceCanonical = false ) : string
$forceCanonical boolean Force canonical url
리턴 string
예제 #1
0
파일: ModelTest.php 프로젝트: gotcms/gotcms
 /**
  * Test
  *
  * @return void
  */
 public function testGetUrl()
 {
     $this->assertEquals('/parent/url-key', $this->object->getUrl());
     $this->assertEquals('http:///parent/url-key', $this->object->getUrl(true));
 }