Class MobileController
- CComponent
- CBaseController
- CController
- X2Controller
- MobileController
Located at x2engine/protected/modules/mobile/controllers/MobileController.php
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', ) |
public
|
#
filterAccessControl( CFilterChain $filterChain )
override to allow user loginUrl to be reset for mobile |
public
array
|
|
public
array
|
#
accessRules( )
Specifies the access control rules. This method is used by the '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
|
#
actionPing( mixed $version )
Used by PhoneGap mobile app to validate installation URL and ensure mutual app compatibility |
public
|
|
public
|
#
actionIndex( )
This is the default 'index' action that is invoked when an action is not explicitly requested by users. |
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
__construct(),
afterAction(),
afterRender(),
beforeRender(),
clearPageStates(),
createAbsoluteUrl(),
createAction(),
createActionFromMap(),
createUrl(),
filterAjaxOnly(),
filterPostOnly(),
forward(),
getAction(),
getActionParams(),
getCachingStack(),
getClips(),
getId(),
getLayoutFile(),
getModule(),
getPageState(),
getPageTitle(),
getRoute(),
getUniqueId(),
getViewFile(),
getViewPath(),
init(),
invalidActionParams(),
isCachingStackEmpty(),
loadPageStates(),
missingAction(),
processDynamicOutput(),
processOutput(),
recordCachingAction(),
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()
|
string |
APP_VERSION_COOKIE_NAME
|
'phoneGapAppVersionNumber' |
STATE_INPUT_NAME
|
public
mixed
|
$layout | 'application.modules.mobile.views.layouts.main' |
#
the name of the layout to be applied to this controller's views. Defaults to null, meaning the CWebApplication::layout application layout is used. If it is false, no layout will be applied. The CWebModule::layout module layout will be used if the controller belongs to a module and this layout property is null. |
public
array
|
$menu | array() |
#
context menu items. This property will be assigned to CMenu::items. |
public
array
|
$breadcrumbs | array() |
#
the breadcrumbs of the current page. The value of this property will be assigned to CBreadcrumbs::links. Please refer to CBreadcrumbs::links for more details on how to specify this property. |
public
string
|
$modelClass | 'Admin' |
$defaultAction
|
$action,
$actionParams,
$cachingStack,
$clips,
$id,
$module,
$pageTitle,
$route,
$uniqueId,
$viewPath
|