File: bp-activity/vendors/website-parser/website_parser.php |
Description |
---|---|
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::getLinkType() | |
WebsiteParser::findLinkTitle() | |
WebsiteParser::_isCurl() | |
WebsiteParser::getImageSources() |
Extract all images sources from grabbed contents |
WebsiteParser::getTitle() |
Extract title from grabbed contents |
WebsiteParser::getMetaTags() |
Extract all metatags sources from grabbed contents |
WebsiteParser::truncateText() |
Truncate text in to preferred length |
WebsiteParser::setLinksType() |
Set link type to extract from grabbed contents |