Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
UserAnswer Class Reference

Public Member Functions

 tableName ()
 rules ()
 getAttributeLabel ($name)

Static Public Member Functions

static model ($className=__CLASS__)

Protected Member Functions

 beforeSave ()
 afterSave ()
 afterFind ()

Detailed Description

Gentics Portal.Node PHP Author & Copyright (c) by Gentics Software GmbH sales.nosp@m.@gen.nosp@m.tics..nosp@m.com http://www.gentics.com Licenses can be found in the LICENSE.txt file in the root-folder of this installation You must not use this software without a valid license agreement.

Represents single user answer to the question

Definition at line 14 of file UserAnswer.php.

Member Function Documentation

static UserAnswer::model (   $className = __CLASS__)
static

Returns the static model of the specified AR class.

Parameters
string$classNameactive record class name
Returns
array|CActiveRecord

Definition at line 24 of file UserAnswer.php.

{
return parent::model($className);
}
UserAnswer::rules ( )

Returns the validation rules for attributes.

Returns
array

Definition at line 46 of file UserAnswer.php.

{
return array(
array('created', 'default', 'value' => AppHelper::mysqlDate()),
array('answer_id, user_id','required'),
array('answer_id', 'numerical', 'integerOnly' => true),
array('user_id', 'length', 'max'=>255),
array('additional', 'safe'),
array('created', 'type', 'type'=>'datetime', 'datetimeFormat' => 'yyyy-MM-dd HH:mm:ss'),
array('id, question_id, text, order, created','safe', 'on'=>'search'),
);
}
UserAnswer::tableName ( )

Returns the name of the associated database table. By default this method returns the class name as the table name. You may override this method if the table is not named after this convention.

Returns
string the table name

Definition at line 36 of file UserAnswer.php.

{
return '{{user_answer}}';
}

The documentation for this class was generated from the following file: