[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/demos/blog/protected/Pages/Users/ -> ViewUser.php (source)

   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 1397 2006-09-07 07:55:53Z wei $
  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  ?>


Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7