ConfigBuilder
FinalYes
Table of Contents
Constants
- DOCUMENT_TYPE_CELL = 'cell'
- DOCUMENT_TYPE_SLIDE = 'slide'
- DOCUMENT_TYPE_WORD = 'word'
- MODE_EDIT = 'edit'
- MODE_VIEW = 'view'
- REVIEW_DISPLAY_FINAL = \Bitrix\Disk\Document\OnlyOffice\Editor\CustomizationBuilder::REVIEW_DISPLAY_FINAL
- REVIEW_DISPLAY_MARKUP = \Bitrix\Disk\Document\OnlyOffice\Editor\CustomizationBuilder::REVIEW_DISPLAY_MARKUP
- REVIEW_DISPLAY_ORIGINAL = \Bitrix\Disk\Document\OnlyOffice\Editor\CustomizationBuilder::REVIEW_DISPLAY_ORIGINAL
- REVIEW_DISPLAY_SIMPLE = \Bitrix\Disk\Document\OnlyOffice\Editor\CustomizationBuilder::REVIEW_DISPLAY_SIMPLE
- VERSION = 1
- VISUAL_MODE_COMPACT = 3
- VISUAL_MODE_USUAL = 2
Methods
- __construct() : mixed
- ConfigBuilder constructor.
- allowDownload() : self
- allowEdit() : self
- allowRename() : self
- build() : array<string|int, mixed>
- getDocumentType() : string
- getMode() : string
- hideRightMenu() : self
- hideRulers() : self
- isEditMode() : bool
- isViewMode() : bool
- setBaseUrlToLogo() : self
- setCallbackUrl() : self
- setCompactHeader() : self
- setCompactToolbar() : self
- setDocumentSession() : self
- setDocumentUrl() : self
- setMode() : self
- setUser() : self
Constants
DOCUMENT_TYPE_CELL
public
mixed
DOCUMENT_TYPE_CELL
= 'cell'
DOCUMENT_TYPE_SLIDE
public
mixed
DOCUMENT_TYPE_SLIDE
= 'slide'
DOCUMENT_TYPE_WORD
public
mixed
DOCUMENT_TYPE_WORD
= 'word'
MODE_EDIT
public
mixed
MODE_EDIT
= 'edit'
MODE_VIEW
public
mixed
MODE_VIEW
= 'view'
REVIEW_DISPLAY_FINAL
public
mixed
REVIEW_DISPLAY_FINAL
= \Bitrix\Disk\Document\OnlyOffice\Editor\CustomizationBuilder::REVIEW_DISPLAY_FINAL
REVIEW_DISPLAY_MARKUP
public
mixed
REVIEW_DISPLAY_MARKUP
= \Bitrix\Disk\Document\OnlyOffice\Editor\CustomizationBuilder::REVIEW_DISPLAY_MARKUP
REVIEW_DISPLAY_ORIGINAL
public
mixed
REVIEW_DISPLAY_ORIGINAL
= \Bitrix\Disk\Document\OnlyOffice\Editor\CustomizationBuilder::REVIEW_DISPLAY_ORIGINAL
REVIEW_DISPLAY_SIMPLE
public
mixed
REVIEW_DISPLAY_SIMPLE
= \Bitrix\Disk\Document\OnlyOffice\Editor\CustomizationBuilder::REVIEW_DISPLAY_SIMPLE
VERSION
public
mixed
VERSION
= 1
VISUAL_MODE_COMPACT
public
mixed
VISUAL_MODE_COMPACT
= 3
VISUAL_MODE_USUAL
public
mixed
VISUAL_MODE_USUAL
= 2
Methods
__construct()
ConfigBuilder constructor.
public
__construct(DocumentSession $documentSession) : mixed
Parameters
- $documentSession : DocumentSession
Tags
allowDownload()
public
allowDownload(bool $allowed) : self
Parameters
- $allowed : bool
Return values
selfallowEdit()
public
allowEdit(bool $allowed) : self
Parameters
- $allowed : bool
Return values
selfallowRename()
public
allowRename(bool $allowed) : self
Parameters
- $allowed : bool
Return values
selfbuild()
public
build() : array<string|int, mixed>
Return values
array<string|int, mixed>getDocumentType()
public
getDocumentType() : string
Return values
stringgetMode()
public
getMode() : string
Return values
stringhideRightMenu()
public
hideRightMenu() : self
Return values
selfhideRulers()
public
hideRulers() : self
Return values
selfisEditMode()
public
isEditMode() : bool
Return values
boolisViewMode()
public
isViewMode() : bool
Return values
boolsetBaseUrlToLogo()
public
setBaseUrlToLogo(Uri $url) : self
Parameters
- $url : Uri
Return values
selfsetCallbackUrl()
public
setCallbackUrl(Uri $callbackUrl) : self
Parameters
- $callbackUrl : Uri
Return values
selfsetCompactHeader()
public
setCompactHeader() : self
Return values
selfsetCompactToolbar()
public
setCompactToolbar() : self
Return values
selfsetDocumentSession()
public
setDocumentSession(DocumentSession $documentSession) : self
Parameters
- $documentSession : DocumentSession
Return values
selfsetDocumentUrl()
public
setDocumentUrl(Uri $documentUrl) : self
Parameters
- $documentUrl : Uri
Return values
selfsetMode()
public
setMode(string $mode) : self
Parameters
- $mode : string
Return values
selfsetUser()
public
setUser(User $user) : self
Parameters
- $user : User