public static function fromId($userId)
{
$userTable = new Model();
$row = $userTable->fetchRow($userTable->select(array('id' => (int) $userId)));
$userTable->events()->trigger(__CLASS__, 'before.load', $userTable);
if (!empty($row)) {
$userTable->setData((array) $row);
$userTable->unsetData('password');
$userTable->setOrigData();
$userTable->events()->trigger(__CLASS__, 'after.load', $userTable);
return $userTable;
} else {
$userTable->events()->trigger(__CLASS__, 'after.load.failed', $userTable);
return false;
}
}