Text editor buttons class
| access | public |
|---|---|
| package | kocuj_internal_lib |
| inherited_from | \KocujIL\V12a\Classes\ComponentObject |
__construct(object $projectObj) : void
| access | public |
|---|
object\KocujIL\V12a\Classes\Project object for current project
addButton(string $id, string $title, string $helpText, string $codeBegin, string $codeEnd, integer $priority= 0, string $accessKey= '') : void
| access | public |
|---|
stringButton id; must be unique for this project
stringButton title
stringHelp text for button
stringBegin of code added after clicking on button
stringEnd of code added after clicking on button
integerButton priority - default: empty
stringAccess key - default: empty
checkButton(string $id) : boolean
| access | public |
|---|
stringButton for text editor identifier
booleanButton for text editor exists (true) or not (false)getButton(string $id) : array | boolean
| access | public |
|---|
stringButton for text editor identifier
arraybooleanButton for text editor data or false if not exists; button for text editor data have the following fields: "accesskey" (string type; access key), "codebegin" (string type; begin of code added after clicking on button), "codeend" (string type; end of code added after clicking on button), "helptext" (string type; help text for button), "title" (string type; button title)getButtons() : array
| access | public |
|---|
arrayButtons for text editor data; each button for text editor data has the following fields: "accesskey" (string type; access key), "codebegin" (string type; begin of code added after clicking on button), "codeend" (string type; end of code added after clicking on button), "helptext" (string type; help text for button), "title" (string type; button title)getComponent(string $type, integer $projectCategory= \KocujIL\V12a\Enums\ProjectCategory::CORE, string $fragment= '') : object
| access | public |
|---|
stringComponent type
integerComponent category; must be one of the following constants from \KocujIL\V12a\Enums\ProjectCategory: CORE (for "core" category), ALL (for "all" category), FRONTEND (for "frontend" category) or BACKEND (for "backend" category) - default: \KocujIL\V12a\Enums\ProjectCategory::CORE
stringComponent fragment - default: empty
objectObject of class type from componentgetProjectObj() : object
| access | public |
|---|
objectObject of type \KocujIL\V12a\Classes\ProjectgetStrings(string $type, integer $projectCategory = \KocujIL\V12a\Enums\ProjectCategory::CORE) : object
| access | public |
|---|
stringComponent type
integerComponent category; must be one of the following constants from \KocujIL\V12a\Enums\ProjectCategory: CORE (for "core" category), ALL (for "all" category), FRONTEND (for "frontend" category) or BACKEND (for "backend" category) - default: \KocujIL\V12a\Enums\ProjectCategory::CORE
objectObject of class type for strings from componentremoveButton(string $id) : void
| access | public |
|---|
stringButton for text editor identifier
$projectObj : object
NULL| access | private |
|---|