Visual 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 $filenameJS, string $filenamePhp = '') : void
| access | public |
|---|
stringButton id; must be unique for this project
stringJavaScript filename
stringPHP filename - default: empty
checkButton(string $id) : boolean
| access | public |
|---|
stringButton for visual editor identifier
booleanButton for visual editor exists (true) or not (false)filterMceButtons(array $buttons) : array
| access | public |
|---|
arrayButtons list
arrayButtons listfilterMceExternalLanguages(array $languages) : array
| access | public |
|---|
arrayPlugins languages list
arrayPlugins languages listfilterMceExternalPlugins(array $plugins) : array
| access | public |
|---|
arrayPlugins list
arrayPlugins listgetButton(string $id) : array | boolean
| access | public |
|---|
stringButton for visual editor identifier
arraybooleanButton for visual editor data or false if not exists; button for visual editor data have the following fields: "filenamejs" (string type; JavaScript filename), "filenamephp" (string type; PHP filename)getButtons() : array
| access | public |
|---|
arrayButtons for visual editor data; each button for visual editor data has the following fields: "filenamejs" (string type; JavaScript filename), "filenamephp" (string type; PHP filename)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 visual editor identifier
$projectObj : object
NULL| access | private |
|---|