- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
protected function _defineUser()
{
if ($this->_getParam('controller') == 'profile')
{
// check for mb and sf
if ($this->_getParam('action') == 'mb')
{
$user = new Dbrow_User();
$this->userId = $user->getIdByMbId($this->currentId);
}
if ($this->_getParam('action') == 'sf')
{
$user = new Dbrow_User();
$this->userId = $user->getIdBySfId($this->currentId);
}
}
if ($this->userId <= 0)
{
$this->userId = (int)$this->_getParam('userId');
}
if ($this->userId <= 0)
{
$this->userId = (int)$this->currentId;
}
if ($this->userId <= 0 && Static_Auth::isLogged())
{
$this->user = Static_Auth::getUser();
$this->userId = $this->user->id;
}
else
{
$this->user = new Dbrow_User();
$this->user->loadById($this->userId, array());
}
$this->view->user = $this->user;
self::$curUser = $this->user;
//var_dump($this->user->parentEssences);
//exit;
}