modules/project/models/BlacklistRules.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Project_Model_BlacklistRules

Package: Project\Models
Project_Model_BlacklistRules
Author
Evgeniy  

Properties

>VPropertyprivate$_db
Details
Type
n/a
>VPropertyprivate$_groupId
Details
Type
n/a
>VPropertyprivate$_proj_id
Details
Type
n/a
>VPropertyprivate$_schema
Details
Type
n/a

Methods

methodpublic__construct( $proj_id = 0) : void

Parameters
NameTypeDescription
$proj_id
methodpublicadd(integer $user_id, \srtring $conditions, integer $recurrence = 0) : void

Add blacklist rule

Parameters
NameTypeDescription
$user_idinteger
$conditions\srtring
$recurrenceinteger
methodpublicdelete(\[type] $id) : \[type]

[delete description]

Parameters
NameTypeDescription
$id\[type]

[description]

Returns
TypeDescription
\[type][description]
methodpublicexecRule(array $rule) : integer

Run blacklist rule

Parameters
NameTypeDescription
$rulearray
Returns
TypeDescription
integer
methodpublicget() : array

Get all balcklist rules by group

Returns
TypeDescription
array
methodpublicgetCodesByCode(integer $pr_id, integer $field_id, integer $code) : integer

Get project codes by code

Parameters
NameTypeDescription
$pr_idinteger
$field_idinteger
$codeinteger
Returns
TypeDescription
integer
methodpublicgetInfo(integer $id) : mixed

Get detailed information aout rule

Parameters
NameTypeDescription
$idinteger
Returns
TypeDescription
mixed
methodpublicgetVarById(integer $pr_id, integer $id) : string

Get variable daa by variable id

Parameters
NameTypeDescription
$pr_idinteger
$idinteger
Returns
TypeDescription
string
methodpublicgetVars(integer $pr_id) : array

Get all varilbles liset for project

Parameters
NameTypeDescription
$pr_idinteger
Returns
TypeDescription
array
methodpublicupdate(integer $id, string $conditions, string $recurrence) : void

Update blacklist congition

Parameters
NameTypeDescription
$idinteger
$conditionsstring
$recurrencestring
Documentation was generated by phpDocumentor 2.8.5.