/** * Return fuserId. * * @param bool $skipCreate Create, if not exist. * @return int */ public static function getId($skipCreate = false) { $id = \CSaleUser::getID($skipCreate); static::updateSession($id); return $id; }