Class Profile
This is the model class for table "x2_profile".
- CComponent
- CModel implements IteratorAggregate, ArrayAccess
- CActiveRecord
- X2ActiveRecord
- Profile
public
|
#
__construct( string $scenario = 'insert', mixed $uid = null, mixed $dbPersistentGridSettings = false )
Constructor. |
public
|
|
public
|
|
public
|
|
public static
|
|
public
string
|
|
public
|
|
public
mixed
|
#
getLanguageName( string $code, array $languageDirs )
Obtain the name of the language given its 2-5 letter code. |
public
array
|
#
behaviors( )
Returns a list of behaviors that this model should behave as. The return value should be an array of behavior configurations indexed by behavior names. Each behavior configuration can be either a string specifying the behavior class or an array of the following structure: 'behaviorName'=>array( 'class'=>'path.to.BehaviorClass', 'property1'=>'value1', 'property2'=>'value2', ) |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
|
|
public
CActiveDataProvider
|
|
public static
|
#
setMiscLayoutSetting( string $settingName, string $settingValue, mixed $suppressEcho = false )
Sets a miscLayoutSetting JSON property to the specified value |
public static
|
|
public static
|
|
public
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
Array
|
|
public static
boolean
|
#
changeWidgetSetting( string $widget, string $setting, variable $value )
Method to change a specific value in a widgets settings |
public static
Object
|
#
getWidgetSetting( string $widget, string $setting = null )
Safely retrieves the settings of a widget, and pulls from the default if the setting does not exist |
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
#
initLayout( )
Initializes widget layout. The layout is a set of associative arrays with the
following format: array ( 'left'=> array() |
public
array
|
|
public
|
|
public
|
|
public
|
|
public static
|
#
renderFullSizeAvatar( integer $id, mixed $dimensionLimit = 95 )
Renders the avatar image with max dimension 95x95 |
public static
|
|
public static
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
mixed
|
#
getDefaultEmailTemplate( string $moduleName )
Get the default email template for the specified module |
public
array
|
|
public
|
|
public
|
getAllErrorMessages(),
getBehaviorRules(),
getFormatter(),
getInputRenderer(),
renderAttribute(),
setFormatter(),
setInputRenderer()
|
__call(),
__get(),
__isset(),
__set(),
__sleep(),
__unset(),
addRelatedRecord(),
afterDelete(),
afterFind(),
afterFindInternal(),
applyScopes(),
attributeNames(),
beforeCount(),
beforeDelete(),
beforeFind(),
beforeFindInternal(),
beforeSave(),
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(),
save(),
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()
|
string |
GUEST_PROFILE_USERNAME
|
'__x2_guest_profile__' |
#
username of guest profile record |
BELONGS_TO,
HAS_MANY,
HAS_ONE,
MANY_MANY,
STAT
|
public
mixed
|
$photo |
|
|
public
string
|
$uid |
|
#
Used in the search scenario to uniquely identify this model. Allows
filters |
public
boolean
|
$dbPersistentGridSettings | false |
#
If true, grid views displaying models of this type will have their filter
and |
$fieldFormatterClass,
$fieldInputRendererClass
|
$db
|
$attributes,
$commandBuilder,
$dbConnection,
$dbCriteria,
$isNewRecord,
$metaData,
$oldPrimaryKey,
$primaryKey,
$tableAlias,
$tableSchema
|
$errors,
$iterator,
$safeAttributeNames,
$scenario,
$validatorList,
$validators
|