\AclUser\ControllerUserController

Class UserController

Handles basic user requests

Summary

Methods
Properties
Constants
onDispatch()
__construct()
profileAction()
forgottenPasswordAction()
serveUserPhotoAction()
ajaxGetPhotoUploadFormAction()
ajaxReceiveUserPhotoFileAction()
ajaxGetBasicProfileFormAction()
No public properties found
No constants found
userHasControlOverThisImage()
No protected properties found
N/A
No private methods found
$entityManager
$userManager
$viewRenderer
N/A

Properties

$entityManager

$entityManager : \Doctrine\ORM\EntityManager

Entity manager.

Type

\Doctrine\ORM\EntityManager

$viewRenderer

$viewRenderer : \AclUser\Controller\Zend\View\Renderer\PhpRenderer

Instance that renders views

Type

\AclUser\Controller\Zend\View\Renderer\PhpRenderer

Methods

onDispatch()

onDispatch(\Zend\Mvc\MvcEvent  $e) 

Intercept on dispatch event to get view renderer

Parameters

\Zend\Mvc\MvcEvent $e

__construct()

__construct(\Doctrine\ORM\EntityManager  $entityManager, \AclUser\Service\UserManager  $userManager) 

Instantiate controller class with injected resources

Parameters

\Doctrine\ORM\EntityManager $entityManager
\AclUser\Service\UserManager $userManager

profileAction()

profileAction() : \Zend\View\Model\ViewModel

Landing page where authenticated user can update their profile

Returns

\Zend\View\Model\ViewModel

forgottenPasswordAction()

forgottenPasswordAction() : \Zend\View\Model\ViewModel

This action displays the "Forgotten Password" page.

Returns

\Zend\View\Model\ViewModel

serveUserPhotoAction()

serveUserPhotoAction() : \AclUser\Controller\Response

Serve raw response of user's photo

Returns

\AclUser\Controller\Response —

user photo data

ajaxGetPhotoUploadFormAction()

ajaxGetPhotoUploadFormAction() : \Zend\View\Model\JsonModel

Send photo upload form in view script as JSON

Returns

\Zend\View\Model\JsonModel

ajaxReceiveUserPhotoFileAction()

ajaxReceiveUserPhotoFileAction() : \Zend\View\Model\JsonModel

Ajax action to which user's photo file object is posted

Returns

\Zend\View\Model\JsonModel

ajaxGetBasicProfileFormAction()

ajaxGetBasicProfileFormAction() : \Zend\View\Model\JsonModel

Get profile form page

Returns

\Zend\View\Model\JsonModel

userHasControlOverThisImage()

userHasControlOverThisImage(integer  $userId) : boolean

Check whether user ($userId) is permitted to view/update the image

Parameters

integer $userId

the id of the photo/user

Returns

boolean —

Whether user has permission