WebUser.php
555 Bytes
<?php
/**
* This class adds some additional functionality to the base class
*/
class WebUser extends CWebUser {
/**
* Returns login information
*/
public function getLogin() {
return $this->getName();
}
/**
* Returns name of the authorized person
*/
public function getFullName() {
return $this->getState('__fullname');
}
/**
* Returns page title as full name of the authorized
*/
public function getTitle() {
return $this->getFullName();
}
}