* @package PHPCI * @subpackage Web */ class User { /** * Proxies method calls through to the current active user model. * @param $method * @param array $params * @return mixed|null */ public function __call($method, $params = array()) { if (empty($_SESSION['phpci_user'])) { return null; } $user = $_SESSION['phpci_user']; if (!is_object($user)) { return null; } return call_user_func_array(array($user, $method), $params); } }