modules/project/models/OngoingProject.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Project_Model_OngoingProject

Package: Project\Models
Project_Model_OngoingProject
Author
Alexander  

Properties

>VPropertyprivate$_db
Details
Type
n/a
>VPropertyprivate$_projId = 0
Default value0Details
Type
n/a
>VPropertyprivate$_schema
Details
Type
n/a
>VPropertyprivate$codes_table
Details
Type
n/a
>VPropertyprivate$data_table
Details
Type
n/a
>VPropertyprivate$fields_table
Details
Type
n/a
>VPropertyprivate$sqlPool = array()
Default valuearray()Details
Type
n/a

Methods

methodpublic__construct( $projId = "") : void

Parameters
NameTypeDescription
$projId
methodpublicgetCVarsValues(integer $field_id) : array

get c values

Parameters
NameTypeDescription
$field_idinteger
Returns
TypeDescription
array
methodpublicgetCVarsWithValues( $selectedVars) : array

Get c variables for project with all values

Parameters
NameTypeDescription
$selectedVars
Returns
TypeDescription
array
methodpublicgetCodes(integer $field_id) : array

get codes by filed id

Parameters
NameTypeDescription
$field_idinteger
Returns
TypeDescription
array
methodpublicgetQuestionnaireID() : integer

fet questionnaire id for projecct

Returns
TypeDescription
integer
methodpublicgetRespondentNames() : void

Return pair sf_id => name for project_XXX_sf and field types

methodpublicgetSettings() : array

get settings for project

Returns
TypeDescription
array
methodpublicgetShowSurveyVars(\srray $showUI, array $sf_row) : array

Sow all C variables for curren survey

Parameters
NameTypeDescription
$showUI\srray
$sf_rowarray
Returns
TypeDescription
array
methodpublicimportCodes(string $codefile) : void

Import codes from file

Parameters
NameTypeDescription
$codefilestring
methodpublicinportStructure(string $xlsfile) : void

Import struncture from xls

Parameters
NameTypeDescription
$xlsfilestring
methodpublicloadListfile(string $destination) : array

Load listfinle frrm csv

Parameters
NameTypeDescription
$destinationstring
Returns
TypeDescription
array
methodpublicprepareEdit() : array

Get data from settins able for preparing edit project

Returns
TypeDescription
array
methodpublicreplaceDataCodes() : integer

Replace code values in listfile

Returns
TypeDescription
integer
methodpublicsaveCodes(array $data) : void

Save codes to db

Parameters
NameTypeDescription
$dataarray
methodpublicsaveSettings(array $data) : void

save settings

Parameters
NameTypeDescription
$dataarray
methodpublicupdateFields(\[type] $fields) : \[type]

Update fields for project

Parameters
NameTypeDescription
$fields\[type]
Returns
TypeDescription
\[type]
Documentation was generated by phpDocumentor 2.8.5.