PHP 클래스 Object, gxc-cms

저자: Беляев Дмитрий ([email protected])
상속: extends Adapter
파일 보기 프로젝트 열기: nganhtuan63/gxc-cms 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$_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