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
RememberedPage Class Reference

Public Member Functions

 tableName ()
 rules ()
 getAttributeLabel ($name)
 getFbSharerUrl ()
 search ($pageSize=10, $collection_id=null)

Static Public Member Functions

static model ($className=__CLASS__)

Protected Member Functions

 beforeSave ()
 afterSave ()
 afterFind ()

Detailed Description

Definition at line 23 of file RememberedPage.php.

Member Function Documentation

static RememberedPage::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 33 of file RememberedPage.php.

Referenced by ManageController\actionDeletePage(), and LastRemembered\run().

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

Returns the validation rules for attributes.

Returns
array

Definition at line 55 of file RememberedPage.php.

{
return array(
array('created', 'default', 'value' => AppHelper::mysqlDate()),
array('url, title, page_id, collection_id','required'),
array('page_id, title','length', 'max'=>255),
array('additional', 'safe'),
array('created', 'type', 'type'=>'datetime', 'datetimeFormat' => 'yyyy-MM-dd HH:mm:ss'),
array('id, url, title, page_id, collection_id, created','safe', 'on'=>'search'),
);
}
RememberedPage::search (   $pageSize = 10,
  $collection_id = null 
)

Search

Returns
CActiveDataProvider

Definition at line 106 of file RememberedPage.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('page_id', $this->page_id, true);
$criteria->compare('url', $this->url, true);
$criteria->compare('title', $this->title, true);
$criteria->compare('created', $this->created, true);
$criteria->compare('collection_id', $collection_id);
$pagination = new CPagination($this->count($criteria));
$pagination->applyLimit($criteria);
$pagination->setPageSize($pageSize);
return new CActiveDataProvider($this, array('criteria' => $criteria,'pagination' => $pagination));
}
RememberedPage::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 45 of file RememberedPage.php.

{
return '{{remembered_pages}}';
}

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