public function getAccountId()
    {
        $segments = $this->getSegments();

        if (reset($segments) === 'account' && isset($segments[1]) && ctype_digit($segments[1])) {
            return (int) $segments[1];
        }

        return false;
    }
public function getAccountId()
    {
        $segments = $this->getSegments();

        if (reset($segments) === 'account' && isset($segments[1]) && ctype_digit($segments[1])) {
            return (int) $segments[1];
        }

        return false;
    }
public function getAccountId ( ) { $ segments = $ this -> getSegments ( ) ; if ( reset ( $ segments ) === 'account' && isset ( $ segments [ 1 ] ) && ctype_digit ( $ segments [ 1 ] ) ) { return ( int ) $ segments [ 1 ] ; } return false ; }
Returns a user ID from the path
@return boolean|integer
Returns a user ID from the path