AssignPropsManager
in package
Class AssignPropsManager
Tags
Table of Contents
- COLUMN_TAG_RULES = 'rules'
- COLUMN_TAG_UUID = 'tags_id'
- MODULE_NAME = 'assign_props'
- TABLE_NAME = 'tags_assign_props'
- $database : mixed
- __construct() : mixed
- getRulesTag() : mixed|null
- Get json rules for tag
- saveRulesForTag() : bool
- Save json rules for tag
- SupplementRulesForTag() : void
- isHaveAssignProps() : bool
- Check is have rules for tag
Constants
COLUMN_TAG_RULES
public
string
COLUMN_TAG_RULES
= 'rules'
COLUMN_TAG_UUID
public
string
COLUMN_TAG_UUID
= 'tags_id'
MODULE_NAME
public
mixed
MODULE_NAME
= 'assign_props'
TABLE_NAME
public
string
TABLE_NAME
= 'tags_assign_props'
Properties
$database
private
mixed
$database
Methods
__construct()
public
__construct(Context $database) : mixed
Parameters
- $database : Context
Return values
mixed —getRulesTag()
Get json rules for tag
public
getRulesTag([string $tag_uuid = '' ]) : mixed|null
Parameters
- $tag_uuid : string = ''
Tags
Return values
mixed|null —saveRulesForTag()
Save json rules for tag
public
saveRulesForTag( $tag_uuid, $rules) : bool
Parameters
Tags
Return values
bool —SupplementRulesForTag()
public
SupplementRulesForTag(string $uuid, array<string|int, mixed> $newRule) : void
Parameters
- $uuid : string
- $newRule : array<string|int, mixed>
Tags
Return values
void —isHaveAssignProps()
Check is have rules for tag
private
isHaveAssignProps( $tag_uuid) : bool