Documentation

AssignPropsManager

Class AssignPropsManager

Tags
subpackage

Modules\AsignProps\Models

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

Properties

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
throws
TagInvalidUuid
Return values
mixed|null

saveRulesForTag()

Save json rules for tag

public saveRulesForTag( $tag_uuid,  $rules) : bool
Parameters
$tag_uuid :
$rules :
Tags
throws
TagInvalidUuid
Return values
bool

SupplementRulesForTag()

public SupplementRulesForTag(string $uuid, array<string|int, mixed> $newRule) : void
Parameters
$uuid : string
$newRule : array<string|int, mixed>
Tags
throws
Exception
Return values
void

isHaveAssignProps()

Check is have rules for tag

private isHaveAssignProps( $tag_uuid) : bool
Parameters
$tag_uuid :
Return values
bool

Search results