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 |
---|
string
Button id; must be unique for this project
string
JavaScript filename
string
PHP filename - default: empty
checkButton(string $id) : boolean
access | public |
---|
string
Button for visual editor identifier
boolean
Button for visual editor exists (true) or not (false)filterMceButtons(array $buttons) : array
access | public |
---|
array
Buttons list
array
Buttons listfilterMceExternalLanguages(array $languages) : array
access | public |
---|
array
Plugins languages list
array
Plugins languages listfilterMceExternalPlugins(array $plugins) : array
access | public |
---|
array
Plugins list
array
Plugins listgetButton(string $id) : array | boolean
access | public |
---|
string
Button for visual editor identifier
array
boolean
Button 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 |
---|
array
Buttons 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 |
---|
string
Component type
integer
Component 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
string
Component fragment - default: empty
object
Object of class type from componentgetProjectObj() : object
access | public |
---|
object
Object of type \KocujIL\V12a\Classes\ProjectgetStrings(string $type, integer $projectCategory = \KocujIL\V12a\Enums\ProjectCategory::CORE
) : object
access | public |
---|
string
Component type
integer
Component 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
object
Object of class type for strings from componentremoveButton(string $id) : void
access | public |
---|
string
Button for visual editor identifier
$projectObj : object
NULL
access | private |
---|