summaryrefslogtreecommitdiff
path: root/framework/Web/Security/Principal/TGenericPrincipal.php
blob: 8e07388efada6bba82bf267d4f4adb137c5288b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
 * TGenericPrincipal class.
 * Represents a generic principal. 
 *
 * @author Jason Ragsdale <jrags@jasrags.net>
 * @version $Id: TGenericPrincipal.php 1398 2006-09-08 19:31:03Z xue $
 * @package System.Web.Security.Principal
 * @since 3.1
 */
Prado::using('System.Web.Security.Principal.IPrincipal');
class TGenericPrincipal implements IPrincipal
{
     private $_identity;
     
     public function getIdentity()
     {
     	return $this->_identity;
     }
     public function setIdentity($value)
     {
     	$this->_identity = TPropertyValue::ensureString($value);
     }
     
     public function __construct($name, $type=null)
     {
     	
     }
     public function isInRole($role)
     {
     	
     }
}
?>