Ejemplo n.º 1
0
 /**
  * 
  * 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_');
 }
Ejemplo n.º 2
0
 /**
  * @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_');
 }
Ejemplo n.º 3
0
 /**
  * @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_');
 }
Ejemplo n.º 4
0
 /**
  * @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;
 }