modules/project/models/PStatuses.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Project_Model_PStatuses

Package: Project\Models
Project_Model_PStatuses
Author
Evgeniy  

Properties

>VPropertyprivate$db
db instance
Details
Type
n/a
>VPropertyprivatestring $dbName
db name
Details
Type
string
>VPropertyprivateinteger $projId
project id
Details
Type
integer

Methods

methodpublic__construct( $proj_id) : void

Parameters
NameTypeDescription
$proj_id
methodpublicclearStatuses() : void

Clean stauses bank

methodpublicdeleteTemplate(\[type] $templateId) : \[type]

Deleete tempalte statuses preset

Parameters
NameTypeDescription
$templateId\[type]

[description]

Returns
TypeDescription
\[type][description]
methodpublicgetById(\[type] $statusId) : array

Getn ione stause by id

Parameters
NameTypeDescription
$statusId\[type]
Returns
TypeDescription
array
methodpublicgetStatusesCnt() : integer

Get total count of statuses for project

Returns
TypeDescription
integer
methodpublicgetStatusesIdsByStatusType(integer $statusType) : mixed

Get all statuses id some type

Parameters
NameTypeDescription
$statusTypeinteger
Returns
TypeDescription
mixed
methodpublicloadStatuses() : array

Load all statuses for project

Returns
TypeDescription
array
methodpublicloadTemplate(integer $templateId) : mixed

Load tempalte statses preset

Parameters
NameTypeDescription
$templateIdinteger
Returns
TypeDescription
mixed
methodpublicloadTemplates() : void

methodpublicremoveStatus(integer $statusId) : void

Remove one status by id

Parameters
NameTypeDescription
$statusIdinteger
methodpublicremoveTemplateByName( $template_name) : void

Reove tempalte and all statuses

Parameters
NameTypeDescription
$template_name
methodpublicreorderStatuses( $data) : void

Reorder statuses bank

Parameters
NameTypeDescription
$data

array[status_id]=status_num

methodpublicsaveTemplate(\[type] $name, boolean $force = false) : \[type]

Save tempalte statuse

Parameters
NameTypeDescription
$name\[type]

[description]

$forceboolean

[description]

Returns
TypeDescription
\[type][description]
methodpublicsetTemplateDefault( $templateId,  $groupId) : void

Save current statuses tempalte as default for project gorup

Parameters
NameTypeDescription
$templateId
$groupId
methodpublicsetToDefault() : void

reset statuses to default values

methodpublicupdateStatus(array $statusData = array(), integer $statusId = 0) : integer | mixed

Save status in project bank. If

Parameters
NameTypeDescription
$statusDataarray
$statusIdinteger
Returns
TypeDescription
integer | mixed
Documentation was generated by phpDocumentor 2.8.5.