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

Public Member Functions

 tableName ()
 rules ()
 getAttributeLabel ($name)
 relations ()

Static Public Member Functions

static model ($className=__CLASS__)

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 question

Definition at line 14 of file Question.php.

Member Function Documentation

static Question::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 Question.php.

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

Returns the validation rules for attributes.

Returns
array

Definition at line 46 of file Question.php.

{
return array(
array('created', 'default', 'value' => AppHelper::mysqlDate()),
array('id, author_id, text','required'),
array('id', 'length', 'max'=>255),
array('author_id', 'numerical', 'integerOnly' => true),
array('text', 'safe'),
array('created', 'type', 'type'=>'datetime', 'datetimeFormat' => 'yyyy-MM-dd HH:mm:ss'),
array('id, author_id, text, created','safe', 'on'=>'search'),
);
}
Question::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 Question.php.

{
return '{{question}}';
}

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