1
0
Fork 0
MySQLDumper/application/views/helpers/GetUsername.php

32 Zeilen
688 B
PHP

2011-06-10 21:55:32 +00:00
<?php
/**
* This file is part of MySQLDumper released under the GNU/GPL 2 license
* http://www.mysqldumper.net
*
* @package MySQLDumper
* @subpackage View_Helpers
* @version SVN: $Rev$
* @author $Author$
*/
/**
* Get name of currently logged in user
*
* @package MySQLDumper
* @subpackage View_Helpers
*/
class Msd_View_Helper_GetUsername extends Zend_View_Helper_Abstract
{
/**
* Get name of currently logged in user
*
* @param string $time
*
* @return string
*/
public function getUsername()
{
$auth =Zend_Auth::getInstance()->getIdentity();
return $auth['name'];
}
}