|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| SimpleFrameset (&$page) | |
| addFrame (&$page, $name=false) | |
| setFrame ($path, &$page) | |
| getFrameFocus () | |
| _getPublicNameFromIndex ($subject) | |
| setFrameFocusByIndex ($choice) | |
| setFrameFocus ($name) | |
| clearFrameFocus () | |
| _clearNestedFramesFocus () | |
| hasFrames () | |
| getFrames () | |
| getRaw () | |
| getText () | |
| getTransportError () | |
| getMethod () | |
| getUrl () | |
| getBaseUrl () | |
| expandUrl ($url) | |
| getRequestData () | |
| getMimeType () | |
| getResponseCode () | |
| getAuthentication () | |
| getRealm () | |
| getRequest () | |
| getHeaders () | |
| getTitle () | |
| getUrls () | |
| getUrlsByLabel ($label) | |
| getUrlById ($id) | |
| _tagUrlsWithFrame ($urls, $frame) | |
| & | getFormBySubmit ($selector) |
| & | getFormByImage ($selector) |
| & | getFormById ($id) |
| & | _findForm ($method, $attribute) |
| & | _findFormInFrame (&$page, $index, $method, $attribute) |
| setField ($selector, $value) | |
| getField ($selector) | |
Data Fields | |
| $_frameset | |
| $_frames | |
| $_focus | |
| $_names | |
Definition at line 24 of file frames.php.
Clears the frame focus for any nested frames. private
Definition at line 165 of file frames.php.

| & _findForm | ( | $ | method, |
| $ | attribute | ||
| ) |
General form finder. Will search all the frames or just the one in focus.
| string | $method | Method to use to find in a page. |
| string | $attribute | Label, name or ID. |
Definition at line 519 of file frames.php.


| & _findFormInFrame | ( | &$ | page, |
| $ | index, | ||
| $ | method, | ||
| $ | attribute | ||
| ) |
Finds a form in a page using a form finding method. Will also tag the form with the frame name it belongs in.
| SimplePage | $page | Page content of frame. |
| integer | $index | Internal frame representation. |
| string | $method | Method to use to find in a page. |
| string | $attribute | Label, name or ID. |
Definition at line 552 of file frames.php.


| _getPublicNameFromIndex | ( | $ | subject | ) |
Turns an internal array index into the frames list into a public name, or if none, then a one offset index.
| integer | $subject | Internal index. |
Definition at line 101 of file frames.php.

| _tagUrlsWithFrame | ( | $ | urls, |
| $ | frame | ||
| ) |
Attaches the intended frame index to a list of URLs.
| array | $urls | List of SimpleUrls. |
| string | $frame | Name of frame or index. |
Definition at line 457 of file frames.php.


| addFrame | ( | &$ | page, |
| $ | name = false |
||
| ) |
Adds a parsed page to the frameset.
| SimplePage | $page | Frame page. |
| string | $name | Name of frame in frameset. public |
Definition at line 48 of file frames.php.
| clearFrameFocus | ( | ) |
Clears the frame focus. public
Definition at line 156 of file frames.php.

| expandUrl | ( | $ | url | ) |
Expands expandomatic URLs into fully qualified URLs for the frameset page.
| SimpleUrl | $url | Relative URL. |
Definition at line 290 of file frames.php.
Accessor for last Authentication type. Only valid straight after a challenge (401).
Definition at line 336 of file frames.php.
| getBaseUrl | ( | ) |
| getField | ( | $ | selector | ) |
Accessor for a form element value within a page.
| SimpleSelector | $selector | Field finder. |
Definition at line 586 of file frames.php.
| & getFormById | ( | $ | id | ) |
Finds a held form by the form ID. A way of identifying a specific form when we have control of the HTML code. The first form found either within the focused frame, or across frames, will be the one returned.
| string | $id | Form label. |
Definition at line 506 of file frames.php.

| & getFormByImage | ( | $ | selector | ) |
Finds a held form by image using a selector. Will only search correctly built forms. The first form found either within the focused frame, or across frames, will be the one returned.
| SimpleSelector | $selector | Image finder. |
Definition at line 491 of file frames.php.

| & getFormBySubmit | ( | $ | selector | ) |
Finds a held form by button label. Will only search correctly built forms.
| SimpleSelector | $selector | Button finder. |
Definition at line 476 of file frames.php.

| getFrameFocus | ( | ) |
Accessor for current frame focus. Will be false if no frame has focus. Will have the nested frame focus if any.
Definition at line 84 of file frames.php.

| getFrames | ( | ) |
Accessor for frames information.
Definition at line 187 of file frames.php.

| getHeaders | ( | ) |
Accessor for raw header information.
Definition at line 373 of file frames.php.
| getMethod | ( | ) |
Request method used to fetch this frame.
Definition at line 247 of file frames.php.
| getMimeType | ( | ) |
Accessor for current MIME type.
Definition at line 311 of file frames.php.
| getRaw | ( | ) |
Accessor for raw text of either all the pages or the frame in focus.
Definition at line 202 of file frames.php.
| getRealm | ( | ) |
Accessor for last Authentication realm. Only valid straight after a challenge (401).
Definition at line 349 of file frames.php.
| getRequest | ( | ) |
Accessor for outgoing header information.
Definition at line 361 of file frames.php.
| getRequestData | ( | ) |
Original request data.
Definition at line 299 of file frames.php.
| getResponseCode | ( | ) |
Accessor for last response code.
Definition at line 323 of file frames.php.
| getText | ( | ) |
Accessor for plain text of either all the pages or the frame in focus.
Definition at line 219 of file frames.php.
| getTitle | ( | ) |
Accessor for parsed title.
Definition at line 385 of file frames.php.
Accessor for last error.
Definition at line 235 of file frames.php.
| getUrl | ( | ) |
Original resource name.
Definition at line 259 of file frames.php.

| getUrlById | ( | $ | id | ) |
Accessor for a URL by the id attribute. If in a frameset then the first link found with that ID attribute is returned only. Focus on a frame if you want one from a specific part of the frameset.
| string | $id | Id attribute of link. |
Definition at line 438 of file frames.php.

| getUrls | ( | ) |
Accessor for a list of all fixed links.
Definition at line 394 of file frames.php.
| getUrlsByLabel | ( | $ | label | ) |
Accessor for URLs by the link label. Label will match regardess of whitespace issues and case.
| string | $label | Text of link. |
Definition at line 412 of file frames.php.

| hasFrames | ( | ) |
Test for the presence of a frameset.
Definition at line 176 of file frames.php.

| setField | ( | $ | selector, |
| $ | value | ||
| ) |
Sets a field on each form in which the field is available.
| SimpleSelector | $selector | Field finder. |
| string | $value | Value to set field to. |
Definition at line 568 of file frames.php.
| setFrame | ( | $ | path, |
| &$ | page | ||
| ) |
Replaces existing frame with another. If the frame is nested, then the call is passed down one level.
| array | $path | Path of frame in frameset. |
| SimplePage | $page | Frame source. public |
Definition at line 63 of file frames.php.
| setFrameFocus | ( | $ | name | ) |
Sets the focus by name. If already focused and the target frame also has frames, then the nested frame will be focused.
| string | $name | Chosen frame. |
Definition at line 139 of file frames.php.

| setFrameFocusByIndex | ( | $ | choice | ) |
Sets the focus by index. The integer index starts from 1. If already focused and the target frame also has frames, then the nested frame will be focused.
| integer | $choice | Chosen frame. |
Definition at line 118 of file frames.php.

| SimpleFrameset | ( | &$ | page | ) |
Stashes the frameset page. Will make use of the browser to fetch the sub frames recursively.
| SimplePage | $page | Frameset page. |
Definition at line 35 of file frames.php.
| $_focus |
Definition at line 27 of file frames.php.
| $_frames |
Definition at line 26 of file frames.php.
| $_frameset |
Definition at line 25 of file frames.php.
| $_names |
Definition at line 28 of file frames.php.