Class AppController
Controller base class for backends+frontends
- Controller
-
AppController
Direct known subclasses
AuthenticationsController,
FilesController,
FrontendController,
HomeController,
ModulesController,
PagesController,
StreamsController
Indirect known subclasses
AddressbookController,
AdminController,
NewsletterController,
StatisticsController,
TagsController,
TranslationsController,
UsersController,
WebmarksController,
ApiBaseController,
AreasController,
CommentsController,
DocumentsController,
EventsController,
GalleriesController,
MultimediaController,
NewsController
Methods summary
public
|
#
__construct( )
Constructor If debugKit is enabled in configuration and it's found in plugins paths then add it to self::componenets array |
public static
|
|
public static
|
|
public
|
#
handleError( string $eventMsg, string $userMsg, string|null $errTrace = null, array|null $usrMsgParams = array() )
Handle error utility |
public
|
|
protected
|
|
protected
|
#
beforeCheckLogin( )
convienience method to do operations before login check for example you could set AppController::skipCheck to true avoiding user session check |
protected
|
|
protected
|
|
final public
|
|
protected
|
|
final public
|
#
beforeRender( )
Redirect and class method result. If form contains: $this->data['OK'] or $this->data['ERROR'] redirect to thes values (on OK, on ERROR) |
private
|
|
final public
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
#
userErrorMessage( string $msg, $layout = 'message', $params = array('class' => 'error') )
User error message (will appear in messages div) |
protected
|
#
userWarnMessage( string $msg, $layout = 'message', $params = array('class' => 'warn') )
User warning message (will appear in messages div) |
protected
|
#
userInfoMessage( string $msg, $layout = 'message', $params = array('class' => 'info') )
User info message (will appear in messages div) |
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
#
setup_args( )
Function arguments setup. If variable is null, use $this->params[url]. Parameters: 0..N array: 0 var name 1 type [string] (for the function settype) 2 reference to the variable to modify |
protected
|
|
protected
|
|
protected
array
|
#
modelBindings( Model $modelObj, string $level = 'default' )
set model bindings and return the array used |
protected
array
|
#
setObjectBindings( string $modelType, string $level = 'frontend' )
set model bindings for BEdita object |
protected
string
|
|
protected
integer
|
|
protected
integer
|
|
public
array
|
#
objectRelationArray( array $objectArray, array $status = array(), array $options = array() )
Reorder content objects relations in array where keys are relation names |
protected
array
|
#
setupAnnotations( array & $objectArray, array $status = array() )
Setup object array with annotations-type details |
protected
|
|
protected
|
#
prepareRelationsToSave( )
Prepare |
protected
|
|
protected
string
|
|
protected
|
#
viewRevision(
View revision data for a specific object and revision number: * all data as in revision in $revision array * array of changed fields in $diff |
public
|
|
public
|
Constants summary
string |
OK
Result types for methods |
#
'OK'
|
string |
ERROR
|
#
'ERROR'
|
string |
VIEW_FWD
|
#
'view://'
|
Properties summary
public
array
|
$helpers
|
#
array('Javascript', 'Html', 'BeForm', 'Beurl', 'Tr', 'Session', 'Perms', 'BeEmbedMedia', 'SessionFilter', 'Paginator')
|
public
array
|
$components
|
#
array(
'BeAuth',
'BeTree',
'BeCustomProperty',
'Transaction',
'Cookie',
'Session',
'RequestHandler',
'ResponseHandler',
'BeHash',
'SessionFilter'
)
|
public
array
|
$uses
|
#
array('EventLog')
|
public
string
|
$view
|
#
'Smarty'
|
public
string
|
$ext
|
#
'.tpl'
|
protected
|
$moduleName
|
#
NULL
|
protected
|
$moduleList
|
#
NULL
|
protected
|
$modulePerms
|
#
NULL
|
public
string
|
$result
|
#
'OK'
|
protected
boolean
|
$skipCheck
|
#
false
|
protected static
|
$current
|
#
NULL
|
protected
|
$currLang
|
#
NULL
|
protected
|
$currLocale
|
#
NULL
|
protected
boolean
|
$profiling
|
#
false
|
protected
array
|
$modelBindings
Specific per-controller model bindings |
#
array()
|
protected
string
|
$fullBaseUrl
Full url prefix |
#
''
|
protected
array,
|
$historyItem
fields to save in history table |
#
array()
|
public
|
$BeObjectCache
If object cache is activate by objectCakeCache config param it contains instance of BeObjectCache class in libs |
#
null
|
protected
array
|
$objectData
Internal array to store and reuse object data like object_type_id or id from nickname Avoid multiple load from database or cache of same data |
#
array(
'nicknames' => array(),
'typeIds' => array(),
)
|