Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • None
  • system
    • base
    • caching
    • console
    • db
      • ar
      • schema
    • validators
    • web
      • actions
      • auth
      • helpers
      • widgets
        • captcha
        • pagers
  • zii
    • widgets
      • grid

Classes

  • AdminController
  • Api2Controller
  • ApiController
  • BugReportsController
  • CommonSiteControllerBehavior
  • ProfileController
  • RelationshipsController
  • SearchController
  • SiteController
  • StudioController
  • TemplatesController
  • TopicsController
  • x2base
  • X2Controller
  • Overview
  • Package
  • Class
  • Tree

Class ProfileController

User profiles controller

CComponent
Extended by CBaseController
Extended by CController
Extended by X2Controller
Extended by x2base
Extended by ProfileController
Package: application\controllers
Located at x2engine/protected/controllers/ProfileController.php
Methods summary
public array
# accessRules( )

Specifies the access control rules. This method is used by the 'accessControl' filter.

Specifies the access control rules. This method is used by the 'accessControl' filter.

Returns

array
access control rules

Overrides

CController::accessRules()
public array
# behaviors( )

Returns a list of behaviors that this controller 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',
)

Returns a list of behaviors that this controller 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',
)

Note, the behavior classes must implement IBehavior or extend from CBehavior. Behaviors declared in this method will be attached to the controller when it is instantiated.

For more details about behaviors, see CComponent.

Returns

array
the behavior configurations (behavior name=>behavior configuration)

Overrides

x2base::behaviors()
public array
# filters( )

Returns

array
action filters

Overrides

x2base::filters()
public
# actionHideTag( mixed $tag )
public
# actionUnhideTag( mixed $tag )
public
# actionUpdatePost( mixed $id, mixed $profileId )
public
# actionDeletePost( integer $id, mixed $profileId )

Deletes a post in the public feed for the current user.

Deletes a post in the public feed for the current user.

Parameters

$id
integer
$id
$profileId
public
# actionSaveMiscLayoutSetting( )

Saves settings as a property of the miscLayoutSettings JSON field of the profile model. This should be used to make miscellaneous layout settings persistent. POST Parameters:
settingName - string - must be an existing property name of the JSON field
settingVal - mixed - the value to which the JSON field property will get set

Saves settings as a property of the miscLayoutSettings JSON field of the profile model. This should be used to make miscellaneous layout settings persistent. POST Parameters: settingName - string - must be an existing property name of the JSON field settingVal - mixed - the value to which the JSON field property will get set

public
# actionLoadTheme( mixed $themeId )
public
# canEditTheme( mixed $themeName )
public
# actionDeleteTheme( mixed $themeName )
public
# actionPreviewTheme( mixed $themeName )
public
# actionSaveTheme( )

Overwrite an existing theme that the user uploaded.

Overwrite an existing theme that the user uploaded.

public
# actionCreateTheme( mixed $themeAttributes )

Create a new theme record in the Media table, prevent duplicate filenames. If theme cannot be saved, error message object is returned.

Create a new theme record in the Media table, prevent duplicate filenames. If theme cannot be saved, error message object is returned.

public
# actionSettings( )

Display/set user profile settings.

Display/set user profile settings.

public
# actionManageCredentials( )
public
# actionCreateUpdateCredentials( type $id = null, type $class = null )

Basic CRUD for application credentials

Basic CRUD for application credentials

Parameters

$id
type
$id
$class
type
$class embedded model class name

Throws

CHttpException
public
# actionVerifyCredentials( )

Action to be called via ajax to verify authentication to the SMTP server

Action to be called via ajax to verify authentication to the SMTP server

public
# actionSetDefaultCredentials( type $id )

Make a credentials record default for the active user.

Make a credentials record default for the active user.

Parameters

$id
type
$id

Throws

CHttpException
public
# actionDeleteCredentials( mixed $id )
public
# actionUpdate( integer $id )

Updates a particular model.

Updates a particular model.

