public function getAuthUserId()
    {
        $user_id = null;
        $user = $this->getAuthUser();
        if ($user) {
            $user_id = $user->user_id;
        }
        return $user_id;
    }
public function getAuthUserId()
    {
        $user_id = null;
        $user = $this->getAuthUser();
        if ($user) {
            $user_id = $user->user_id;
        }
        return $user_id;
    }
public function getAuthUserId ( ) { $ user_id = null ; $ user = $ this -> getAuthUser ( ) ; if ( $ user ) { $ user_id = $ user -> user_id ; } return $ user_id ; }
Get current auth user_id

@return mixed|null
Get current auth user_id