public function get_endpoint_url($type) {
        $endpoint = endpoint::get_record([
            'issuerid' => $this->get('id'),
            'name' => $type . '_endpoint'
        ]);

        if ($endpoint) {
            return $endpoint->get('url');
        }
        return false;
    }
public function get_endpoint_url($type) {
        $endpoint = endpoint::get_record([
            'issuerid' => $this->get('id'),
            'name' => $type . '_endpoint'
        ]);

        if ($endpoint) {
            return $endpoint->get('url');
        }
        return false;
    }
public function get_endpoint_url ( $ type ) { $ endpoint = endpoint :: get_record ( [ 'issuerid' => $ this -> get ( 'id' ) , 'name' => $ type . '_endpoint' ] ) ; if ( $ endpoint ) { return $ endpoint -> get ( 'url' ) ; } return false ; }
Helper the get a named service endpoint.
@param string $type
@return string|false
Helper the get a named service endpoint .