PHP Класс EventType

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
attributeLabels ( ) : array
getActiveList ( ) * get list data of all the event types that are currently enabled on the instance
getAllElementTypes ( ) : BaseEventTypeElement[] Get all the element types that are defined for this event type.
getApi ( ) : mixed Return the module api for this event type.
getDefaultElements ( )
getDisabled ( ) : boolean Check if the event type is disabled.
getDisabled_detail ( ) : string String to display detailed information about a disabled event type (note this method assumes the event type is disabled, this should be checked with the disabled attribute).
getDisabled_title ( ) : string string to display for the event type when it's disabled (note this method assumes the event type is disabled, this should be checked with the disabled attribute).
getEventTypeInUseList ( ) : array get list data of all the event types for which >0 events exist.
getEventTypeModules ( ) : EventType[] Get all the event types for the modules that are currently enabled (and aren't legacy).
getEvent_group ( ) : CActiveRecord Get the EventGroup for the module of the event type (as defined by the second camelcase section of the module name).
getParentEventTypes ( ) : EventType[] Returns the parent(s) of this event type.
getSpecialty ( ) : Specialty Get the Specialty for this event type (as defined by the first camelcase section of the module name).
model ( $className = __CLASS__ ) : EventType Returns the static model of the specified AR class.
registerShortCode ( $code, $method, boolean $description = false ) Register a short code for this event type.
relations ( ) : array
rules ( ) : array
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
tableName ( ) : string

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

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

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

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

* get list data of all the event types that are currently enabled on the instance
public getActiveList ( )

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

Get all the element types that are defined for this event type.
public getAllElementTypes ( ) : BaseEventTypeElement[]
Результат BaseEventTypeElement[]

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

Return the module api for this event type.
public getApi ( ) : mixed
Результат mixed

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

public getDefaultElements ( )

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

Check if the event type is disabled.
public getDisabled ( ) : boolean
Результат boolean

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

String to display detailed information about a disabled event type (note this method assumes the event type is disabled, this should be checked with the disabled attribute).
public getDisabled_detail ( ) : string
Результат string

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

string to display for the event type when it's disabled (note this method assumes the event type is disabled, this should be checked with the disabled attribute).
public getDisabled_title ( ) : string
Результат string

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

get list data of all the event types for which >0 events exist.
public getEventTypeInUseList ( ) : array
Результат array

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

Get all the event types for the modules that are currently enabled (and aren't legacy).
public getEventTypeModules ( ) : EventType[]
Результат EventType[]

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

Get the EventGroup for the module of the event type (as defined by the second camelcase section of the module name).
public getEvent_group ( ) : CActiveRecord
Результат CActiveRecord

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

Returns the parent(s) of this event type.
public getParentEventTypes ( ) : EventType[]
Результат EventType[]

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

Get the Specialty for this event type (as defined by the first camelcase section of the module name).
public getSpecialty ( ) : Specialty
Результат Specialty

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

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

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

Register a short code for this event type.
public registerShortCode ( $code, $method, boolean $description = false )
$code
$method
$description boolean

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

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

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

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

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

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