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 |
---|
string
Option name
array
boolean
float
integer
string
Option value
integer
Automatic 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
integer
Option 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 |
---|
string
Option name
array
boolean
float
integer
string
Option value
integer
Automatic 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
integer
Option 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 |
---|
string
Transient name
array
boolean
float
integer
string
Transient value
integer
Expiration in seconds - default: 0
integer
Option 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 |
---|
string
Transient name
array
boolean
float
integer
string
Transient value
integer
Expiration in seconds - default: 0
integer
Option 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 |
---|
string
Option name
integer
Option 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 |
---|
string
Transient name
integer
Option 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 |
---|
object
Singleton instancegetOption(string $name, array|boolean|float|integer|string $defaultOptionValue= false
, integer $area= \KocujIL\V12a\Enums\Area::AUTO
) : array | boolean | float | integer | string
access | public |
---|
string
Option name
array
boolean
float
integer
string
Default option value - default: false
integer
Option 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
array
boolean
float
integer
string
Option valuegetTransient(string $name, array|boolean|float|integer|string $defaultTransientValue= false
, integer $area= \KocujIL\V12a\Enums\Area::AUTO
) : array | boolean | float | integer | string
access | public |
---|
string
Transient name
array
boolean
float
integer
string
Default transient value - default: false
integer
Option 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
array
boolean
float
integer
string
Transient 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 |
---|
string
Option name
string
Option element key
array
boolean
float
integer
string
Option element value
integer
Automatic 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
integer
Option 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
boolean
Element 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 |
---|
string
Transient name
string
Transient element key
array
boolean
float
integer
string
Transient element value
integer
Expiration in seconds - default: 0
integer
Option 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
boolean
Element 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 |
---|
string
Option name
string
Option element key
integer
Automatic 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
integer
Option 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
boolean
Element 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 |
---|
string
Transient name
string
Transient element key
integer
Expiration in seconds - default: 0
integer
Option 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
boolean
Element 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 |
---|
string
Option name
array
boolean
float
integer
string
Option value
integer
Automatic 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
integer
Option 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 |
---|
string
Transient name
array
boolean
float
integer
string
Transient value
integer
Expiration in seconds - default: 0
integer
Option 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 |
---|
boolean
It is option (true) or transient (false)
string
Option or transient name
array
boolean
float
integer
string
Option or transient value
boolean
integer
For 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
integer
Option 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 |
---|
boolean
It is option (true) or transient (false)
string
Function name prefix
array
Function parameters
integer
Option 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)
array
boolean
float
integer
string
Returned valuecheckAreaNetwork(integer $area) : boolean
access | private |
---|
integer
Option 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)
boolean
Area is set to network (true) or not (false)delete(boolean $isOption, string $name, integer $area) : void
access | private |
---|
boolean
It is option (true) or transient (false)
string
Option or transient name
integer
Option 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 |
---|
boolean
It is option (true) or transient (false)
string
Option or transient name
array
boolean
float
integer
string
Default option or transient value
integer
Option 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)
array
boolean
float
integer
string
Option 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 |
---|
boolean
It is option (true) or transient (false)
boolean
Merge (true) or unmerge (false)
string
Option or transient name
string
Option or transient element key
array
boolean
float
integer
string
Option or transient element value
boolean
integer
For 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
integer
Option 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)
boolean
Element has been merged correctly (true) or not (false)$instance : object
NULL
access | private |
---|