If update is successful, the browser will be redirected to the 'view' page.

Parameters

$id
integer
$id the ID of the model to be updated
public
# actionChangePassword( integer $id )

Changes the password for the user given by its record ID number.

Changes the password for the user given by its record ID number.

Parameters

$id
integer
$id ID of the user to be updated.
public
# actionUploadPhoto( integer $id )

Upload a profile photo.

Upload a profile photo.

Parameters

$id
integer
$id ID of the user in question.
public
# actionDeleteBackground( type $id )

Delete a background image.

Delete a background image.

Parameters

$id
type
$id
public
# actionDeleteSound( mixed $id, mixed $sound )
public
# actionAddPost( integer $id, mixed $redirect )

Add a new post to the social feed.

Add a new post to the social feed.

Parameters

$id
integer
$id ID of the user.
$redirect
public
# actionIndex( )

Redirect to current user's profile page

Redirect to current user's profile page

public
# actionProfiles( )

Lists users profiles.

Lists users profiles.

public
# actionSetResultsPerPage( integer $results )

Sets the the option for the number of results per page.

Sets the the option for the number of results per page.

Parameters

$results
integer
$results
public
# actionResetWidgets( mixed $id )
public
# actionCreateProfileWidget( )
public
# actionCreateChartingWidget( )
public
# actionDeleteSortableWidget( )
public static
# getModelFromPost( )
public
# actionSetWidgetOrder( )

Called to save profile widget sort order Expected POST data:
widgetOrder - an array of strings, each corresponding to a widget class name Echoes:
'failure' if the request action fails, 'success' otherwise

Called to save profile widget sort order Expected POST data: widgetOrder - an array of strings, each corresponding to a widget class name Echoes: 'failure' if the request action fails, 'success' otherwise

public
# actionShowWidgetContents( )

Called to retieve widget contents Expected POST data:
widgetClass - the name of the widget class Echoes:
'failure' if the request action fails, an HTML string containing the widget contents
otherwise

Called to retieve widget contents Expected POST data: widgetClass - the name of the widget class Echoes: 'failure' if the request action fails, an HTML string containing the widget contents otherwise

public
# actionGetWidgetContents( )

A wrapper around actionShowWidgetContents () which allows widget contents to be requested with a GET request. This is used for gridview widgets.

A wrapper around actionShowWidgetContents () which allows widget contents to be requested with a GET request. This is used for gridview widgets.

public
# actionSetWidgetSetting( )

Called to save settings for a particular profile widget Expected POST data:
widgetClass - the name of the widget class
key - the widget settings JSON property
value - the value which the JSON property will be set to Echoes:
'failure' if the request action fails, 'success' otherwise

Called to save settings for a particular profile widget Expected POST data: widgetClass - the name of the widget class key - the widget settings JSON property value - the value which the JSON property will be set to Echoes: 'failure' if the request action fails, 'success' otherwise

public
# getActivityFeedViewParams( mixed $id, mixed $publicProfile )
public
# actionActivity( )
public
# actionView( mixed $id, mixed $publicProfile = false )

Default landing page action for the web application.

Default landing page action for the web application.

Displays a feed of new records that have been created since the last login of the current web user.

public
# actionGetEvents( mixed $lastEventId, mixed $lastTimestamp, mixed $myProfileId, mixed $profileId )
public
# actionGetEventsBetween( mixed $startTimestamp, mixed $endTimestamp, mixed $widgetType )
public
# actionLoadComments( mixed $id, mixed $profileId )
public
# actionLikePost( mixed $id )
public
# actionLoadLikeHistory( mixed $id )
public
# actionFlagPost( )
public
# actionBroadcastEvent( mixed $id, mixed $email, mixed $notify, mixed $users )
public
# actionStickyPost( mixed $id )
public
# actionMinimizePosts( )
public
# actionCreateChartSetting( )

Create a new chart setting record in the chart settings table. Called via ajax from the chart setting creation dialog.

Create a new chart setting record in the chart settings table. Called via ajax from the chart setting creation dialog.

