Class SiteController
Primary/default controller for the web application.
- CComponent
- CBaseController
- CController
- X2Controller
- x2base
- SiteController
public
array
|
|
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', ) |
protected
boolean
|
#
beforeAction( CAction $action = null )
This method is invoked right before an action is to be executed (after all possible filters.) You may override this method to do last-minute preparation for the action. |
public
array
|
#
accessRules( )
Returns the access rules for this controller. Override this method if you use the filterAccessControl accessControl filter. |
public
array
|
#
actions( )
Returns a list of external action classes. Array keys are action IDs, and array values are the corresponding action class in dot syntax (e.g. 'edit'=>'application.controllers.article.EditArticle') or arrays representing the configuration of the actions, such as the following, return array( 'action1'=>'path.to.Action1Class', 'action2'=>array( 'class'=>'path.to.Action2Class', 'property1'=>'value1', 'property2'=>'value2', ), ); Derived classes may override this method to declare external actions. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
actionDynamicDropdown( mixed $val, mixed $dropdownId, mixed $field = false, mixed $module = null )
|
public
string
|
#
actionMinMaxLeftWidget( string $action, string $widgetName )
Saves left widget minimize setting to user's profile. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
mixed
|
#
getAssociation( string $type, integer $id )
Obtains the record association type for an object, i.e. contacts. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
actionPrintRecord( mixed $modelClass, mixed $id, mixed $pageTitle = '' )
Display a print-friendly version of the x2layout view associated with the specified model class and id. |
public
|
|
public
|
|
public
|
|
public
|
#
createOpportunity( mixed $model, mixed $oldAttributes, mixed $api = 0 )
Creates opportunity record |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
actionResetPassword( type $id = null )
Reset a user's password via a really basic email verification process |
public
|
|
public
|
#
actionDuplicateCheck( mixed $moduleName, mixed $modelName, mixed $id = null, mixed $ref = 'view', mixed $showAll = false )
|
public
|
|
public
|
|
public
|
|
public
|
|
public
Echoes
|
__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()
|
beginCache(),
beginClip(),
beginContent(),
beginWidget(),
createWidget(),
endCache(),
endClip(),
endContent(),
endWidget(),
renderFile(),
renderInternal()
|
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
STATE_INPUT_NAME
|
public
string
|
$modelClass | 'Admin' |
|
public
array
|
$portlets | array() |
$actionMenu,
$breadcrumbs,
$layout,
$leftPortlets,
$leftWidgets,
$menu,
$noBackdrop
|
$defaultAction
|
$action,
$actionParams,
$cachingStack,
$clips,
$id,
$module,
$pageTitle,
$route,
$uniqueId,
$viewPath
|