php-censor/PHPCI/Helper/User.php

26 lines
604 B
PHP
Raw Normal View History

2013-05-10 17:25:51 +02:00
<?php
2013-05-16 03:16:56 +02:00
/**
* PHPCI - Continuous Integration for PHP
*
* @copyright Copyright 2014, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link https://www.phptesting.org/
*/
2013-05-10 17:25:51 +02:00
namespace PHPCI\Helper;
/**
* User Helper - Provides access to logged in user information in views.
* @author Dan Cryer <dan@block8.co.uk>
* @package PHPCI
* @subpackage Web
*/
2013-05-10 17:25:51 +02:00
class User
{
public function __call($method, $params = array())
{
$user = $_SESSION['user'];
return call_user_func_array(array($user, $method), $params);
}
}