Project class

access public
package kocuj_internal_lib\kocuj_pl_lib
inherited_from \KocujIL\V12a\Classes\ProjectParent

 Methods

Constructor

__construct(object $projectKocujInternaLibObj, array $components, array $settings, array $stringsClasses = array(), array $additionalProjectsForRequirements = array()) : void
access public
inherited_from \KocujIL\V12a\Classes\ProjectParent::__construct()

Parameters

$projectKocujInternaLibObj

object

Project object for Kocuj Internal Lib

$components

array

Components to use

$settings

array

Project settings

$stringsClasses

array

Classes list for classes with strings which implement \KocujPlLib\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

Constructor

__construct(array $components, array $settings, array $stringsClasses = array(), array $additionalProjectsForRequirements = array()) : void
Inherited
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
Inherited
access public

Shutdown action

actionShutdown() : void
Inherited
access public

Get object of class type from component

get(string $type, integer $projectCategory = \KocujIL\V12a\Enums\ProjectCategory::CORE, string $fragment = '') : object
Inherited
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
Inherited
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 object for Kocuj Internal Lib

getProjectKocujILObj() : object
access public

Returns

objectProject object for Kocuj Internal Lib

Get project setting with array type

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

Parameters

$type

string

Data type

$index

string

Data index

Returns

arraystringProject setting

Get project setting with string type

getSettingString(string $type) : string
Inherited
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
Inherited
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
Inherited
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

'\\KocujPlLib\\V12a'
access protected
inherited_from \KocujIL\V12a\Classes\ProjectParent::namespacePrefix
 

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 object for Kocuj Internal Lib

$projectKocujInternaLibObj : object

Default

NULL
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