Gc\Document\Model::getEditUrl PHP Method

getEditUrl() public method

(non-PHPdoc)
See also: include Gc\Component\IterableInterface#getEditUrl()
public getEditUrl ( ) : mixed
return mixed
    public function getEditUrl()
    {
        return Registry::get('Application')->getMvcEvent()->getRouter()->assemble(array('id' => $this->getId()), array('name' => 'content/document/edit'));
    }

Usage Example

Example #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testRender()
 {
     Registry::get('Application')->getRequest()->getUri()->setPath($this->documentChildren->getEditUrl());
     $collection = new DocumentCollection();
     $collection->load(0);
     $array = array_merge(array($collection), array('test' => 'value'));
     $this->assertTrue(strlen($this->object->render($array)) > 0);
 }
All Usage Examples Of Gc\Document\Model::getEditUrl