PHP Class Object, gxc-cms

Author: Беляев Дмитрий ([email protected])
Inheritance: extends Adapter
Datei anzeigen Open project: nganhtuan63/gxc-cms Class Usage Examples

Public Properties

Property Type Description
$_oldTags The old Tags
$person This is to check the person the Object will be transferd to

Public Methods

Method Description
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

Protected Methods

Method Description
afterDelete ( ) Excute after Delete Object
afterSave ( )
beforeSave ( )

Method Details

Permissions() public static method

public static Permissions ( )

Resources() public static method

public static Resources ( )

UpdateTagRelationship() public static method

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

afterDelete() protected method

Excute after Delete Object
protected afterDelete ( )

afterSave() protected method

protected afterSave ( )

attributeLabels() public method

public attributeLabels ( ) : array
return array customized attribute labels (name=>label)

beforeSave() protected method

protected beforeSave ( )

checkTags() public method

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

convertObjectCommentType() public static method

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

convertObjectStatus() public static method

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

convertObjectType() public static method

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

doSearch() public method

Do Search Object based on its status
public doSearch ( type $type ) : CActiveDataProvider
$type type
return CActiveDataProvider

extraAfterDelete() public static method

public static extraAfterDelete ( $object )

extraAfterSave() public static method

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

extraBeforeSave() public static method

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

extraLabel() public static method

public static extraLabel ( )

extraRelationships() public static method

Define Relationships so that its child class can call it
public static extraRelationships ( ) : type
return type

extraRules() public static method

public static extraRules ( )

extraSearch() public static method

public static extraSearch ( $object )

getRelatedContentByTags() public static method

get Related content by Tags
public static getRelatedContentByTags ( type $id, type $max ) : CActiveDataProvider
$id type
$max type
return CActiveDataProvider

getTags() public static method

Get Tags of the Object
public static getTags ( type $object_id ) : type
$object_id type
return type

getTransferHistory() public static method

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

increaseCommentCount() public method

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

loadPublishedModel() public static method

Load Object that has been published and time is <= time()
public static loadPublishedModel ( type $id ) : type
$id type
return type

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : Object
return Object the static model class

normalizeTags() public method

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

relations() public method

public relations ( ) : array
return array relational rules.

rules() public method

public rules ( ) : array
return array validation rules for model attributes.

saveMetaValue() public static method

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 method

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

tableName() public method

public tableName ( ) : string
return string the associated database table name

Property Details

$_oldTags public_oe property

The old Tags
public $_oldTags

$person public_oe property

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