sintonia/legacy/application/views/helpers/LoggedInAs.php

17 lines
320 B
PHP
Raw Normal View History

2011-01-30 22:47:11 +01:00
<?php
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()) {
$username = $auth->getIdentity()->login;
2011-01-30 22:47:11 +01:00
}
2021-10-11 16:10:47 +02:00
return $username;
2011-01-30 22:47:11 +01:00
}
}