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

Public Member Functions

 tableName ()
 rules ()
 relations ()
 scopes ()
 defaultScope ()
 attributeLabels ()
 JSONToArray ()
 getDisplayData ()
 search ()

Static Public Member Functions

static model ($className=__CLASS__)

Detailed Description

Definition at line 14 of file FGFormdata.php.

Member Function Documentation

FGFormdata::attributeLabels ( )
Returns
array customized attribute labels (name=>label)

Definition at line 78 of file FGFormdata.php.

{
return array(
'id' => 'ID',
'form_id' => 'Form',
'created_at' => 'Created At',
'referer' => 'Referer',
'ip' => 'Ip',
'json' => 'Json',
);
}
static FGFormdata::model (   $className = __CLASS__)
static

Returns the static model of the specified AR class.

Parameters
string$classNameactive record class name.
Returns
FGFormdata the static model class

Definition at line 21 of file FGFormdata.php.

{
return parent::model($className);
}
FGFormdata::relations ( )
Returns
array relational rules.

Definition at line 55 of file FGFormdata.php.

{
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array(
'form' => array(self::BELONGS_TO, 'FGForms', 'form_id')
);
}
FGFormdata::rules ( )
Returns
array validation rules for model attributes.

Definition at line 37 of file FGFormdata.php.

{
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(
array('form_id, json', 'required'),
array('referer', 'length', 'max'=>2083),
array('ip', 'length', 'max'=>15),
array('created_at', 'safe'),
// The following rule is used by search().
// Please remove those attributes that should not be searched.
array('id, form_id, created_at, referer, ip, json', 'safe', 'on'=>'search'),
);
}
FGFormdata::search ( )

Retrieves a list of models based on the current search/filter conditions.

Returns
CActiveDataProvider the data provider that can return the models based on the search/filter conditions.

Definition at line 110 of file FGFormdata.php.

{
// Warning: Please modify the following code to remove attributes that
// should not be searched.
$criteria=new CDbCriteria;
$criteria->compare('id',$this->id,true);
$criteria->compare('form_id',$this->form_id,true);
$criteria->compare('created_at',$this->created_at,true);
$criteria->compare('referer',$this->referer,true);
$criteria->compare('ip',$this->ip,true);
$criteria->compare('json',$this->json,true);
return new CActiveDataProvider($this, array(
'criteria'=>$criteria,
));
}
FGFormdata::tableName ( )
Returns
string the associated database table name

Definition at line 29 of file FGFormdata.php.

{
return 'formdata';
}

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