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

Public Member Functions

 tableName ()
 rules ()
 relations ()
 defaultScope ()
 attributeLabels ()
 search ()

Static Public Member Functions

static model ($className=__CLASS__)

Detailed Description

Definition at line 13 of file FGTemplates.php.

Member Function Documentation

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

Definition at line 71 of file FGTemplates.php.

{
return array(
'id' => 'ID',
'name' => 'Name',
'json' => 'Json',
'user' => 'User',
'global' => 'Global',
);
}
static FGTemplates::model (   $className = __CLASS__)
static

Returns the static model of the specified AR class.

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

Definition at line 20 of file FGTemplates.php.

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

Definition at line 53 of file FGTemplates.php.

{
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array(
);
}
FGTemplates::rules ( )
Returns
array validation rules for model attributes.

Definition at line 36 of file FGTemplates.php.

{
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(
array('name, json, user', 'required'),
array('global', 'numerical', 'integerOnly'=>true),
array('name, user', 'length', 'max'=>255),
// The following rule is used by search().
// Please remove those attributes that should not be searched.
array('id, name, json, user, global', 'safe', 'on'=>'search'),
);
}
FGTemplates::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 86 of file FGTemplates.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('name',$this->name,true);
$criteria->compare('json',$this->json,true);
$criteria->compare('user',$this->user,true);
$criteria->compare('global',$this->global);
return new CActiveDataProvider($this, array(
'criteria'=>$criteria,
));
}
FGTemplates::tableName ( )
Returns
string the associated database table name

Definition at line 28 of file FGTemplates.php.

{
return 'templates';
}

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