models/Bind.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Bind

Package: Models
Bind
Parent(s)
\Zend_Db_Table
Access
public  
Author
Alexander  
Copyright
2012  
Version
$Id$  

Constants

>VConstant  QST_QST_TYPE = 1
>VConstant  ANS_ANS_TYPE = 2
>VConstant  QST_ANS_TYPE = 3
>VConstant  ANS_QST_TYPE = 4

Properties

>VPropertyprotectedstring $_name = 'binds'
table name
Default value'binds'Details
Type
string

Methods

methodpublicaddChild(mixed $childs, mixed $bind_id) : void

Add bind childs

Parameters
NameTypeDescription
$childsmixed
$bind_idmixed
methodpublicaddSelcted(array $selected, integer $bind_id) : void

Add to selected

Parameters
NameTypeDescription
$selectedarray
$bind_idinteger
methodpublicdelById(integer $id) : void

Delete bind by id

Parameters
NameTypeDescription
$idinteger
methodpublicdelByQuest(mixed $id) : void

Deleting binds by question id

Parameters
NameTypeDescription
$idmixed
methodpublicgetChildQuest( $b_id) :

Get binds for children questions

Parameters
NameTypeDescription
$b_id
methodpublicgetFull(mixed $question) :

Get full binds info by question

Parameters
NameTypeDescription
$questionmixed
methodpublicgetSelcted(integer $bind_id) : array

Get selected

Parameters
NameTypeDescription
$bind_idinteger
Returns
TypeDescription
array
Documentation was generated by phpDocumentor 2.8.5.