Subversion-Projekte lars-tiefland.prado

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/**
3
 * ViewUser class file
4
 *
5
 * @author Qiang Xue <qiang.xue@gmail.com>
6
 * @link http://www.pradosoft.com/
7
 * @copyright Copyright &copy; 2006 PradoSoft
8
 * @license http://www.pradosoft.com/license/
9
 * @version $Id: ViewUser.php 1398 2006-09-08 19:31:03Z xue $
10
 */
11
 
12
/**
13
 * ViewUser class
14
 *
15
 * @author Qiang Xue <qiang.xue@gmail.com>
16
 * @link http://www.pradosoft.com/
17
 * @copyright Copyright &copy; 2006 PradoSoft
18
 * @license http://www.pradosoft.com/license/
19
 */
20
class ViewUser extends BlogPage
21
{
22
	private $_userRecord=null;
23
 
24
	public function onInit($param)
25
	{
26
		parent::onInit($param);
27
		if(($id=$this->Request['id'])!==null)
28
			$id=TPropertyValue::ensureInteger($id);
29
		else
30
			$id=$this->User->ID;
31
		if(($this->_userRecord=$this->DataAccess->queryUserByID($id))===null)
32
			throw new BlogException(500,'profile_id_invalid',$id);
33
		$this->_userRecord->Email=strtr(strtoupper($this->_userRecord->Email),array('@'=>' at ','.'=>' dot '));
34
	}
35
 
36
	public function getProfile()
37
	{
38
		return $this->_userRecord;
39
	}
40
}
41
 
42
?>