2011-01-30 22:47:11 +01:00
|
|
|
<?php
|
|
|
|
|
2011-02-22 18:22:31 +01:00
|
|
|
class Airtime_View_Helper_LoggedInAs extends Zend_View_Helper_Abstract
|
2011-01-30 22:47:11 +01:00
|
|
|
{
|
2021-10-11 16:10:47 +02:00
|
|
|
public function loggedInAs()
|
2011-01-30 22:47:11 +01:00
|
|
|
{
|
2021-10-11 16:10:47 +02:00
|
|
|
$username = '';
|
2011-01-30 22:47:11 +01:00
|
|
|
$auth = Zend_Auth::getInstance();
|
|
|
|
|
|
|
|
if ($auth->hasIdentity()) {
|
2011-01-31 00:20:47 +01:00
|
|
|
$username = $auth->getIdentity()->login;
|
2011-01-30 22:47:11 +01:00
|
|
|
}
|
2021-10-11 16:10:47 +02:00
|
|
|
|
2011-02-22 18:22:31 +01:00
|
|
|
return $username;
|
2011-01-30 22:47:11 +01:00
|
|
|
}
|
|
|
|
}
|