wCMF  3.6
 All Classes Namespaces Files Functions Variables Groups Pages
DisplayController Class Reference
+ Inheritance diagram for DisplayController:

Public Member Functions

 initialize (&$request, &$response)
 
 hasView ()
 
 executeKernel ()
 
 isOmitMetaData ()
 
- Public Member Functions inherited from Controller
 Controller (&$delegate)
 
 initialize (&$request, &$response)
 
 validate ()
 
 hasView ()
 
 execute ()
 
 executeKernel ()
 
 getErrorMsg ()
 
 setErrorMsg ($msg)
 
 appendErrorMsg ($msg)
 
getRequest ()
 
getResponse ()
 
getView ()
 
getDelegate ()
 
 getViewTemplate ($controller, $context, $action)
 
 getCacheId ()
 
 assignViewDefaults (&$view)
 
 isLocalizedRequest ()
 

Additional Inherited Members

- Public Attributes inherited from Controller
 $_request = null
 
 $_response = null
 
 $_errorMsg = ''
 
 $_view = null
 
 $_delegate = null
 

Detailed Description

DisplayController is a simple controller demonstrating how to display a Node using the displaynode.tpl template.

wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH

Licensed under the terms of any of the following licenses at your choice:

See the license.txt file distributed with this work for additional information.

Id:
class.DisplayController.php 1462 2014-02-04 23:52:27Z iherwig

Input actions:

  • unspecified: Display given Node if an oid is given

Output actions:

  • failure If a fatal error occurs
  • ok In any other case
Parameters
[in,out]oidThe oid of the Node to show
[in]depthThe BUILDDEPTH used when loading the Node
[in]omitMetaDataTrue/False. If true, only the parameters 'node' and 'lockMsg' will be returned. If not given, all parameters will be returned.
[in]translateValuesTrue/False. If true, list values will be translated using FormUtil::translateValue. If not given, all values will be returned as is.
[out]nodeThe Node object to display
[out]lockMsgThe lock message, if any
[out]possibleparentsAn array with Node objects of possible parents (see NodeUtil::getPossibleParents()) [optional]
[out]possiblechildrenAn array with Node objects of possible children (see NodeUtil::getPossibleChildren()) [optional]
[out]rootTypeThe root type of the Node (selects the navigation tab) [optional]
[out]rootTemplateNodeAn instance of the root type [optional]
[out]viewModeOne of the values 'detail' (in case of an oid given) or 'overview' (else) [optional]
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 58 of file class.DisplayController.php.

Member Function Documentation

DisplayController::initialize ( $request,
$response 
)
See Also
Controller::initialize()

Definition at line 63 of file class.DisplayController.php.

References PersistenceFacade\decomposeOID(), PersistenceFacade\isKnownType(), and PersistenceFacade\isValidOID().

+ Here is the call graph for this function:

DisplayController::hasView ( )
See Also
Controller::hasView()

Definition at line 90 of file class.DisplayController.php.

DisplayController::executeKernel ( )
DisplayController::isOmitMetaData ( )

Determine, if meta data is not requested

Returns
True/False

Definition at line 246 of file class.DisplayController.php.

Referenced by executeKernel().


The documentation for this class was generated from the following file: