WiseLoop PHP Web Media Grabber 3.1.1
Advanced PHP web resources extractor
wlWmgCssGrabber Class Reference
Inheritance diagram for wlWmgCssGrabber:

Public Member Functions

 __construct ($url)

Detailed Description

WiseLoop CSS Grabber Processor class definition
This class is designed to retrieve external CSS styles files referred by an url page and stores them in the $_validMedia array variable.
It uses the base class wlWmgProcessor capabilities to search an url page for external CSS styles files by checking its link href tags and their content-type HTTP response headers.
WiseLoop CSS Grabber main features:

  • grab external CSS stylesheets files referred by the targeted url page;
  • CSS stylesheets files seach and identification by the HTML content-type response header: the grabbing engine is able to identify beyound the obvious css resources having the .css file extension - it will find the css styles files that have different file extesion or no extension at all; the identification is made by checking the server response header when pinging the tested css file resource;
  • media url name (filename) filtering: only those CSS files having or containing in their url names some specified strings will be included in the grabbing results.
  • media size filtering: only those CSS files having the specified size (in bytes) will be included in the grabbing results;
  • media count limiter: number of grabbed CSS files will be limited to a specified value;
  • HTML area searching: the grabbing engine is able to search for CSS files only inside a designated HTML area specified by a tag; in this way you can skip grabbing from the start any unwanted CSS files by narrowing the full HTML target page to a smaller area consisting of a tag content; an incomplete tag (tag slice) can be specified also, the tag will autocomplete depending on the contextual HTML content;
  • downloading capability: the WiseLoop Video Grabber is able to download the grabbed CSS files to the local server, so those styles can be referred or used as local resources in the future;
WiseLoop takes no responsibility if the targeted url changes its tag structure or its HTML DOM tree, resulting in unexpected data retrieval; this will not be considered as malfunction or bug, and you should check the targeted url's HTML DOM tree for changes and modify the code that instatiates this class or any inherited classes.
Also, WiseLoop assumes no responsibility for any abusive use of this class and/or violation of terms of usage of the target url.
See also:

Constructor & Destructor Documentation

__construct ( url)

Creates a wlWmgCssGrabber object.

string$urlthe target page url

Reimplemented from wlWmgProcessor.

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables