File: bp-activity/vendors/website-parser/website_parser.php |
Description |
---|---|
WebsiteParser::getLinkType() | |
WebsiteParser::findLinkTitle() | |
WebsiteParser::_isCurl() | |
WebsiteParser::grabContent() |
A private method grabs website content using cUrl And put content it into a class variable Can be replace by file_get_contents() but it’s very slow, cpu intensive and does not handle redirects, caching, cookies, etc. |
WebsiteParser::sanitizeUrl() | |
WebsiteParser |
A Website parser class |
WebsiteParser::__construct() |
Class constructor |
WebsiteParser::__destruct() |
The class destructor. |
WebsiteParser::getContent() |
A public function to grab and return content |
WebsiteParser::getHrefLinks() |
Extract all href links from grab contents |