Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

native_user_authfilter.php
Go to the documentation of this file.
1 <?php
11 class ezpNativeUserAuthFilter extends ezcAuthenticationFilter
12 {
13 const STATUS_INVALID_USER = 1;
14
19 public function run( $credentials )
20 {
21 $status = self::STATUS_INVALID_USER;
22 $count = eZPersistentObject::count( eZUser::definition(), array( 'contentobject_id' => (int)$credentials->id ) );
23 if ( $count > 0 )
24 {
25 $status = self::STATUS_OK;
26 }
27
28 return $status;
29 }
30 }
31 ?>
$status
$status
Definition: bugedit.php:473
eZPersistentObject\count
static count( $def, $conds=null, $field=null)
Definition: ezpersistentobject.php:188
ezpNativeUserAuthFilter
Definition: native_user_authfilter.php:12
ezpNativeUserAuthFilter\STATUS_INVALID_USER
const STATUS_INVALID_USER
Definition: native_user_authfilter.php:13
ezpNativeUserAuthFilter\run
run( $credentials)
Definition: native_user_authfilter.php:19
$count
$count
Definition: onlinetypelist.php:108
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.