[ Index ] |
|
Code source de PRADO 3.0.6 |
[Code source] [Imprimer] [Statistiques]
Base include file for SimpleTest.
Version: | $Id: tag.php 1397 2006-09-07 07:55:53Z wei $ |
Poids: | 1392 lignes (45 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
SimpleTag:: (12 méthodes):
SimpleTag()
expectEndTag()
isPrivateContent()
addContent()
addTag()
getTagName()
getChildElements()
getAttribute()
_setAttribute()
getContent()
getText()
isId()
SimpleTitleTag:: (1 méthode):
SimpleTitleTag()
SimpleAnchorTag:: (2 méthodes):
SimpleAnchorTag()
getHref()
SimpleWidget:: (9 méthodes):
SimpleWidget()
getName()
getDefault()
getValue()
setValue()
resetValue()
setLabel()
isLabel()
write()
SimpleTextTag:: (3 méthodes):
SimpleTextTag()
expectEndTag()
setValue()
SimpleSubmitTag:: (5 méthodes):
SimpleSubmitTag()
expectEndTag()
setValue()
getLabel()
isLabel()
SimpleImageSubmitTag:: (6 méthodes):
SimpleImageSubmitTag()
expectEndTag()
setValue()
getLabel()
isLabel()
write()
SimpleButtonTag:: (5 méthodes):
SimpleButtonTag()
expectEndTag()
setValue()
getLabel()
isLabel()
SimpleTextAreaTag:: (6 méthodes):
SimpleTextAreaTag()
getDefault()
setValue()
_wrapIsEnabled()
_wrap()
isPrivateContent()
SimpleUploadTag:: (3 méthodes):
SimpleUploadTag()
expectEndTag()
write()
SimpleSelectionTag:: (6 méthodes):
SimpleSelectionTag()
addTag()
addContent()
getDefault()
setValue()
getValue()
MultipleSelectionTag:: (6 méthodes):
MultipleSelectionTag()
addTag()
addContent()
getDefault()
setValue()
getValue()
SimpleOptionTag:: (5 méthodes):
SimpleOptionTag()
setValue()
isValue()
getDefault()
isPrivateContent()
SimpleRadioButtonTag:: (4 méthodes):
SimpleRadioButtonTag()
expectEndTag()
setValue()
getDefault()
SimpleCheckboxTag:: (4 méthodes):
SimpleCheckboxTag()
expectEndTag()
setValue()
getDefault()
SimpleTagGroup:: (7 méthodes):
addWidget()
_getWidgets()
getAttribute()
getName()
isId()
isLabel()
write()
SimpleCheckboxGroup:: (6 méthodes):
getValue()
getDefault()
setValue()
_valuesArePossible()
_coerceValues()
_makeArray()
SimpleRadioGroup:: (4 méthodes):
setValue()
_valueIsPossible()
getValue()
getDefault()
SimpleLabelTag:: (2 méthodes):
SimpleLabelTag()
getFor()
SimpleFormTag:: (1 méthode):
SimpleFormTag()
SimpleFrameTag:: (2 méthodes):
SimpleFrameTag()
expectEndTag()
SimpleTag($name, $attributes) X-Ref |
Starts with a named tag with attributes only. param: string $name Tag name. param: hash $attributes Attribute names and |
expectEndTag() X-Ref |
Check to see if the tag can have both start and end tags with content in between. return: boolean True if content allowed. |
isPrivateContent() X-Ref |
The current tag should not swallow all content for itself as it's searchable page content. Private content tags are usually widgets that contain default values. return: boolean False as content is available |
addContent($content) X-Ref |
Appends string content to the current content. param: string $content Additional text. |
addTag($tag) X-Ref |
Adds an enclosed tag to the content. param: SimpleTag $tag New tag. |
getTagName() X-Ref |
Accessor for tag name. return: string Name of tag. |
getChildElements() X-Ref |
List of legal child elements. return: array List of element names. |
getAttribute($label) X-Ref |
Accessor for an attribute. param: string $label Attribute name. return: string Attribute value. |
_setAttribute($label, $value) X-Ref |
Sets an attribute. param: string $label Attribute name. return: string $value New attribute value. |
getContent() X-Ref |
Accessor for the whole content so far. return: string Content as big raw string. |
getText() X-Ref |
Accessor for content reduced to visible text. Acts like a text mode browser, normalising space and reducing images to their alt text. return: string Content as plain text. |
isId($id) X-Ref |
Test to see if id attribute matches. param: string $id ID to test against. return: boolean True on match. |
Classe: SimpleTitleTag - X-Ref
Page title.SimpleTitleTag($attributes) X-Ref |
Starts with a named tag with attributes only. param: hash $attributes Attribute names and |
Classe: SimpleAnchorTag - X-Ref
Link.SimpleAnchorTag($attributes) X-Ref |
Starts with a named tag with attributes only. param: hash $attributes Attribute names and |
getHref() X-Ref |
Accessor for URL as string. return: string Coerced as string. |
Classe: SimpleWidget - X-Ref
Form element.SimpleWidget($name, $attributes) X-Ref |
Starts with a named tag with attributes only. param: string $name Tag name. param: hash $attributes Attribute names and |
getName() X-Ref |
Accessor for name submitted as the key in GET/POST variables hash. return: string Parsed value. |
getDefault() X-Ref |
Accessor for default value parsed with the tag. return: string Parsed value. |
getValue() X-Ref |
Accessor for currently set value or default if none. return: string Value set by form or default |
setValue($value) X-Ref |
Sets the current form element value. param: string $value New value. return: boolean True if allowed. |
resetValue() X-Ref |
Resets the form element value back to the default. |
setLabel($label) X-Ref |
Allows setting of a label externally, say by a label tag. param: string $label Label to attach. |
isLabel($label) X-Ref |
Reads external or internal label. param: string $label Label to test. return: boolean True is match. |
write($encoding) X-Ref |
Dispatches the value into the form encoded packet. param: SimpleEncoding $encoding Form packet. |
Classe: SimpleTextTag - X-Ref
Text, password and hidden field.SimpleTextTag($attributes) X-Ref |
Starts with a named tag with attributes only. param: hash $attributes Attribute names and |
expectEndTag() X-Ref |
Tag contains no content. return: boolean False. |
setValue($value) X-Ref |
Sets the current form element value. Cannot change the value of a hidden field. param: string $value New value. return: boolean True if allowed. |
Classe: SimpleSubmitTag - X-Ref
Submit button as input tag.SimpleSubmitTag($attributes) X-Ref |
Starts with a named tag with attributes only. param: hash $attributes Attribute names and |
expectEndTag() X-Ref |
Tag contains no end element. return: boolean False. |
setValue($value) X-Ref |
Disables the setting of the button value. param: string $value Ignored. return: boolean True if allowed. |
getLabel() X-Ref |
Value of browser visible text. return: string Visible label. |
isLabel($label) X-Ref |
Test for a label match when searching. param: string $label Label to test. return: boolean True on match. |
Classe: SimpleImageSubmitTag - X-Ref
Image button as input tag.SimpleImageSubmitTag($attributes) X-Ref |
Starts with a named tag with attributes only. param: hash $attributes Attribute names and |
expectEndTag() X-Ref |
Tag contains no end element. return: boolean False. |
setValue($value) X-Ref |
Disables the setting of the button value. param: string $value Ignored. return: boolean True if allowed. |
getLabel() X-Ref |
Value of browser visible text. return: string Visible label. |
isLabel($label) X-Ref |
Test for a label match when searching. param: string $label Label to test. return: boolean True on match. |
write($encoding) X-Ref |
Dispatches the value into the form encoded packet. param: SimpleEncoding $encoding Form packet. param: integer $x X coordinate of click. param: integer $y Y coordinate of click. |
Classe: SimpleButtonTag - X-Ref
Submit button as button tag.SimpleButtonTag($attributes) X-Ref |
Starts with a named tag with attributes only. Defaults are very browser dependent. param: hash $attributes Attribute names and |
expectEndTag() X-Ref |
Check to see if the tag can have both start and end tags with content in between. return: boolean True if content allowed. |
setValue($value) X-Ref |
Disables the setting of the button value. param: string $value Ignored. return: boolean True if allowed. |
getLabel() X-Ref |
Value of browser visible text. return: string Visible label. |
isLabel($label) X-Ref |
Test for a label match when searching. param: string $label Label to test. return: boolean True on match. |
Classe: SimpleTextAreaTag - X-Ref
Content tag for text area.SimpleTextAreaTag($attributes) X-Ref |
Starts with a named tag with attributes only. param: hash $attributes Attribute names and |
getDefault() X-Ref |
Accessor for starting value. return: string Parsed value. |
setValue($value) X-Ref |
Applies word wrapping if needed. param: string $value New value. return: boolean True if allowed. |
_wrapIsEnabled() X-Ref |
Test to see if text should be wrapped. return: boolean True if wrapping on. |
_wrap($text) X-Ref |
Performs the formatting that is peculiar to this tag. There is strange behaviour in this one, including stripping a leading new line. Go figure. I am using Firefox as a guide. param: string $text Text to wrap. return: string Text wrapped with carriage |
isPrivateContent() X-Ref |
The content of textarea is not part of the page. return: boolean True. |
Classe: SimpleUploadTag - X-Ref
File upload widget.SimpleUploadTag($attributes) X-Ref |
Starts with attributes only. param: hash $attributes Attribute names and |
expectEndTag() X-Ref |
Tag contains no content. return: boolean False. |
write($encoding) X-Ref |
Dispatches the value into the form encoded packet. param: SimpleEncoding $encoding Form packet. |
Classe: SimpleSelectionTag - X-Ref
Drop down widget.SimpleSelectionTag($attributes) X-Ref |
Starts with attributes only. param: hash $attributes Attribute names and |
addTag($tag) X-Ref |
Adds an option tag to a selection field. param: SimpleOptionTag $tag New option. |
addContent($content) X-Ref |
Text within the selection element is ignored. param: string $content Ignored. |
getDefault() X-Ref |
Scans options for defaults. If none, then the first option is selected. return: string Selected field. |
setValue($value) X-Ref |
Can only set allowed values. param: string $value New choice. return: boolean True if allowed. |
getValue() X-Ref |
Accessor for current selection value. return: string Value attribute or |
Classe: MultipleSelectionTag - X-Ref
Drop down widget.MultipleSelectionTag($attributes) X-Ref |
Starts with attributes only. param: hash $attributes Attribute names and |
addTag($tag) X-Ref |
Adds an option tag to a selection field. param: SimpleOptionTag $tag New option. |
addContent($content) X-Ref |
Text within the selection element is ignored. param: string $content Ignored. |
getDefault() X-Ref |
Scans options for defaults to populate the value array(). return: array Selected fields. |
setValue($desired) X-Ref |
Can only set allowed values. Any illegal value will result in a failure, but all correct values will be set. param: array $desired New choices. return: boolean True if all allowed. |
getValue() X-Ref |
Accessor for current selection value. return: array List of currently set options. |
Classe: SimpleOptionTag - X-Ref
Option for selection field.SimpleOptionTag($attributes) X-Ref |
Stashes the attributes. |
setValue($value) X-Ref |
Does nothing. param: string $value Ignored. return: boolean Not allowed. |
isValue($compare) X-Ref |
Test to see if a value matches the option. param: string $compare Value to compare with. return: boolean True if possible match. |
getDefault() X-Ref |
Accessor for starting value. Will be set to the option label if no value exists. return: string Parsed value. |
isPrivateContent() X-Ref |
The content of options is not part of the page. return: boolean True. |
Classe: SimpleRadioButtonTag - X-Ref
Radio button.SimpleRadioButtonTag($attributes) X-Ref |
Stashes the attributes. param: array $attributes Hash of attributes. |
expectEndTag() X-Ref |
Tag contains no content. return: boolean False. |
setValue($value) X-Ref |
The only allowed value sn the one in the "value" attribute. param: string $value New value. return: boolean True if allowed. |
getDefault() X-Ref |
Accessor for starting value. return: string Parsed value. |
Classe: SimpleCheckboxTag - X-Ref
Checkbox widget.SimpleCheckboxTag($attributes) X-Ref |
Starts with attributes only. param: hash $attributes Attribute names and |
expectEndTag() X-Ref |
Tag contains no content. return: boolean False. |
setValue($value) X-Ref |
The only allowed value in the one in the "value" attribute. The default for this attribute is "on". If this widget is set to true, then the usual value will be taken. param: string $value New value. return: boolean True if allowed. |
getDefault() X-Ref |
Accessor for starting value. The default value is "on". return: string Parsed value. |
Classe: SimpleTagGroup - X-Ref
A group of multiple widgets with some shared behaviour.addWidget($widget) X-Ref |
Adds a tag to the group. param: SimpleWidget $widget |
_getWidgets() X-Ref |
Accessor to widget set. return: array All widgets. |
getAttribute($label) X-Ref |
Accessor for an attribute. param: string $label Attribute name. return: boolean Always false. |
getName() X-Ref |
Fetches the name for the widget from the first member. return: string Name of widget. |
isId($id) X-Ref |
Scans the widgets for one with the appropriate ID field. param: string $id ID value to try. return: boolean True if matched. |
isLabel($label) X-Ref |
Scans the widgets for one with the appropriate attached label. param: string $label Attached label to try. return: boolean True if matched. |
write($encoding) X-Ref |
Dispatches the value into the form encoded packet. param: SimpleEncoding $encoding Form packet. |
Classe: SimpleCheckboxGroup - X-Ref
A group of tags with the same name within a form.getValue() X-Ref |
Accessor for current selected widget or false if none. return: string/array Widget values or false if none. |
getDefault() X-Ref |
Accessor for starting value that is active. return: string/array Widget values or false if none. |
setValue($values) X-Ref |
Accessor for current set values. param: string/array/boolean $values Either a single string, a return: boolean True if all values can be set. |
_valuesArePossible($values) X-Ref |
Tests to see if a possible value set is legal. param: string/array/boolean $values Either a single string, a return: boolean False if trying to set a |
_coerceValues($values) X-Ref |
Converts the output to an appropriate format. This means that no values is false, a single value is just that value and only two or more are contained in an array. param: array $values List of values of widgets. return: string/array/boolean Expected format for a tag. |
_makeArray($value) X-Ref |
Converts false or string into array. The opposite of the coercian method. param: string/array/boolean $value A single item is converted return: array List of values, possibly empty. |
Classe: SimpleRadioGroup - X-Ref
A group of tags with the same name within a form.setValue($value) X-Ref |
Each tag is tried in turn until one is successfully set. The others will be unchecked if successful. param: string $value New value. return: boolean True if any allowed. |
_valueIsPossible($value) X-Ref |
Tests to see if a value is allowed. param: string Attempted value. return: boolean True if a valid value. |
getValue() X-Ref |
Accessor for current selected widget or false if none. return: string/boolean Value attribute or |
getDefault() X-Ref |
Accessor for starting value that is active. return: string/boolean Value of first checked |
Classe: SimpleLabelTag - X-Ref
Tag to keep track of labels.SimpleLabelTag($attributes) X-Ref |
Starts with a named tag with attributes only. param: hash $attributes Attribute names and |
getFor() X-Ref |
Access for the ID to attach the label to. return: string For attribute. |
Classe: SimpleFormTag - X-Ref
Tag to aid parsing the form.SimpleFormTag($attributes) X-Ref |
Starts with a named tag with attributes only. param: hash $attributes Attribute names and |
Classe: SimpleFrameTag - X-Ref
Tag to aid parsing the frames in a page.SimpleFrameTag($attributes) X-Ref |
Starts with a named tag with attributes only. param: hash $attributes Attribute names and |
expectEndTag() X-Ref |
Tag contains no content. return: boolean False. |
Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |