Detailed Description
Definition at line 334 of file page.php.
Member Function Documentation
Adds a link to the page.
- Parameters:
-
Definition at line 723 of file page.php.
Extracts all of the response information.
- Parameters:
-
Definition at line 382 of file page.php.
Converts a link tag into a target URL.
- Parameters:
-
| SimpleAnchor | $link | Parsed link. |
- Returns:
- SimpleUrl URL with frame target if any. private
Definition at line 839 of file page.php.
Tests to see if a tag is a possible form element.
- Parameters:
-
| string | $name | HTML element name. |
- Returns:
- boolean True if form element. private
Definition at line 634 of file page.php.
Test to see if in the middle of reading a frameset.
- Returns:
- boolean True if inframeset. private
Definition at line 700 of file page.php.
Test to see if link is an absolute one.
- Parameters:
-
- Returns:
- boolean True if absolute. protected
Definition at line 713 of file page.php.
Sets up a missing response. private
Definition at line 396 of file page.php.
Sets the base url for the page.
- Parameters:
-
Definition at line 867 of file page.php.
Sets the title tag contents.
- Parameters:
-
Definition at line 877 of file page.php.
Closes the most recently opened form. public
Definition at line 651 of file page.php.
Opens a form. New widgets go here.
- Parameters:
-
Definition at line 643 of file page.php.
Takes a single frame tag and stashes it in the current frame set.
- Parameters:
-
Definition at line 686 of file page.php.
Closes the most recently opened frameset. public
Definition at line 674 of file page.php.
Opens a frameset. A frameset may contain nested frameset tags.
- Parameters:
-
| SimpleFramesetTag | $tag | Tag to accept. public |
Definition at line 663 of file page.php.
Closes the most recently opened label. public
Definition at line 615 of file page.php.
Opens a label for a described widget.
- Parameters:
-
Definition at line 606 of file page.php.
Marker for end of complete page. Any work in progress can now be closed. public
Definition at line 732 of file page.php.
Adds a tag to the page.
- Parameters:
-
Definition at line 586 of file page.php.
Clears the frame focus. Does nothing for a leaf page. public
Definition at line 578 of file page.php.
Expands expandomatic URLs into fully qualified URLs.
- Parameters:
-
- Returns:
- SimpleUrl Absolute URL. public
Definition at line 854 of file page.php.
Accessor for last Authentication type. Only valid straight after a challenge (401).
- Returns:
- string Description of challenge type. public
Definition at line 524 of file page.php.
Base URL if set via BASE tag page url otherwise
- Returns:
- SimpleUrl Base url. public
Definition at line 472 of file page.php.
Accessor for a form element value within a page.
- Parameters:
-
| SimpleSelector | $selector | Field finder. |
- Returns:
- string/boolean A string if the field is present, false if unchecked and null if missing. public
Definition at line 973 of file page.php.
Finds a held form by the form ID. A way of identifying a specific form when we have control of the HTML code.
- Parameters:
-
- Returns:
- SimpleForm Form object containing the matching ID. public
Definition at line 937 of file page.php.
Finds a held form by image using a selector. Will only search correctly built forms.
- Parameters:
-
| SimpleSelector | $selector | Image finder. |
- Returns:
- SimpleForm Form object containing the image. public
Definition at line 919 of file page.php.
Finds a held form by button label. Will only search correctly built forms.
- Parameters:
-
| SimpleSelector | $selector | Button finder. |
- Returns:
- SimpleForm Form object containing the button. public
Definition at line 901 of file page.php.
Accessor for current frame focus. Will be false as no frames.
- Returns:
- array Always empty. public
Definition at line 550 of file page.php.
Fetches a list of loaded frames.
- Returns:
- array/string Just the URL for a single page. public
Definition at line 781 of file page.php.
Accessor for frame name and source URL for every frame that will need to be loaded. Immediate children only.
- Returns:
- boolean/array False if no frameset or otherwise a hash of frame URLs. The key is either a numerical base one index or the name attribute. public
Definition at line 763 of file page.php.
Accessor for raw headers of page.
- Returns:
- string Header block as text. public
Definition at line 442 of file page.php.
Original request method.
- Returns:
- string GET, POST or HEAD. public
Definition at line 454 of file page.php.
Accessor for current MIME type.
- Returns:
- string MIME type as string; e.g. 'text/html' public
Definition at line 499 of file page.php.
Accessor for raw text of page.
- Returns:
- string Raw unparsed content. public
Definition at line 420 of file page.php.
Accessor for last Authentication realm. Only valid straight after a challenge (401).
- Returns:
- string Name of security realm. public
Definition at line 537 of file page.php.
Original request as bytes sent down the wire.
- Returns:
- mixed Sent content. public
Definition at line 411 of file page.php.
Original request data.
- Returns:
- mixed Sent content. public
Definition at line 481 of file page.php.
Accessor for HTTP response code.
- Returns:
- integer HTTP response code received. public
Definition at line 511 of file page.php.
Accessor for plain text of page as a text browser would see it.
- Returns:
- string Plain text of page. public
Definition at line 430 of file page.php.
Accessor for parsed title.
- Returns:
- string Title or false if no title is present. public
Definition at line 886 of file page.php.
Accessor for last error.
- Returns:
- string Error from last response. public
Definition at line 490 of file page.php.
Original resource name.
- Returns:
- SimpleUrl Current url. public
Definition at line 463 of file page.php.
Accessor for a URL by the id attribute.
- Parameters:
-
| string | $id | Id attribute of link. |
- Returns:
- SimpleUrl URL with that id of false if none. public
Definition at line 824 of file page.php.
Accessor for a list of all links.
- Returns:
- array List of urls with scheme of http or https and hostname. public
Definition at line 792 of file page.php.
Accessor for URLs by the link label. Label will match regardess of whitespace issues and case.
- Parameters:
-
| string | $label | Text of link. |
- Returns:
- array List of links with that label. public
Definition at line 808 of file page.php.
Test for the presence of a frameset.
- Returns:
- boolean True if frameset. public
Definition at line 750 of file page.php.
| setField |
( |
$ |
selector, |
|
|
$ |
value, |
|
|
$ |
position = false |
|
) |
| |
Sets a field on each form in which the field is available.
- Parameters:
-
| SimpleSelector | $selector | Field finder. |
| string | $value | Value to set field to. |
- Returns:
- boolean True if value is valid. public
Definition at line 955 of file page.php.
Sets the focus by name. Always fails for a leaf page.
- Parameters:
-
- Returns:
- boolean False as no frames. public
Definition at line 570 of file page.php.
Sets the focus by index. The integer index starts from 1.
- Parameters:
-
| integer | $choice | Chosen frame. |
- Returns:
- boolean Always false. public
Definition at line 560 of file page.php.
Parses a page ready to access it's contents.
- Parameters:
-
Definition at line 360 of file page.php.
Field Documentation
The documentation for this class was generated from the following file:
- C:/xampp/htdocs/moodle/lib/simpletestlib/page.php