public
# actionDeleteChartSetting( mixed $chartSettingName )

Delete a chart setting record from the chart settings table. Called via ajax from the feed chart UI.

Delete a chart setting record from the chart settings table. Called via ajax from the feed chart UI.

public
# actionPublishPost( )
public
# actionAddComment( )
public
# actionToggleFeedFilters( mixed $filter )
public
# actionToggleFeedControls( )
public
# actionAjaxSaveDefaultEmailTemplate( string $moduleName, integer $templateId )

Saves a default template for the specified module into the users profile settings

Saves a default template for the specified module into the users profile settings

Parameters

$moduleName
string
$moduleName
$templateId
integer
$templateId
public
# insertActionMenu( )
public
# actionResetTours( )

Action to reset all tip and show them again

Action to reset all tip and show them again

public
# actionDisableTours( )

Action to reset all tip and show them again

Action to reset all tip and show them again

Methods inherited from x2base
actionDeleteNote(), actionGetX2ModelInput(), actionQuickView(), actionSearch(), actions(), admin(), ajaxResponse(), appLockout(), beforeAction(), checkPermissions(), cleanUpTags(), convertUrls(), create(), decodeQuotes(), denied(), encodeQuotes(), filterSetPortlets(), getCurrentWorkflow(), getDetailView(), getHistory(), getModelFromTypeAndId(), getModelsFromTypeAndId(), getModuleObj(), getPageTitle(), getPhpMailer(), index(), mailingListToString(), parseEmailTo(), performAjaxValidation(), prepareMenu(), render(), renderLayout(), renderPartialAjax(), sendUserEmail(), setPageTitle(), throwException(), update(), view(), widget()
Methods inherited from X2Controller
badRequest(), badRequestException(), getBehaviorActions(), isAjaxRequest(), redirectToLogin(), resolveViewFile(), runBehaviorBeforeActionHandlers(), setFileFields(), validateMobileRequest()
Methods inherited from CController
__construct(), afterAction(), afterRender(), beforeRender(), clearPageStates(), createAbsoluteUrl(), createAction(), createActionFromMap(), createUrl(), filterAccessControl(), filterAjaxOnly(), filterPostOnly(), forward(), getAction(), getActionParams(), getCachingStack(), getClips(), getId(), getLayoutFile(), getModule(), getPageState(), getRoute(), getUniqueId(), getViewFile(), getViewPath(), init(), invalidActionParams(), isCachingStackEmpty(), loadPageStates(), missingAction(), processDynamicOutput(), processOutput(), recordCachingAction(), redirect(), refresh(), renderClip(), renderDynamic(), renderDynamicInternal(), renderPartial(), renderText(), replaceDynamicOutput(), run(), runAction(), runActionWithFilters(), savePageStates(), setAction(), setPageState()
Methods inherited from CBaseController
beginCache(), beginClip(), beginContent(), beginWidget(), createWidget(), endCache(), endClip(), endContent(), endWidget(), renderFile(), renderInternal()
Methods inherited from CComponent
__call(), __get(), __isset(), __set(), __unset(), asa(), attachBehavior(), attachBehaviors(), attachEventHandler(), canGetProperty(), canSetProperty(), detachBehavior(), detachBehaviors(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), getEventHandlers(), hasEvent(), hasEventHandler(), hasProperty(), raiseEvent()
Constants inherited from CController
STATE_INPUT_NAME
Properties summary
public string $modelClass 'Profile'
#

The class of the model most often handled by this controller.

The class of the model most often handled by this controller.

Properties inherited from x2base
$actionMenu, $breadcrumbs, $layout, $leftPortlets, $leftWidgets, $menu, $noBackdrop, $portlets
Properties inherited from CController
$defaultAction
Magic properties inherited from CController
$action, $actionParams, $cachingStack, $clips, $id, $module, $pageTitle, $route, $uniqueId, $viewPath
X2CRM Documentation API documentation generated by ApiGen 2.8.0