WebsiteParser::__construct( string $url, string $link_type = 'all' )

Class constructor

Description

Parameters

$url

(Required) Target Url to parse

$link_type

(Optional) Link type to grab

Default value: 'all'

Source

File: bp-activity/vendors/website-parser/website_parser.php

    function __construct($url, $link_type = 'all')
    {
        $this->_isCurl();

        $this->target_url = $url;
        $this->setUrls();
        $this->setLinksType($link_type);
    }

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.