PHP Class Object, gxc-cms

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

Méthodes publiques

Свойство Type Description
$_oldTags The old Tags
$person This is to check the person the Object will be transferd to

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
afterDelete ( ) Excute after Delete Object
afterSave ( )
beforeSave ( )

Method Details

Permissions() public static méthode

public static Permissions ( )

Resources() public static méthode

public static Resources ( )

UpdateTagRelationship() public static méthode

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

afterDelete() protected méthode

Excute after Delete Object
protected afterDelete ( )

afterSave() protected méthode

protected afterSave ( )

attributeLabels() public méthode

public attributeLabels ( ) : array
Résultat array customized attribute labels (name=>label)

beforeSave() protected méthode

protected beforeSave ( )

checkTags() public méthode

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

convertObjectCommentType() public static méthode

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

convertObjectStatus() public static méthode

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

convertObjectType() public static méthode

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

doSearch() public méthode

Do Search Object based on its status
public doSearch ( type $type ) : CActiveDataProvider
$type type
Résultat CActiveDataProvider

extraAfterDelete() public static méthode

public static extraAfterDelete ( $object )

extraAfterSave() public static méthode

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

extraBeforeSave() public static méthode

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

extraLabel() public static méthode

public static extraLabel ( )

extraRelationships() public static méthode

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

extraRules() public static méthode

public static extraRules ( )

extraSearch() public static méthode

public static extraSearch ( $object )

getRelatedContentByTags() public static méthode

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

getTags() public static méthode

Get Tags of the Object
public static getTags ( type $object_id ) : type
$object_id type
Résultat type

getTransferHistory() public static méthode

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

increaseCommentCount() public méthode

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

loadPublishedModel() public static méthode

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

model() public static méthode

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

normalizeTags() public méthode

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

relations() public méthode

public relations ( ) : array
Résultat array relational rules.

rules() public méthode

public rules ( ) : array
Résultat array validation rules for model attributes.

saveMetaValue() public static méthode

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 méthode

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

tableName() public méthode

public tableName ( ) : string
Résultat 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