Gc\Component\Navigation::__construct PHP Method

__construct() public method

Constructor, initialize documents
public __construct ( integer $documentId, boolean $activeBranch = false )
$documentId integer Document id
$activeBranch boolean Use active branch or not
    public function __construct($documentId = 0, $activeBranch = false)
    {
        $documents = new Document\Collection();
        $documents->load($documentId);
        $this->documents = $documents->getDocuments();
        $this->requestUri = Registry::get('Application')->getRequest()->getUri()->getPath();
        $this->useActiveBranch = (bool) $activeBranch;
    }