models/Random.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Random

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

Properties

>VPropertyprotectedstring $_name = 'random'
table name
Default value'random'Details
Type
string
>VPropertypublic$id
Details
Type
n/a
>VPropertypublic$items
Details
Type
n/a

Methods

methodpublicaddItems(mixed $id, mixed $childs) : void

Random::addItems() Add random items to random rule

Parameters
NameTypeDescription
$idmixed
$childsmixed
methodpublicdelByQuest(mixed $id) : \Zend_Db_Table_Row | \Zend_Db_Table_Rowset_Abstract

Delete all random by question id

Parameters
NameTypeDescription
$idmixed
Returns
TypeDescription
\Zend_Db_Table_Row | \Zend_Db_Table_Rowset_Abstract
methodpublicgetById(mixed $id) : \Zend_Db_Table_Row

Random::getById() Get random rule

Parameters
NameTypeDescription
$idmixed
Returns
TypeDescription
\Zend_Db_Table_Row
methodpublicgetGroupsByQuestionnaire( $qsId) : array

Returned Pairs id->name

Parameters
NameTypeDescription
$qsId
Returns
TypeDescription
array
methodpublicgetItems(mixed $id) : \Zend_Db_Table_Rowset_Abstract

Get random items from random rule

Parameters
NameTypeDescription
$idmixed
Returns
TypeDescription
\Zend_Db_Table_Rowset_Abstract
Documentation was generated by phpDocumentor 2.8.5.