ExtendedRightsService
in package
Extended Rights Service Handles RightsStatements.org, Creative Commons, TK Labels, and Embargoes
Table of Contents
Methods
- __construct() : mixed
- assignCreativeCommons() : bool
- assignRightsStatement() : bool
- assignTkLabel() : bool
- batchAssignRights() : int
- createEmbargo() : int
- extendEmbargo() : bool
- getActiveEmbargoes() : Collection
- getCreativeCommonsLicenseByCode() : object|null
- getCreativeCommonsLicenses() : Collection
- getEmbargoForObject() : object|null
- getObjectRights() : object
- getRightsStatementByCode() : object|null
- getRightsStatements() : Collection
- getRightsStatistics() : object
- getTkLabelByCode() : object|null
- getTkLabelCategories() : Collection
- getTkLabels() : Collection
- getTkLabelsByCategory() : Collection
- liftEmbargo() : bool
- removeTkLabel() : bool
Methods
__construct()
public
__construct(DatabaseManager $db) : mixed
Parameters
- $db : DatabaseManager
assignCreativeCommons()
public
assignCreativeCommons(int $objectId, int $licenseId[, string|null $notes = null ]) : bool
Parameters
- $objectId : int
- $licenseId : int
- $notes : string|null = null
Return values
boolassignRightsStatement()
public
assignRightsStatement(int $objectId, int $rightsStatementId[, string|null $notes = null ]) : bool
Parameters
- $objectId : int
- $rightsStatementId : int
- $notes : string|null = null
Return values
boolassignTkLabel()
public
assignTkLabel(int $objectId, int $labelId[, array<string|int, mixed> $data = [] ]) : bool
Parameters
- $objectId : int
- $labelId : int
- $data : array<string|int, mixed> = []
Return values
boolbatchAssignRights()
public
batchAssignRights(array<string|int, mixed> $objectIds, string $type, int $valueId[, string|null $notes = null ]) : int
Parameters
- $objectIds : array<string|int, mixed>
- $type : string
- $valueId : int
- $notes : string|null = null
Return values
intcreateEmbargo()
public
createEmbargo(array<string|int, mixed> $data) : int
Parameters
- $data : array<string|int, mixed>
Return values
intextendEmbargo()
public
extendEmbargo(int $embargoId, string $newEndDate[, string|null $reason = null ]) : bool
Parameters
- $embargoId : int
- $newEndDate : string
- $reason : string|null = null
Return values
boolgetActiveEmbargoes()
public
getActiveEmbargoes() : Collection
Return values
CollectiongetCreativeCommonsLicenseByCode()
public
getCreativeCommonsLicenseByCode(string $code) : object|null
Parameters
- $code : string
Return values
object|nullgetCreativeCommonsLicenses()
public
getCreativeCommonsLicenses([bool $activeOnly = true ]) : Collection
Parameters
- $activeOnly : bool = true
Return values
CollectiongetEmbargoForObject()
public
getEmbargoForObject(int $objectId) : object|null
Parameters
- $objectId : int
Return values
object|nullgetObjectRights()
public
getObjectRights(int $objectId) : object
Parameters
- $objectId : int
Return values
objectgetRightsStatementByCode()
public
getRightsStatementByCode(string $code) : object|null
Parameters
- $code : string
Return values
object|nullgetRightsStatements()
public
getRightsStatements([bool $activeOnly = true ]) : Collection
Parameters
- $activeOnly : bool = true
Return values
CollectiongetRightsStatistics()
public
getRightsStatistics() : object
Return values
objectgetTkLabelByCode()
public
getTkLabelByCode(string $code) : object|null
Parameters
- $code : string
Return values
object|nullgetTkLabelCategories()
public
getTkLabelCategories() : Collection
Return values
CollectiongetTkLabels()
public
getTkLabels([bool $activeOnly = true ]) : Collection
Parameters
- $activeOnly : bool = true
Return values
CollectiongetTkLabelsByCategory()
public
getTkLabelsByCategory(int $categoryId) : Collection
Parameters
- $categoryId : int
Return values
CollectionliftEmbargo()
public
liftEmbargo(int $embargoId[, int|null $userId = null ]) : bool
Parameters
- $embargoId : int
- $userId : int|null = null
Return values
boolremoveTkLabel()
public
removeTkLabel(int $objectId, int $labelId) : bool
Parameters
- $objectId : int
- $labelId : int