| [ Index ] |
|
Code source de PRADO 3.0.6 |
[Code source] [Imprimer] [Statistiques]
Base include file for SimpleTest
| Version: | $Id: frames.php 1397 2006-09-07 07:55:53Z wei $ |
| Poids: | 588 lignes (21 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
SimpleFrameset:: (36 méthodes):
SimpleFrameset()
addFrame()
setFrame()
getFrameFocus()
_getPublicNameFromIndex()
setFrameFocusByIndex()
setFrameFocus()
clearFrameFocus()
_clearNestedFramesFocus()
hasFrames()
getFrames()
getRaw()
getText()
getTransportError()
getMethod()
getUrl()
getRequestData()
getMimeType()
getResponseCode()
getAuthentication()
getRealm()
getRequest()
getHeaders()
getTitle()
getAbsoluteUrls()
getRelativeUrls()
getUrlsByLabel()
getUrlById()
_tagUrlsWithFrame()
getFormBySubmit()
getFormByImage()
getFormById()
_findForm()
_findFormInFrame()
setField()
getField()
Classe: SimpleFrameset - X-Ref
A composite page. Wraps a frameset page and| SimpleFrameset($page) X-Ref |
| Stashes the frameset page. Will make use of the browser to fetch the sub frames recursively. param: SimplePage $page Frameset page. |
| addFrame($page, $name = false) X-Ref |
| Adds a parsed page to the frameset. param: SimplePage $page Frame page. param: string $name Name of frame in frameset. |
| setFrame($path, $page) X-Ref |
| Replaces existing frame with another. If the frame is nested, then the call is passed down one level. param: array $path Path of frame in frameset. param: SimplePage $page Frame source. |
| getFrameFocus() X-Ref |
| Accessor for current frame focus. Will be false if no frame has focus. Will have the nested frame focus if any. return: array Labels or indexes of nested frames. |
| _getPublicNameFromIndex($subject) X-Ref |
| Turns an internal array index into the frames list into a public name, or if none, then a one offset index. param: integer $subject Internal index. return: integer/string Public name. |
| setFrameFocusByIndex($choice) X-Ref |
| 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. param: integer $choice Chosen frame. return: boolean True if frame exists. |
| setFrameFocus($name) X-Ref |
| Sets the focus by name. If already focused and the target frame also has frames, then the nested frame will be focused. param: string $name Chosen frame. return: boolean True if frame exists. |
| clearFrameFocus() X-Ref |
| Clears the frame focus. |
| _clearNestedFramesFocus() X-Ref |
| Clears the frame focus for any nested frames. |
| hasFrames() X-Ref |
| Test for the presence of a frameset. return: boolean Always true. |
| getFrames() X-Ref |
| Accessor for frames information. return: array/string Recursive hash of frame URL strings. |
| getRaw() X-Ref |
| Accessor for raw text of either all the pages or the frame in focus. return: string Raw unparsed content. |
| getText() X-Ref |
| Accessor for plain text of either all the pages or the frame in focus. return: string Plain text content. |
| getTransportError() X-Ref |
| Accessor for last error. return: string Error from last response. |
| getMethod() X-Ref |
| Request method used to fetch this frame. return: string GET, POST or HEAD. |
| getUrl() X-Ref |
| Original resource name. return: SimpleUrl Current url. |
| getRequestData() X-Ref |
| Original request data. return: mixed Sent content. |
| getMimeType() X-Ref |
| Accessor for current MIME type. return: string MIME type as string; e.g. 'text/html' |
| getResponseCode() X-Ref |
| Accessor for last response code. return: integer Last HTTP response code received. |
| getAuthentication() X-Ref |
| Accessor for last Authentication type. Only valid straight after a challenge (401). return: string Description of challenge type. |
| getRealm() X-Ref |
| Accessor for last Authentication realm. Only valid straight after a challenge (401). return: string Name of security realm. |
| getRequest() X-Ref |
| Accessor for outgoing header information. return: string Header block. |
| getHeaders() X-Ref |
| Accessor for raw header information. return: string Header block. |
| getTitle() X-Ref |
| Accessor for parsed title. return: string Title or false if no title is present. |
| getAbsoluteUrls() X-Ref |
| Accessor for a list of all fixed links. return: array List of urls with scheme of |
| getRelativeUrls() X-Ref |
| Accessor for a list of all relative links. return: array List of urls without hostname. |
| getUrlsByLabel($label) X-Ref |
| Accessor for URLs by the link label. Label will match regardess of whitespace issues and case. param: string $label Text of link. return: array List of links with that label. |
| getUrlById($id) X-Ref |
| 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. param: string $id Id attribute of link. return: string URL with that id. |
| _tagUrlsWithFrame($urls, $frame) X-Ref |
| Attaches the intended frame index to a list of URLs. param: array $urls List of SimpleUrls. param: string $frame Name of frame or index. return: array List of tagged URLs. |
| getFormBySubmit($selector) X-Ref |
| Finds a held form by button label. Will only search correctly built forms. param: SimpleSelector $selector Button finder. return: SimpleForm Form object containing |
| getFormByImage($selector) X-Ref |
| 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. param: SimpleSelector $selector Image finder. return: SimpleForm Form object containing |
| getFormById($id) X-Ref |
| 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. param: string $id Form label. return: SimpleForm Form object containing the matching ID. |
| _findForm($method, $attribute) X-Ref |
| General form finder. Will search all the frames or just the one in focus. param: string $method Method to use to find in a page. param: string $attribute Label, name or ID. return: SimpleForm Form object containing the matching ID. |
| _findFormInFrame($page, $index, $method, $attribute) X-Ref |
| Finds a form in a page using a form finding method. Will also tag the form with the frame name it belongs in. param: SimplePage $page Page content of frame. param: integer $index Internal frame representation. param: string $method Method to use to find in a page. param: string $attribute Label, name or ID. return: SimpleForm Form object containing the matching ID. |
| setField($selector, $value) X-Ref |
| Sets a field on each form in which the field is available. param: SimpleSelector $selector Field finder. param: string $value Value to set field to. return: boolean True if value is valid. |
| getField($selector) X-Ref |
| Accessor for a form element value within a page. param: SimpleSelector $selector Field finder. return: string/boolean A string if the field is |
| Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |