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 |
---|
string
Window identifier; must be unique
string
Window title
integer
Window width
integer
Window height
integer
Window 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
array
Additional 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 |
---|
string
Window identifier
boolean
Window exists (true) or not (false)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 componentgetWindow(string $id) : array | boolean
access | public |
---|
string
Window identifier
array
boolean
Window 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 |
---|
string
Window identifier
string
Window JavaScript codegetWindowJsFunction(string $id, $functionName, string $forceSuffix = ''
) : string
access | public |
---|
string
Window identifier
string
Force JavaScript function suffix - default: empty
string
Window JavaScript function with codegetWindows() : array
access | public |
---|
array
Windows 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 |
---|
string
Window identifier
$projectObj : object
NULL
access | private |
---|
$windows : array
array()
access | private |
---|