Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

access_denied.php
Go to the documentation of this file.
1 <?php
12 class ezpContentAccessDeniedException extends ezpContentException
13 {
17 public function __construct( $objectID )
18 {
19 $userID = eZUser::currentUserID();
20 $message = ezpI18n::tr( 'design/standard/error/kernel', 'Access denied' ) . '. ' .
21 ezpI18n::tr( 'design/standard/error/kernel', 'You do not have permission to access this area.');
22
23 eZLog::write( "Access denied to content object #$objectID for user #$userID", 'error.log' );
24 parent::__construct( $message );
25 }
26 }
27 ?>
$message
$message
Definition: admin/message.php:51
$userID
else $userID
Definition: appointmentedit.php:121
eZLog\write
static write( $message, $logName='common.log', $dir='var/log')
Definition: ezlog.php:30
ezpContentAccessDeniedException
Definition: access_denied.php:13
ezpContentAccessDeniedException\__construct
__construct( $objectID)
Definition: access_denied.php:17
ezpContentException
Definition: content_exception.php:18
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.