Project parent class

access public
package kocuj_internal_lib

 Methods

Constructor

__construct(array $components, array $settings, array $stringsClasses = array(), array $additionalProjectsForRequirements = array()) : void
access public

Parameters

$components

array

Components to use

$settings

array

Project settings

$stringsClasses

array

Classes list for classes with strings which implement \KocujIL\V12a\Interfaces\Strings interface; if some keys are empty or does not exist, the default classes which returns only empty strings will be used for these keys - default: empty

$additionalProjectsForRequirements

array

Additional projects for checking requirements; each element should be objec of class derived from this class (ProjectParent) and its key should be the name of class derived from this class (ProjectParent) - default: empty

Action for removing all initialization classes

actionRemoveInits() : void
access public

Shutdown action

actionShutdown() : void
access public

Get object of class type from component

get(string $type, integer $projectCategory = \KocujIL\V12a\Enums\ProjectCategory::CORE, string $fragment = '') : object
access public

Parameters

$type

string

Component type

$projectCategory

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

$fragment

string

Component fragment - default: empty

Returns

objectObject of class type from component

Get component errors

getComponentErrors(integer $projectCategory, string $type) : array
access public

Parameters

$projectCategory

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)

$type

string

Component type

Returns

arrayComponent errors

Get project setting with array type

getSettingArray(string $type, string $index = '') : array | string
access public

Parameters

$type

string

Data type

$index

string

Data index

Returns

arraystringProject setting

Get project setting with string type

getSettingString(string $type) : string
access public

Parameters

$type

string

Data type

Returns

stringProject setting

Get object of class type which implements \KocujIL\V12a\Interfaces\Strings interface

getStringsObj(string $type, integer $projectCategory = \KocujIL\V12a\Enums\ProjectCategory::CORE) : object
access public

Parameters

$type

string

Component type

$projectCategory

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

Returns

objectObject of class type which implements \KocujIL\V12a\Interfaces\Strings interface

Load class for namespace prefix

loadClassForNamespacePrefix(string $namespacePrefix, string $className, integer $projectCategory, string $type, string $fragmentIndex) : boolean
access private

Parameters

$namespacePrefix

string

Namespace prefix

$className

string

Class name

$projectCategory

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)

$type

string

Component type

$fragmentIndex

string

Component fragment index

Returns

booleanClass has been loaded (true) or not (false)

 Properties

 

Namespace prefix

$namespacePrefix : string

Default

''
access protected
 

Project components

$components : array

Default

array()
access private
 

Project components errors

$componentsErrors : array

Default

array()
access private
 

Initialization classes to remove

$initsToRemove : array

Default

array()
access private
 

Objects with instances of classes for components

$libComponentsObjects : array

Default

array()
access private
 

Project settings

$settings : array

Default

array()
access private
 

Shutdown flag

$shutdown : boolean

Default

false
access private
 

Classes list for classes with strings which implement \KocujIL\V12a\Interfaces\Strings interface

$stringsClassesList : array

Default

array()
access private