/** * * Creates a new instance of the backend container rights form elements * @param BackendContainerRights $rights The rights for editing * @param string $namePrefix Optional field name prefix */ function __construct(BackendContainerRights $rights = null, $namePrefix = '') { parent::__construct($namePrefix); $this->rights = $rights; $beContentRights = $rights ? $rights->GetContentRights() : null; $this->contentRights = new ContentRights(null, $beContentRights, $namePrefix . 'ContainerContentRights_'); }
/** * @param BackendSiteRights $parentRights The parent rights * @param BackendSiteRights $rights The rights for editing * @param string $namePrefix Optional field name prefix */ function __construct(BackendSiteRights $rights = null, $namePrefix = '') { parent::__construct($namePrefix); $this->rights = $rights; $bePageRights = $rights ? $rights->GetPageRights() : null; $this->pageRights = new PageRights(null, $bePageRights, $namePrefix . 'SitePageRights_'); }
/** * @param BackendPageRights $parentRights The rights for editing * @param BackendPageRights $rights The rights for editing * @param string $namePrefix Optional field name prefix */ function __construct(BackendPageRights $parentRights = null, BackendPageRights $rights = null, $namePrefix = '') { parent::__construct($namePrefix); $this->parentRights = $parentRights; $this->rights = $rights; $beContentRights = $rights ? $rights->GetContentRights() : null; $beParentContentRights = $parentRights ? $parentRights->GetContentRights() : null; $this->contentRights = new ContentRights($beParentContentRights, $beContentRights, $namePrefix . 'ContentRights_'); }
/** * @param BackendContentRights $parentRights The rights for editing * @param BackendContentRights $rights The rights for editing * @param string $namePrefix Optional field name prefix */ function __construct(BackendContentRights $parentRights = null, BackendContentRights $rights = null, $namePrefix = '') { parent::__construct($namePrefix); $this->parentRights = $parentRights; $this->rights = $rights; }