PHP Класс Object, gxc-cms

Автор: Беляев Дмитрий ([email protected])
Наследование: extends Adapter
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$_oldTags The old Tags
$person This is to check the person the Object will be transferd to

Открытые методы

Метод Описание
Permissions ( )
Resources ( )
UpdateTagRelationship ( type $obj ) Update Tag Relationship of the Object
attributeLabels ( ) : array
buildLink ( $obj )
checkTags ( type $attribute, type $params ) Check Tags Valid
convertObjectCommentType ( type $value ) Convert from value to the String of the Object Comment
convertObjectStatus ( type $value ) Convert from value to the String of the Object Status
convertObjectType ( type $value ) Convert from value to the String of the Object Type
doSearch ( type $type ) : CActiveDataProvider Do Search Object based on its status
extraAfterDelete ( $object )
extraAfterSave ( $object ) After Save excucte update Tag Relationship
extraBeforeSave ( $type = 'update', $object )
extraLabel ( )
extraRelationships ( ) : type Define Relationships so that its child class can call it
extraRules ( )
extraSearch ( $object )
getObjectLink ( )
getRelatedContentByTags ( type $id, type $max ) : CActiveDataProvider get Related content by Tags
getTags ( type $object_id ) : type Get Tags of the Object
getTransferHistory ( $model ) Get the history workflow of the Object
increaseCommentCount ( ) Increase the comment count by 1 whenever new comment was created.
loadPublishedModel ( type $id ) : type Load Object that has been published and time is <= time()
model ( $className = __CLASS__ ) : Object Returns the static model of the specified AR class.
normalizeTags ( type $attribute, type $params ) Normalize The Tags for the Object - Check Valid
relations ( ) : array
rules ( ) : array
saveMetaValue ( type $key, type $value, type $object, type $create = true ) Save Meta Data of a Object Content Type
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
suggestContent ( $keyword, $type = '', $limit = 20 )
tableName ( ) : string

Защищенные методы

Метод Описание
afterDelete ( ) Excute after Delete Object
afterSave ( )
beforeSave ( )

Описание методов

Permissions() публичный статический Метод

public static Permissions ( )

Resources() публичный статический Метод

public static Resources ( )

UpdateTagRelationship() публичный статический Метод

Update Tag Relationship of the Object
public static UpdateTagRelationship ( type $obj )
$obj type

afterDelete() защищенный Метод

Excute after Delete Object
protected afterDelete ( )

afterSave() защищенный Метод

protected afterSave ( )

attributeLabels() публичный Метод

public attributeLabels ( ) : array
Результат array customized attribute labels (name=>label)

beforeSave() защищенный Метод

protected beforeSave ( )

checkTags() публичный Метод

Check Tags Valid
public checkTags ( type $attribute, type $params )
$attribute type
$params type

convertObjectCommentType() публичный статический Метод

Convert from value to the String of the Object Comment
public static convertObjectCommentType ( type $value )
$value type

convertObjectStatus() публичный статический Метод

Convert from value to the String of the Object Status
public static convertObjectStatus ( type $value )
$value type

convertObjectType() публичный статический Метод

Convert from value to the String of the Object Type
public static convertObjectType ( type $value )
$value type

doSearch() публичный Метод

Do Search Object based on its status
public doSearch ( type $type ) : CActiveDataProvider
$type type
Результат CActiveDataProvider

extraAfterDelete() публичный статический Метод

public static extraAfterDelete ( $object )

extraAfterSave() публичный статический Метод

After Save excucte update Tag Relationship
public static extraAfterSave ( $object )

extraBeforeSave() публичный статический Метод

public static extraBeforeSave ( $type = 'update', $object )

extraLabel() публичный статический Метод

public static extraLabel ( )

extraRelationships() публичный статический Метод

Define Relationships so that its child class can call it
public static extraRelationships ( ) : type
Результат type

extraRules() публичный статический Метод

public static extraRules ( )

extraSearch() публичный статический Метод

public static extraSearch ( $object )

getRelatedContentByTags() публичный статический Метод

get Related content by Tags
public static getRelatedContentByTags ( type $id, type $max ) : CActiveDataProvider
$id type
$max type
Результат CActiveDataProvider

getTags() публичный статический Метод

Get Tags of the Object
public static getTags ( type $object_id ) : type
$object_id type
Результат type

getTransferHistory() публичный статический Метод

Get the history workflow of the Object
public static getTransferHistory ( $model )

increaseCommentCount() публичный Метод

Increase the comment count by 1 whenever new comment was created.

loadPublishedModel() публичный статический Метод

Load Object that has been published and time is <= time()
public static loadPublishedModel ( type $id ) : type
$id type
Результат type

model() публичный статический Метод

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : Object
Результат Object the static model class

normalizeTags() публичный Метод

Normalize The Tags for the Object - Check Valid
public normalizeTags ( type $attribute, type $params )
$attribute type
$params type

relations() публичный Метод

public relations ( ) : array
Результат array relational rules.

rules() публичный Метод

public rules ( ) : array
Результат array validation rules for model attributes.

saveMetaValue() публичный статический Метод

Save Meta Data of a Object Content Type
public static saveMetaValue ( type $key, type $value, type $object, type $create = true )
$key type
$value type
$object type
$create type

suggestContent() публичный Метод

public suggestContent ( $keyword, $type = '', $limit = 20 )

tableName() публичный Метод

public tableName ( ) : string
Результат string the associated database table name

Описание свойств

$_oldTags публичное свойство

The old Tags
public $_oldTags

$person публичное свойство

This is to check the person the Object will be transferd to
public $person