コード例 #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_');
 }
コード例 #2
0
ファイル: SiteRights.php プロジェクト: agentmedia/phine-core
 /**
  * @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_');
 }
コード例 #3
0
ファイル: PageRights.php プロジェクト: agentmedia/phine-core
 /**
  * @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_');
 }
コード例 #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;
 }