コード例 #1
0
 /**
  * @param BaseObject $object
  * @return string
  */
 private function getUfEntityName(BaseObject $object)
 {
     if ($object instanceof File) {
         return 'DISK_FILE_' . $object->getStorageId();
     }
     return 'DISK_FOLDER_' . $object->getStorageId();
 }
コード例 #2
0
ファイル: rightsmanager.php プロジェクト: DarneoStudio/bitrix
 private function checkUseInternalsRightsOnStorage(BaseObject $object, $rights)
 {
     $storageModel = Storage::loadById($object->getStorageId());
     if (!empty($rights) && !$storageModel->isUseInternalRights()) {
         throw new SystemException('Attempt to set the rights, but not to use the internal rights.');
     }
 }