Class Actions
This is the model class for table "x2_actions".
- CComponent
- CModel implements IteratorAggregate, ArrayAccess
- CActiveRecord
- X2ActiveRecord
- X2Model
- Actions
Located at x2engine/protected/modules/actions/models/Actions.php
public static
|
|
public static
array
|
|
public static
|
|
public
string
|
|
public
array
|
|
public
array
|
|
public
|
|
public
array
|
|
public
|
#
setX2Fields( array & $data, boolean $filter = false, boolean $bypassPermissions = false )
Sets attributes using X2Fields |
public
mixed
|
|
public
array
|
|
public
|
|
public
String
|
#
getAttributeLabel( string $attribute, mixed $short = false )
Returns action type specific attribute labels |
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
|
#
getAttributes( mixed $names = true )
Returns all column attribute values. Note, related objects are not returned. |
public
mixed
|
#
getAttribute( string $name, boolean $renderFlag = false, boolean $makeLinks = false )
Returns the named attribute value. Recognizes linked attributes and looks
them up with |
public
|
|
public
boolean
|
#
beforeSave( )
Fixes up record association, parses dates (since this doesn't use |
public
boolean
|
#
beforeDelete( )
This method is invoked before deleting a record. The default implementation
raises the |
public
CActiveRecord[]
|
#
findAllWithoutActionText( mixed $condition = '', array $params = array() )
Modified findAll function that doesn't attach actionText. See |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
#
createNotifications( mixed $notificationUsers = 'assigned', mixed $createDate = null, mixed $type = 'create' )
Creates a notification for each assignee |
public
|
#
afterCreate( )
Creates an action reminder event. Fires the onAfterCreate event in |
public
|
#
afterDelete( )
Deletes the action reminder event, if any Fires the onAfterDelete event in
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
string
|
#
getShortActionText( integer $length = 30, string $overflow = '...' )
Queries the database for the first characters of an action description |
public
|
|
public
|
|
public static
|
|
public
|
|
public static
|
|
public static
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
CActiveDataProvider
|
#
searchBase( CDbCriteria $criteria, integer $pageSize = null, mixed $showHidden = false )
Base search function, includes Retrieves a list of models based on the
current |
public
|
|
public
|
|
public
|
#
getActionLink( string $linkText )
Returns a link which opens an action view dialog. Event bound in actionFrames.js. |
public static
integer
|
|
public
|
|
public
array
|
|
public
mixed
|
#
getEditableFieldNames( boolean $suppressAttributeLabels = true )
Override parent method so that action type can be set from X2Flow create action |
public static
|
|
public
string
|
|
public
type
|
#
renderAttribute( type $fieldName, type $makeLinks = true, type $textOnly = true, type $encode = true )
Special override that prints priority accordingly |
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
#
getStaticLinkedModels( )
Overrides parent method to add models which can be linked through the association[id|type] fields. |
getAllErrorMessages(),
getBehaviorRules(),
getFormatter(),
getInputRenderer(),
setFormatter(),
setInputRenderer()
|
__call(),
__get(),
__isset(),
__set(),
__sleep(),
__unset(),
addRelatedRecord(),
afterFindInternal(),
applyScopes(),
beforeCount(),
beforeFind(),
beforeFindInternal(),
cache(),
count(),
countByAttributes(),
countBySql(),
defaultScope(),
delete(),
deleteAll(),
deleteAllByAttributes(),
deleteByPk(),
equals(),
exists(),
find(),
findAllByAttributes(),
findAllByPk(),
findAllBySql(),
findByPk(),
findBySql(),
getActiveFinder(),
getActiveRelation(),
getCommandBuilder(),
getDbConnection(),
getDbCriteria(),
getIsNewRecord(),
getMetaData(),
getOldPrimaryKey(),
getPrimaryKey(),
getRelated(),
getTableAlias(),
getTableSchema(),
hasAttribute(),
hasRelated(),
init(),
instantiate(),
offsetExists(),
onAfterDelete(),
onAfterFind(),
onAfterSave(),
onBeforeCount(),
onBeforeDelete(),
onBeforeFind(),
onBeforeSave(),
populateRecord(),
populateRecords(),
primaryKey(),
refresh(),
refreshMetaData(),
resetScope(),
saveAttributes(),
saveCounters(),
scopes(),
setAttribute(),
setDbCriteria(),
setIsNewRecord(),
setOldPrimaryKey(),
setPrimaryKey(),
setTableAlias(),
together(),
update(),
updateAll(),
updateByPk(),
updateCounters(),
with()
|
addError(),
addErrors(),
afterConstruct(),
afterValidate(),
beforeValidate(),
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()
|
integer |
ACTION_INDEX_PAGE_SIZE
|
20 |
#
If we want this to be user configurable, then the height of the list view items container needs to be set dynamically. Otherwise, infinity scrolling will break. |
integer |
COLORS_DROPDOWN_ID
|
123 |
|
string |
ASSOCIATION_TYPE_MULTI
|
'__multiple__' |
#
Setting associationType to this implies that the action is associated via the x2_action_to_record table |
BELONGS_TO,
HAS_MANY,
HAS_ONE,
MANY_MANY,
STAT
|
public
boolean
|
$skipActionTimers | false |
|
public
true
|
$supportsWorkflow | false |
#
if this model can have workflows associated with it, false otherwise |
public static
type
|
$emailTypes | array(
'email', 'emailFrom','emailOpened','email_invoice', 'email_quote') |
#
Types of actions that should be treated as emails |
public
mixed
|
$verifyCode |
|
|
public
string
|
$actionDescriptionTemp | '' |
$fieldInputRendererClass
|
$db
|
$fieldPermissions,
$isExemptFromFieldLevelPermissions,
$myModelName,
$readableAttributeNames,
$relatedX2Models
|
$attributes,
$commandBuilder,
$dbConnection,
$dbCriteria,
$isNewRecord,
$metaData,
$oldPrimaryKey,
$primaryKey,
$tableAlias,
$tableSchema
|
$errors,
$iterator,
$safeAttributeNames,
$scenario,
$validatorList,
$validators
|