protected function _getUserId()
    {
        $callable = $this->config('idCallable');
        $id = 0;

        if (is_string($callable)) {
            $session = Session::create();
            $id = $session->read($callable);
        } elseif (is_callable($callable)) {
            $id = $callable();
        }

        return (int)$id;
    }
protected function _getUserId()
    {
        $callable = $this->config('idCallable');
        $id = 0;

        if (is_string($callable)) {
            $session = Session::create();
            $id = $session->read($callable);
        } elseif (is_callable($callable)) {
            $id = $callable();
        }

        return (int)$id;
    }
protected function _getUserId ( ) { $ callable = $ this -> config ( 'idCallable' ) ; $ id = 0 ; if ( is_string ( $ callable ) ) { $ session = Session :: create ( ) ; $ id = $ session -> read ( $ callable ) ; } elseif ( is_callable ( $ callable ) ) { $ id = $ callable ( ) ; } return ( int ) $ id ; }
Gets current User's ID.

@return int User ID, zero if not found
Gets current User s ID .