Smutty

MVC Framework

View Code: Smutty_Session_Abstract

Browse: All · Classes · Plugins

1
<?php
2
3
/**
4
* this is the base class that Smutty authentication
5
* classes should implement. it just defines one method
6
* which is getUser(). this method should try and authenticate
7
* a user, and return a Smutty_Session_User object if it succeeds.
8
*
9
*/
10
11
abstract class Smutty_Session_Abstract extends Smutty_Object {
12
13
/**
14
* this function should do the work of authenticating the
15
* user, and if they're valid return a Smutty_Session_User
16
*
17
* NB! i wanted to make this method abstract so it needs
18
* to be implemented, but i read something about not being
19
* able to override static methods, though it wasn't
20
* certain, but it didn;t work for me. hmmm...
21
*
22
* @return Smutty_Session_User the current user
23
*
24
*/
25
26
public static function getUser() {}
27
28
}
29
30
?>

The code shown here is the code that is currently running this site. If you want to view the latest SVN version of the code then go to the Subversion repository.