Configuration 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
addWindow(string $id, string $title, integer $width, integer $height, integer $type= \KocujIL\V12a\Enums\Project\Components\All\Window\Type::STANDARD, array $attr= array()) : void
| access | public |
|---|
stringWindow identifier; must be unique
stringWindow title
integerWindow width
integerWindow height
integerWindow type; must be one of the following constants from \KocujIL\V12a\Enums\Project\Components\All\Window\Type: STANDARD (for standard content) or AJAX (for AJAX content) - default: \KocujIL\V12a\Enums\Project\Components\All\Window\Type::STANDARD
arrayAdditional attributes; there are available the following attributes: "ajaxdata" (array type; data for AJAX request), "content" (string type; content for standard window; it works only if window type is set to \KocujIL\V12a\Enums\Project\Components\All\Window\Type::STANDARD), "contentcss" (array type; CSS styles for content), "url" (string type; URL for AJAX request; it works only if window type is set to \KocujIL\V12a\Enums\Project\Components\All\Window\Type::AJAX) - default: empty
checkWindow(string $id) : boolean
| access | public |
|---|
stringWindow identifier
booleanWindow exists (true) or not (false)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 componentgetWindow(string $id) : array | boolean
| access | public |
|---|
stringWindow identifier
arraybooleanWindow data or false if not exists; window data have the following fields: "ajaxdata" (data for AJAX request), "content" (content for standard window), "contentcss" (CSS styles for content), "height" (window height), "type" (type of window), "url" (URL for AJAX request), "width" (window width)getWindowJsCode(string $id) : string
| access | public |
|---|
stringWindow identifier
stringWindow JavaScript codegetWindowJsFunction(string $id, $functionName, string $forceSuffix = '') : string
| access | public |
|---|
stringWindow identifier
stringForce JavaScript function suffix - default: empty
stringWindow JavaScript function with codegetWindows() : array
| access | public |
|---|
arrayWindows data; each window data has the following fields: "ajaxdata" (data for AJAX request), "content" (content for standard window), "contentcss" (CSS styles for content), "height" (window height), "type" (type of window), "url" (URL for AJAX request), "width" (window width)removeWindow(string $id) : void
| access | public |
|---|
stringWindow identifier
$projectObj : object
NULL| access | private |
|---|
$windows : array
array()| access | private |
|---|