Class Media
This is the model class for table "x2_media".
- CComponent
- CModel implements IteratorAggregate, ArrayAccess
- CActiveRecord
- X2ActiveRecord
- X2Model
- Media
Package: application\modules\media\models
Located at x2engine/protected/modules/media/models/Media.php
Located at x2engine/protected/modules/media/models/Media.php
public static
|
|
public static
|
|
public
string
|
|
public
|
#
afterDelete( )
Runs when a model is deleted. Clears any entries in x2_phone_numbers. Fires onAfterDelete event. |
public
|
|
public
boolean
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
CActiveDataProvider
|
|
public
|
|
public static
true
|
#
isImageExt( mixed $filename )
Return true if $filename has an image extension. Image extensions include: jpg, gif, png, bmp, jpeg, jpe |
public
|
|
public
|
|
public
string
|
#
renderAttribute( string $fieldName, boolean $makeLinks = true, boolean $textOnly = true, mixed $encode = true )
Renders an attribute of the model based on its field type |
public
String|null
|
|
public
type
|
|
public
type
|
|
public
type
|
|
public
|
|
public
type
|
|
public static
|
|
public
type
|
|
public static
|
|
public
|
|
public static
|
|
public
|
|
public
|
|
public static
|
|
public static
|
|
public static
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public static
string
|
#
attachmentActionText( string $actionDescription, boolean $makeLink = false, boolean $makeImage = false )
Generates a description message with a link and optional preview image for media items. |
getAllErrorMessages(),
getBehaviorRules(),
getFormatter(),
getInputRenderer(),
getName(),
setFormatter(),
setInputRenderer()
|
__call(),
__get(),
__isset(),
__set(),
__sleep(),
__unset(),
addRelatedRecord(),
afterFindInternal(),
applyScopes(),
attributeNames(),
beforeCount(),
beforeDelete(),
beforeFind(),
beforeFindInternal(),
cache(),
count(),
countByAttributes(),
countBySql(),
defaultScope(),
delete(),
deleteAll(),
deleteAllByAttributes(),
deleteByPk(),
equals(),
exists(),
find(),
findAllByAttributes(),
findAllByPk(),
findAllBySql(),
findByPk(),
findBySql(),
getActiveFinder(),
getActiveRelation(),
getAttributes(),
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()
|
BELONGS_TO,
HAS_MANY,
HAS_ONE,
MANY_MANY,
STAT
|
public
true
|
$supportsWorkflow | false |
#
if this model can have workflows associated with it, false otherwise |
public
mixed
|
$_path |
|
|
public
mixed
|
$_url |
|
|
protected
string
|
$fieldFormatterClass | 'MediaFieldFormatter' |
$fieldInputRendererClass
|
$db
|
public
integer
|
$id | |
public
string
|
$associationType | |
public
integer
|
$associationId | |
public
string
|
$fileName | |
public
string
|
$uploadedBy | |
public
string
|
$createDate |
$fieldPermissions,
$isExemptFromFieldLevelPermissions,
$myModelName,
$readableAttributeNames,
$relatedX2Models
|
$attributes,
$commandBuilder,
$dbConnection,
$dbCriteria,
$isNewRecord,
$metaData,
$oldPrimaryKey,
$primaryKey,
$tableAlias,
$tableSchema
|
$errors,
$iterator,
$safeAttributeNames,
$scenario,
$validatorList,
$validators
|