Database data helper class
| access | public |
|---|---|
| package | kocuj_internal_lib |
addOption(string $name, array|boolean|float|integer|string $value, integer $optionAutoload= \KocujIL\V12a\Enums\OptionAutoload::NO, integer $area= \KocujIL\V12a\Enums\Area::AUTO) : void
| access | public |
|---|
stringOption name
arraybooleanfloatintegerstringOption value
integerAutomatic loading of option or not; must be one of the following constants from \KocujIL\V12a\Enums\OptionAutoload: NO (when option should not be automatically loaded) or YES (when option should be automatically loaded) - default: \KocujIL\V12a\Enums\OptionAutoload::NO
integerOption or transient area; must be one of the following constants from \KocujIL\V12a\Enums\Area: AUTO (for automatic area), SITE (for site area) or NETWORK (for network area) - default: \KocujIL\V12a\Enums\Area::AUTO
addOrUpdateOption(string $name, array|boolean|float|integer|string $value, integer $optionAutoload= \KocujIL\V12a\Enums\OptionAutoload::NO, integer $area= \KocujIL\V12a\Enums\Area::AUTO) : void
| access | public |
|---|
stringOption name
arraybooleanfloatintegerstringOption value
integerAutomatic loading of option or not; must be one of the following constants from \KocujIL\V12a\Enums\OptionAutoload: NO (when option should not be automatically loaded) or YES (when option should be automatically loaded) - default: \KocujIL\V12a\Enums\OptionAutoload::NO
integerOption or transient area; must be one of the following constants from \KocujIL\V12a\Enums\Area: AUTO (for automatic area), SITE (for site area) or NETWORK (for network area) - default: \KocujIL\V12a\Enums\Area::AUTO
addOrUpdateTransient(string $name, array|boolean|float|integer|string $value, integer $expiration= 0, integer $area= \KocujIL\V12a\Enums\Area::AUTO) : void
| access | public |
|---|
stringTransient name
arraybooleanfloatintegerstringTransient value
integerExpiration in seconds - default: 0
integerOption or transient area; must be one of the following constants from \KocujIL\V12a\Enums\Area: AUTO (for automatic area), SITE (for site area) or NETWORK (for network area) - default: \KocujIL\V12a\Enums\Area::AUTO
addTransient(string $name, array|boolean|float|integer|string $value, integer $expiration= 0, integer $area= \KocujIL\V12a\Enums\Area::AUTO) : void
| access | public |
|---|
stringTransient name
arraybooleanfloatintegerstringTransient value
integerExpiration in seconds - default: 0
integerOption or transient area; must be one of the following constants from \KocujIL\V12a\Enums\Area: AUTO (for automatic area), SITE (for site area) or NETWORK (for network area) - default: \KocujIL\V12a\Enums\Area::AUTO
databaseTransactionEnd() : void
| access | public |
|---|
databaseTransactionStart() : void
| access | public |
|---|
deleteOption(string $name, integer $area = \KocujIL\V12a\Enums\Area::AUTO) : void
| access | public |
|---|
stringOption name
integerOption or transient area; must be one of the following constants from \KocujIL\V12a\Enums\Area: AUTO (for automatic area), SITE (for site area) or NETWORK (for network area) - default: \KocujIL\V12a\Enums\Area::AUTO
deleteTransient(string $name, integer $area = \KocujIL\V12a\Enums\Area::AUTO) : void
| access | public |
|---|
stringTransient name
integerOption or transient area; must be one of the following constants from \KocujIL\V12a\Enums\Area: AUTO (for automatic area), SITE (for site area) or NETWORK (for network area) - default: \KocujIL\V12a\Enums\Area::AUTO
getInstance() : object
| access | public |
|---|
objectSingleton instancegetOption(string $name, array|boolean|float|integer|string $defaultOptionValue= false, integer $area= \KocujIL\V12a\Enums\Area::AUTO) : array | boolean | float | integer | string
| access | public |
|---|
stringOption name
arraybooleanfloatintegerstringDefault option value - default: false
integerOption or transient area; must be one of the following constants from \KocujIL\V12a\Enums\Area: AUTO (for automatic area), SITE (for site area) or NETWORK (for network area) - default: \KocujIL\V12a\Enums\Area::AUTO
arraybooleanfloatintegerstringOption valuegetTransient(string $name, array|boolean|float|integer|string $defaultTransientValue= false, integer $area= \KocujIL\V12a\Enums\Area::AUTO) : array | boolean | float | integer | string
| access | public |
|---|
stringTransient name
arraybooleanfloatintegerstringDefault transient value - default: false
integerOption or transient area; must be one of the following constants from \KocujIL\V12a\Enums\Area: AUTO (for automatic area), SITE (for site area) or NETWORK (for network area) - default: \KocujIL\V12a\Enums\Area::AUTO
arraybooleanfloatintegerstringTransient valuemergeOptionArray(string $name, string $key, array|boolean|float|integer|string $value, integer $optionAutoload= \KocujIL\V12a\Enums\OptionAutoload::NO, integer $area= \KocujIL\V12a\Enums\Area::AUTO) : boolean
| access | public |
|---|
stringOption name
stringOption element key
arraybooleanfloatintegerstringOption element value
integerAutomatic loading of option or not; must be one of the following constants from \KocujIL\V12a\Enums\OptionAutoload: NO (when option should not be automatically loaded) or YES (when option should be automatically loaded) - default: \KocujIL\V12a\Enums\OptionAutoload::NO
integerOption or transient area; must be one of the following constants from \KocujIL\V12a\Enums\Area: AUTO (for automatic area), SITE (for site area) or NETWORK (for network area) - default: \KocujIL\V12a\Enums\Area::AUTO
booleanElement has been merged correctly (true) or not (false)mergeTransientArray(string $name, string $key, array|boolean|float|integer|string $value, integer $expiration= 0, integer $area= \KocujIL\V12a\Enums\Area::AUTO) : boolean
| access | public |
|---|
stringTransient name
stringTransient element key
arraybooleanfloatintegerstringTransient element value
integerExpiration in seconds - default: 0
integerOption or transient area; must be one of the following constants from \KocujIL\V12a\Enums\Area: AUTO (for automatic area), SITE (for site area) or NETWORK (for network area) - default: \KocujIL\V12a\Enums\Area::AUTO
booleanElement has been merged correctly (true) or not (false)unmergeOptionArray(string $name, string $key, integer $optionAutoload= \KocujIL\V12a\Enums\OptionAutoload::NO, integer $area= \KocujIL\V12a\Enums\Area::AUTO) : boolean
| access | public |
|---|
stringOption name
stringOption element key
integerAutomatic loading of option or not; must be one of the following constants from \KocujIL\V12a\Enums\OptionAutoload: NO (when option should not be automatically loaded) or YES (when option should be automatically loaded) - default: \KocujIL\V12a\Enums\OptionAutoload::NO
integerOption or transient area; must be one of the following constants from \KocujIL\V12a\Enums\Area: AUTO (for automatic area), SITE (for site area) or NETWORK (for network area) - default: \KocujIL\V12a\Enums\Area::AUTO
booleanElement has been merged correctly (true) or not (false)unmergeTransientArray(string $name, string $key, integer $expiration= 0, integer $area= \KocujIL\V12a\Enums\Area::AUTO) : boolean
| access | public |
|---|
stringTransient name
stringTransient element key
integerExpiration in seconds - default: 0
integerOption or transient area; must be one of the following constants from \KocujIL\V12a\Enums\Area: AUTO (for automatic area), SITE (for site area) or NETWORK (for network area) - default: \KocujIL\V12a\Enums\Area::AUTO
booleanElement has been merged correctly (true) or not (false)updateOption(string $name, array|boolean|float|integer|string $value, integer $optionAutoload= \KocujIL\V12a\Enums\OptionAutoload::NO, integer $area= \KocujIL\V12a\Enums\Area::AUTO) : void
| access | public |
|---|
stringOption name
arraybooleanfloatintegerstringOption value
integerAutomatic loading of option or not; must be one of the following constants from \KocujIL\V12a\Enums\OptionAutoload: NO (when option should not be automatically loaded) or YES (when option should be automatically loaded) - default: \KocujIL\V12a\Enums\OptionAutoload::NO
integerOption or transient area; must be one of the following constants from \KocujIL\V12a\Enums\Area: AUTO (for automatic area), SITE (for site area) or NETWORK (for network area) - default: \KocujIL\V12a\Enums\Area::AUTO
updateTransient(string $name, array|boolean|float|integer|string $value, integer $expiration= 0, integer $area= \KocujIL\V12a\Enums\Area::AUTO) : void
| access | public |
|---|
stringTransient name
arraybooleanfloatintegerstringTransient value
integerExpiration in seconds - default: 0
integerOption or transient area; must be one of the following constants from \KocujIL\V12a\Enums\Area: AUTO (for automatic area), SITE (for site area) or NETWORK (for network area) - default: \KocujIL\V12a\Enums\Area::AUTO
__clone() : void
| access | private |
|---|
__construct() : void
| access | private |
|---|
add(boolean $isOption, string $name, array|boolean|float|integer|string $value, boolean|integer $autoloadOrExpiration, integer $area) : void
| access | private |
|---|
booleanIt is option (true) or transient (false)
stringOption or transient name
arraybooleanfloatintegerstringOption or transient value
booleanintegerFor option it sets automatic loading of option (true) or not (false) and works only if option is for site, not network; for transient it is expiration in seconds
integerOption or transient area; must be one of the following constants from \KocujIL\V12a\Enums\Area: AUTO (for automatic area), SITE (for site area) or NETWORK (for network area)
callFunction(boolean $isOption, string $prefix, array $pars, integer $area) : array | boolean | float | integer | string
| access | private |
|---|
booleanIt is option (true) or transient (false)
stringFunction name prefix
arrayFunction parameters
integerOption or transient area; must be one of the following constants from \KocujIL\V12a\Enums\Area: AUTO (for automatic area), SITE (for site area) or NETWORK (for network area)
arraybooleanfloatintegerstringReturned valuecheckAreaNetwork(integer $area) : boolean
| access | private |
|---|
integerOption or transient area; must be one of the following constants from \KocujIL\V12a\Enums\Area: AUTO (for automatic area), SITE (for site area) or NETWORK (for network area)
booleanArea is set to network (true) or not (false)delete(boolean $isOption, string $name, integer $area) : void
| access | private |
|---|
booleanIt is option (true) or transient (false)
stringOption or transient name
integerOption or transient area; must be one of the following constants from \KocujIL\V12a\Enums\Area: AUTO (for automatic area), SITE (for site area) or NETWORK (for network area)
get(boolean $isOption, string $name, array|boolean|float|integer|string $defaultValue, integer $area) : array | boolean | float | integer | string
| access | private |
|---|
booleanIt is option (true) or transient (false)
stringOption or transient name
arraybooleanfloatintegerstringDefault option or transient value
integerOption or transient area; must be one of the following constants from \KocujIL\V12a\Enums\Area: AUTO (for automatic area), SITE (for site area) or NETWORK (for network area)
arraybooleanfloatintegerstringOption or transient valuemergeOrUnmerge(boolean $isOption, boolean $merge, string $name, string $key, array|boolean|float|integer|string $value, boolean|integer $autoloadOrExpiration, integer $area) : boolean
| access | private |
|---|
booleanIt is option (true) or transient (false)
booleanMerge (true) or unmerge (false)
stringOption or transient name
stringOption or transient element key
arraybooleanfloatintegerstringOption or transient element value
booleanintegerFor option it sets automatic loading of option (true) or not (false) and works only if option is for site, not network; for transient it is expiration in seconds
integerOption or transient area; must be one of the following constants from \KocujIL\V12a\Enums\Area: AUTO (for automatic area), SITE (for site area) or NETWORK (for network area)
booleanElement has been merged correctly (true) or not (false)$instance : object
NULL| access | private |
|---|