Class Events
This is the model class for table "x2_events".
- CComponent
- CModel implements IteratorAggregate, ArrayAccess
- CActiveRecord
- X2ActiveRecord
- Events
public static
|
|
public
string
|
|
public
array
|
#
attributeNames( )
Returns the list of all attribute names of the model. This would return all column names of the table associated with this AR class. |
public
array
|
|
public
array
|
#
scopes( )
Returns the declaration of named scopes. A named scope represents a query criteria that can be chained together with other named scopes and applied to a query. This method should be overridden by child classes to declare named scopes for the particular AR classes. For example, the following code declares two named scopes: 'recently' and 'published'. return array( 'published'=>array( 'condition'=>'status=1', ), 'recently'=>array( 'order'=>'create_time DESC', 'limit'=>5, ), ); If the above scopes are declared in a 'Post' model, we can perform the following queries: $posts=Post::model()->published()->findAll(); $posts=Post::model()->published()->recently()->findAll(); $posts=Post::model()->published()->with('comments')->findAll(); Note that the last query is a relational query. |
public
array
|
|
public
boolean
|
|
public
|
|
public
|
|
public static
string
|
|
public
|
|
public static
|
|
public static
|
#
deleteOldEvents( )
Delete expired events (expiration defined by "Event Deletion Time" admin setting |
public
boolean
|
|
public
CDbCriteria
|
|
public
|
|
public static
array
|
#
getFilteredEventsDataProvider(
Returns events filtered with feed filters. Saves filters in session. |
public static
|
|
public static
|
#
generateFeedEmail( mixed $filters, mixed $userId, mixed $range, mixed $limit, mixed $eventId, mixed $deleteKey )
|
public
|
|
protected
boolean
|
#
beforeSave( )
This method is invoked before saving a record (after validation, if any). The
default implementation raises the |
protected
boolean
|
#
beforeDelete( )
This method is invoked before deleting a record. The default implementation
raises the |
public
array
|
getAllErrorMessages(),
getBehaviorRules(),
getFormatter(),
getInputRenderer(),
getName(),
renderAttribute(),
setFormatter(),
setInputRenderer()
|
__call(),
__construct(),
__get(),
__isset(),
__set(),
__sleep(),
__unset(),
addRelatedRecord(),
afterDelete(),
afterFind(),
afterFindInternal(),
afterSave(),
applyScopes(),
beforeCount(),
beforeFind(),
beforeFindInternal(),
cache(),
count(),
countByAttributes(),
countBySql(),
defaultScope(),
delete(),
deleteAll(),
deleteAllByAttributes(),
deleteByPk(),
equals(),
exists(),
find(),
findAll(),
findAllByAttributes(),
findAllByPk(),
findAllBySql(),
findByAttributes(),
findByPk(),
findBySql(),
getActiveFinder(),
getActiveRelation(),
getAttribute(),
getAttributeLabel(),
getAttributes(),
getCommandBuilder(),
getDbConnection(),
getDbCriteria(),
getIsNewRecord(),
getMetaData(),
getOldPrimaryKey(),
getPrimaryKey(),
getRelated(),
getTableAlias(),
getTableSchema(),
hasAttribute(),
hasRelated(),
init(),
insert(),
instantiate(),
offsetExists(),
onAfterDelete(),
onAfterFind(),
onAfterSave(),
onBeforeCount(),
onBeforeDelete(),
onBeforeFind(),
onBeforeSave(),
populateRecord(),
populateRecords(),
primaryKey(),
query(),
refresh(),
refreshMetaData(),
resetScope(),
saveAttributes(),
saveCounters(),
setAttribute(),
setDbCriteria(),
setIsNewRecord(),
setOldPrimaryKey(),
setPrimaryKey(),
setTableAlias(),
together(),
update(),
updateAll(),
updateByPk(),
updateCounters(),
with()
|
addError(),
addErrors(),
afterConstruct(),
afterValidate(),
beforeValidate(),
behaviors(),
clearErrors(),
createValidators(),
generateAttributeLabel(),
getError(),
getErrors(),
getIterator(),
getSafeAttributeNames(),
getScenario(),
getValidatorList(),
getValidators(),
hasErrors(),
isAttributeRequired(),
isAttributeSafe(),
offsetGet(),
offsetSet(),
offsetUnset(),
onAfterConstruct(),
onAfterValidate(),
onBeforeValidate(),
onUnsafeAttribute(),
setAttributes(),
setScenario(),
unsetAttributes(),
validate()
|
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
BELONGS_TO,
HAS_MANY,
HAS_ONE,
MANY_MANY,
STAT
|
public
mixed
|
$photo |
|
|
public static
array
|
$eventLabels | array(
'feed' => 'Social Posts',
'comment' => 'Comment',
'record_create' => 'Records Created',
'record_deleted' => 'Records Deleted',
'action_reminder' => 'Action Reminders',
'action_complete' => 'Actions Completed',
'calendar_event' => 'Calendar Events',
'case_escalated' => 'Cases Escalated',
'email_opened' => 'Emails Opened',
'email_sent' => 'Emails Sent',
'notif' => 'Notifications',
'weblead_create' => 'Webleads Created',
'web_activity' => 'Web Activity',
'workflow_complete' => 'Process Complete',
'workflow_revert' => 'Process Reverted',
'workflow_start' => 'Process Started',
'doc_update' => 'Doc Updates',
'email_from' => 'Email Received',
'media' => 'Media',
'voip_call' => 'VOIP Call',
'topic_reply' => 'Topic Replies',
) |
$fieldFormatterClass,
$fieldInputRendererClass
|
$db
|
$attributes,
$commandBuilder,
$dbConnection,
$dbCriteria,
$isNewRecord,
$metaData,
$oldPrimaryKey,
$primaryKey,
$tableAlias,
$tableSchema
|
$errors,
$iterator,
$safeAttributeNames,
$scenario,
$validatorList,
$validators
|