コード例 #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_');
 }