/** * Constructs a new AccessImageAction object. */ public function __construct() { parent::__construct(FALSE); $this->baseImageDir = dirname(dirname(__FILE__)) . '/images/'; $this->imageDirectoryAuthorizationMap = array(); $this->imageDirectoryAuthorizationMap[$this->baseImageDir . 'ui'] = FALSE; $this->imageDirectoryAuthorizationMap[$this->baseImageDir . 'image_data_thumbs'] = FALSE; $this->imageDirectoryAuthorizationMap[$this->baseImageDir . 'image_data'] = FALSE; }
/** * @param boolean $requiresAuthentication Whether or not this action requires an authenticated user. * @param array $requiredRoleTypeList If user authentication is required, this list defines the * roles which are required for user authorization. Defaults to NULL. */ public function __construct($requiresAuthentication, array $requiredRoleTypeList = NULL) { parent::__construct($requiresAuthentication, $requiredRoleTypeList); $this->menuItemList = array(); $this->menuItemList['Start Journey'] = array('REQUIRES_USER' => FALSE, 'URL' => UrlFormatter::formatRoutingItemUrl('views/StartJourneyView')); $this->menuItemList['View Journeys'] = array('REQUIRES_USER' => FALSE, 'URL' => UrlFormatter::formatRoutingItemUrl('views/ListJourneysView')); $this->menuItemList['Image Search'] = array('REQUIRES_USER' => FALSE, 'URL' => UrlFormatter::formatRoutingItemUrl('views/ImageSearchView')); $this->menuItemList['Add New Image'] = array('REQUIRES_USER' => TRUE, 'URL' => UrlFormatter::formatRoutingItemUrl('views/EditImageView')); $this->menuItemList['About'] = array('REQUIRES_USER' => FALSE, 'URL' => UrlFormatter::formatRoutingItemUrl('views/AboutView')); $this->menuItemList['Logout'] = array('REQUIRES_USER' => TRUE, 'URL' => UrlFormatter::formatRoutingItemUrl('actions/LogoutAction')); }
/** * Constructs a new access javascript action object. */ public function __construct() { parent::__construct(FALSE); $this->baseJavascriptDir = dirname(dirname(__FILE__)) . '/js/'; }
/** * Constructs a new logout action object. */ public function __construct() { parent::__construct(FALSE); }
/** * Constructs a new access style sheet object. */ public function __construct() { parent::__construct(FALSE); $this->baseCssDir = dirname(dirname(__FILE__)) . '/css/'; }
public function __construct() { parent::__construct(TRUE); }