eZPublishCommunityProject  2012.12
eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController Class Reference
+ Inheritance diagram for eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController:
+ Collaboration diagram for eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController:

Public Member Functions

 __construct (ViewManager $viewManager)
 
 viewContent ($contentId, $viewType, $layout=false)
 Main action for viewing content. More...
 
 viewLocation ($locationId, $viewType, $layout=false)
 Main action for viewing content through a location in the repository. More...
 
- Public Member Functions inherited from eZ\Publish\Core\MVC\Symfony\Controller\Controller
 getConfigResolver ()
 
 getEventDispatcher ()
 
 getLogger ()
 
 getParameter ($parameterName, $defaultValue=null)
 Returns value for $parameterName and fallbacks to $defaultValue if not defined. More...
 
 getRepository ()
 
 getRequest ()
 
 getTemplateEngine ()
 
 hasParameter ($parameterName)
 Checks if $parameterName is defined. More...
 
 isGranted (AuthorizationAttribute $attribute)
 Checks if current user has granted access to provided attribute. More...
 
 render ($view, array $parameters=array(), Response $response=null)
 Renders a view. More...
 

Protected Member Functions

 buildResponse ($etag, DateTime $lastModified)
 Build the response so that depending on settings it's cacheable. More...
 

Private Attributes

 $viewManager
 

Constructor & Destructor Documentation

eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController::__construct ( ViewManager  $viewManager)

Member Function Documentation

eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController::buildResponse (   $etag,
DateTime  $lastModified 
)
protected

Build the response so that depending on settings it's cacheable.

Parameters
string$etag
\DateTime$lastModified
Returns

Referenced by eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController\viewContent(), and eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController\viewLocation().

eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController::viewContent (   $contentId,
  $viewType,
  $layout = false 
)

Main action for viewing content.

Response will be cached with HttpCache validation model (Etag)

Parameters
int$contentId
string$viewType
boolean$layout
Exceptions
\Symfony\Component\Security\Core\Exception\AccessDeniedException
\Exception
Returns
eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController::viewLocation (   $locationId,
  $viewType,
  $layout = false 
)

Main action for viewing content through a location in the repository.

Response will be cached with HttpCache validation model (Etag)

Parameters
int$locationId
string$viewType
boolean$layout
Exceptions
\Symfony\Component\Security\Core\Exception\AccessDeniedException
\Exception
Returns

Member Data Documentation

eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController::$viewManager
private

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