Свойство | Type | Description | |
---|---|---|---|
$contentService | eZ\Publish\API\Repository\ContentService | Instance of content service. | |
$contentTypeService | eZ\Publish\API\Repository\ContentTypeService | Instance of content type service. | |
$fieldTypeService | eZ\Publish\API\Repository\FieldTypeService | Instance of field type service. | |
$ioService | eZ\Publish\API\Repository\IOService | Instance of IO service. | |
$languageService | eZ\Publish\API\Repository\LanguageService | Instance of language service. | |
$locationService | eZ\Publish\API\Repository\LocationService | Instance of location service. | |
$objectStateService | eZ\Publish\API\Repository\ObjectStateService | Instance of object state service. | |
$repository | eZ\Publish\API\Repository\Repository | Repository Handler object. | |
$roleService | eZ\Publish\API\Repository\RoleService | Instance of role service. | |
$searchService | eZ\Publish\API\Repository\SearchService | Instance of search service. | |
$sectionService | eZ\Publish\API\Repository\SectionService | Instance of section service. | |
$signalDispatcher | SignalDispatcher. | ||
$trashService | eZ\Publish\API\Repository\TrashService | Instance of Trash service. | |
$urlAliasService | Instance of URL alias service. | ||
$urlWildcardService | Instance of URL wildcard service. | ||
$userService | eZ\Publish\API\Repository\UserService | Instance of user service. |
Méthode | Description | |
---|---|---|
__construct ( eZ\Publish\API\Repository\Repository $repository, |
Constructor. | |
beginTransaction ( ) | Begin transaction. | |
canUser ( string $module, string $function, eZ\Publish\API\Repository\Values\ValueObject $object, mixed $targets = null ) : boolean | ||
commit ( ) | Commit transaction. | |
commitEvent ( Callable $event ) | Enqueue an event to be triggered at commit or directly if no transaction has started. | |
createDateTime ( integer $timestamp = null ) : DateTime | Only for internal use. | |
getContentLanguageService ( ) : eZ\Publish\API\Repository\LanguageService | Get Content Language Service. | |
getContentService ( ) : eZ\Publish\API\Repository\ContentService | Get Content Service. | |
getContentTypeService ( ) : eZ\Publish\API\Repository\ContentTypeService | Get Content Type Service. | |
getCurrentUser ( ) : eZ\Publish\API\Repository\Values\User\User | ||
getCurrentUserReference ( ) : eZ\Publish\API\Repository\Values\User\UserReference | ||
getFieldTypeService ( ) : eZ\Publish\API\Repository\FieldTypeService | Get FieldTypeService. | |
getLocationService ( ) : eZ\Publish\API\Repository\LocationService | Get Content Location Service. | |
getObjectStateService ( ) : eZ\Publish\API\Repository\ObjectStateService | Get ObjectStateService. | |
getPermissionResolver ( ) : eZ\Publish\API\Repository\PermissionResolver | Get PermissionResolver. | |
getRoleService ( ) : eZ\Publish\API\Repository\RoleService | Get RoleService. | |
getSearchService ( ) : eZ\Publish\API\Repository\SearchService | Get SearchService. | |
getSectionService ( ) : eZ\Publish\API\Repository\SectionService | Get Content Section Service. | |
getTrashService ( ) : eZ\Publish\API\Repository\TrashService | Get Content Trash service. | |
getURLAliasService ( ) : eZ\Publish\API\Repository\URLAliasService | Get URLAliasService. | |
getURLWildcardService ( ) : eZ\Publish\API\Repository\URLWildcardService | Get URLWildcardService. | |
getUserService ( ) : eZ\Publish\API\Repository\UserService | Get User Service. | |
hasAccess ( string $module, string $function, eZ\Publish\API\Repository\Values\User\UserReference $user = null ) : boolean | array | ||
rollback ( ) | Rollback transaction. | |
setCurrentUser ( eZ\Publish\API\Repository\Values\User\UserReference $user ) | ||
sudo ( Closure $callback ) : mixed | Allows API execution to be performed with full access sand-boxed. |
public __construct ( eZ\Publish\API\Repository\Repository $repository, |
||
$repository | eZ\Publish\API\Repository\Repository | |
$signalDispatcher |
public beginTransaction ( ) |
public canUser ( string $module, string $function, eZ\Publish\API\Repository\Values\ValueObject $object, mixed $targets = null ) : boolean | ||
$module | string | The module, aka controller identifier to check permissions on |
$function | string | The function, aka the controller action to check permissions on |
$object | eZ\Publish\API\Repository\Values\ValueObject | The object to check if the user has access to |
$targets | mixed | The location, parent or "assignment" value object, or an array of the same |
Résultat | boolean |
public commit ( ) |
public commitEvent ( Callable $event ) | ||
$event | Callable |
public createDateTime ( integer $timestamp = null ) : DateTime | ||
$timestamp | integer | |
Résultat | DateTime |
public getContentLanguageService ( ) : eZ\Publish\API\Repository\LanguageService | ||
Résultat | eZ\Publish\API\Repository\LanguageService |
public getContentService ( ) : eZ\Publish\API\Repository\ContentService | ||
Résultat | eZ\Publish\API\Repository\ContentService |
public getContentTypeService ( ) : eZ\Publish\API\Repository\ContentTypeService | ||
Résultat | eZ\Publish\API\Repository\ContentTypeService |
public getCurrentUser ( ) : eZ\Publish\API\Repository\Values\User\User | ||
Résultat | eZ\Publish\API\Repository\Values\User\User |
public getCurrentUserReference ( ) : eZ\Publish\API\Repository\Values\User\UserReference | ||
Résultat | eZ\Publish\API\Repository\Values\User\UserReference |
public getFieldTypeService ( ) : eZ\Publish\API\Repository\FieldTypeService | ||
Résultat | eZ\Publish\API\Repository\FieldTypeService |
public getLocationService ( ) : eZ\Publish\API\Repository\LocationService | ||
Résultat | eZ\Publish\API\Repository\LocationService |
public getObjectStateService ( ) : eZ\Publish\API\Repository\ObjectStateService | ||
Résultat | eZ\Publish\API\Repository\ObjectStateService |
public getPermissionResolver ( ) : eZ\Publish\API\Repository\PermissionResolver | ||
Résultat | eZ\Publish\API\Repository\PermissionResolver |
public getRoleService ( ) : eZ\Publish\API\Repository\RoleService | ||
Résultat | eZ\Publish\API\Repository\RoleService |
public getSearchService ( ) : eZ\Publish\API\Repository\SearchService | ||
Résultat | eZ\Publish\API\Repository\SearchService |
public getSectionService ( ) : eZ\Publish\API\Repository\SectionService | ||
Résultat | eZ\Publish\API\Repository\SectionService |
public getTrashService ( ) : eZ\Publish\API\Repository\TrashService | ||
Résultat | eZ\Publish\API\Repository\TrashService |
public getURLAliasService ( ) : eZ\Publish\API\Repository\URLAliasService | ||
Résultat | eZ\Publish\API\Repository\URLAliasService |
public getURLWildcardService ( ) : eZ\Publish\API\Repository\URLWildcardService | ||
Résultat | eZ\Publish\API\Repository\URLWildcardService |
public getUserService ( ) : eZ\Publish\API\Repository\UserService | ||
Résultat | eZ\Publish\API\Repository\UserService |
public hasAccess ( string $module, string $function, eZ\Publish\API\Repository\Values\User\UserReference $user = null ) : boolean | array | ||
$module | string | |
$function | string | |
$user | eZ\Publish\API\Repository\Values\User\UserReference | |
Résultat | boolean | array | Bool if user has full or no access, array if limitations if not |
public rollback ( ) |
public setCurrentUser ( eZ\Publish\API\Repository\Values\User\UserReference $user ) | ||
$user | eZ\Publish\API\Repository\Values\User\UserReference |
protected ContentService,eZ\Publish\API\Repository $contentService | ||
Résultat | eZ\Publish\API\Repository\ContentService |
protected ContentTypeService,eZ\Publish\API\Repository $contentTypeService | ||
Résultat | eZ\Publish\API\Repository\ContentTypeService |
protected FieldTypeService,eZ\Publish\API\Repository $fieldTypeService | ||
Résultat | eZ\Publish\API\Repository\FieldTypeService |
protected IOService,eZ\Publish\API\Repository $ioService | ||
Résultat | eZ\Publish\API\Repository\IOService |
protected LanguageService,eZ\Publish\API\Repository $languageService | ||
Résultat | eZ\Publish\API\Repository\LanguageService |
protected LocationService,eZ\Publish\API\Repository $locationService | ||
Résultat | eZ\Publish\API\Repository\LocationService |
protected ObjectStateService,eZ\Publish\API\Repository $objectStateService | ||
Résultat | eZ\Publish\API\Repository\ObjectStateService |
protected Repository,eZ\Publish\API\Repository $repository | ||
Résultat | eZ\Publish\API\Repository\Repository |
protected RoleService,eZ\Publish\API\Repository $roleService | ||
Résultat | eZ\Publish\API\Repository\RoleService |
protected SearchService,eZ\Publish\API\Repository $searchService | ||
Résultat | eZ\Publish\API\Repository\SearchService |
protected SectionService,eZ\Publish\API\Repository $sectionService | ||
Résultat | eZ\Publish\API\Repository\SectionService |
protected SignalDispatcher,eZ\Publish\Core\SignalSlot $signalDispatcher | ||
Résultat |
protected TrashService,eZ\Publish\API\Repository $trashService | ||
Résultat | eZ\Publish\API\Repository\TrashService |
protected URLAliasService,eZ\Publish\Core\Repository $urlAliasService | ||
Résultat |
protected URLWildcardService,eZ\Publish\Core\Repository $urlWildcardService | ||
Résultat |