Class X2Controller
Base generic controller class
- CComponent
- CBaseController
- CController
- X2Controller
Indirect known subclasses
AccountsController, ActionsController, OpportunitiesController, ProductsController, ProfileController, QuotesController, RelationshipsController, SearchController, ServicesController, SiteController, StudioController, TemplatesController, ApiController, TopicsController, UsersController, WorkflowController, X2LeadsController, BugReportsController, CalendarController, ContactsController, DocsController, GroupsController, MarketingController, MediaControllerPackage: application\controllers
Located at x2engine/protected/controllers/X2Controller.php
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
mixed
|
#
resolveViewFile( string $viewName, string $viewPath, string $basePath, string $moduleViewPath = null )
Finds a view file based on its name. Overrides CBaseController::resolveViewFile to check if the requested view has a version in /custom, and uses that if it exists. |
public
|
|
public
|
|
public
|
#
setFileFields( boolean $model, mixed $merge = false )
Set fields of model using uploaded files in super global |
protected
CHttpException
|
|
public
|
#
isAjaxRequest( )
More reliable alternative to CHttpRequest::getIsAjaxRequest in cases where 'x2ajax' or 'ajax' parameters are being used. See http://www.yiiframework.com/forum/index.php?/topic/4945-yiiapp-request-isajaxrequest/ |
protected
|
|
protected
boolean
|
#
beforeAction( CAction $action )
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. |
protected
|
|
protected
|
__construct(),
accessRules(),
afterAction(),
afterRender(),
beforeRender(),
behaviors(),
clearPageStates(),
createAbsoluteUrl(),
createAction(),
createActionFromMap(),
createUrl(),
filterAccessControl(),
filterAjaxOnly(),
filterPostOnly(),
filters(),
forward(),
getAction(),
getActionParams(),
getCachingStack(),
getClips(),
getId(),
getLayoutFile(),
getModule(),
getPageState(),
getPageTitle(),
getRoute(),
getUniqueId(),
getViewFile(),
getViewPath(),
init(),
invalidActionParams(),
isCachingStackEmpty(),
loadPageStates(),
missingAction(),
processDynamicOutput(),
processOutput(),
recordCachingAction(),
redirect(),
refresh(),
render(),
renderClip(),
renderDynamic(),
renderDynamicInternal(),
renderPartial(),
renderText(),
replaceDynamicOutput(),
run(),
runAction(),
runActionWithFilters(),
savePageStates(),
setAction(),
setPageState(),
setPageTitle()
|
beginCache(),
beginClip(),
beginContent(),
beginWidget(),
createWidget(),
endCache(),
endClip(),
endContent(),
endWidget(),
renderFile(),
renderInternal(),
widget()
|
__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
|
$defaultAction,
$layout
|
$action,
$actionParams,
$cachingStack,
$clips,
$id,
$module,
$pageTitle,
$route,
$uniqueId,
$viewPath
|