Actions and filters helper class
access | public |
---|---|
package | kocuj_internal_lib\kocuj_pl_lib |
inherited_from | \KocujIL\V12a\Classes\Project\Components\Core\ActionsFiltersHelper\Component |
__call(string $method, array $arguments) : boolean | float | integer | object | string
access | public |
---|
string
Method to call
array
Arguments
boolean
float
integer
object
string
Returned value__construct(object $projectObj) : void
access | public |
---|
object
\KocujIL\V12a\Classes\Project object for current project
addActionWhenNeeded(string $action, integer $callbackComponentProjectCategory, string $callbackComponent, string $callbackComponentFragment, string $callbackMethod, integer $prior= 10
, integer $argumentsCount= 1
) : void
access | public |
---|
string
Action hook
integer
Callback 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)
string
Callback component
string
Callback component fragment
string
Callback method
integer
Action callback priority - default: 10
integer
Action callback arguments count - default: 1
addFilterWhenNeeded(string $filter, integer $callbackComponentProjectCategory, string $callbackComponent, string $callbackComponentFragment, string $callbackMethod, integer $prior= 10
, integer $argumentsCount= 1
) : void
access | public |
---|
string
Filter hook
integer
Callback 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)
string
Callback component
string
Callback component fragment
string
Callback method
integer
Filter callback priority - default: 10
integer
Filter callback arguments count - default: 1
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 componentaddActionOrFilterWhenNeeded(string $actionOrFilter, integer $callbackComponentProjectCategory, string $callbackComponent, string $callbackComponentFragment, string $callbackMethod, integer $prior, integer $argumentsCount, boolean $isFilter) : void
access | private |
---|
string
Action or filter hook
integer
Callback 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)
string
Callback component
string
Callback component fragment
string
Callback method
integer
Action or filter callback priority
integer
Action or filter callback arguments count
boolean
It is filter (true) or action (false)
$callbacks : array
array()
access | private |
---|
$projectObj : object
NULL
access | private |
---|