/sources/validation2.php

Description
Functions
check_css (line 2540)

Checks a CSS style sheet (high level).

  • return: Error information (NULL: no error)
?map check_css (string $data)
  • string $data: The data of the style sheet
init__validation2 (line 26)

Standard code module initialisation function.

void init__validation2 ()
validate_spelling (line 2305)

Checks the spelling of some text.

  • return: Array of errors
list validate_spelling (string $value)
  • string $value: The text
_check_attributes (line 2208)

Checks a tag's attributes.

  • return: Array of errors (NULL: none)
?list _check_attributes (string $tag, map $attributes, boolean $self_close, boolean $close)
  • string $tag: The name of the tag to check
  • map $attributes: A map of attributes (name=>value) the tag has
  • boolean $self_close: Whether this is a self-closing tag
  • boolean $close: Whether this is a closing tag
_check_blockyness (line 2164)

Checks a tag's inline/block/normal nesting situations.

  • return: Array of errors (NULL: none)
?list _check_blockyness (string $tag, map $attributes, boolean $self_close, boolean $close)
  • string $tag: The name of the tag to check
  • map $attributes: A map of attributes (name=>value) the tag has
  • boolean $self_close: Whether this is a self-closing tag
  • boolean $close: Whether this is a closing tag
_check_css_value (line 3042)

Checks a CSS attribute/value combination is appropriate.

  • return: Error information (NULL: no error)
?map _check_css_value (string $key, string $value, integer $_i)
  • string $key: The name of the attribute
  • string $value: The value of the attribute
  • integer $_i: Current parse position
_check_externals (line 2342)

Checks the content under a tag's external references.

  • return: Array of errors (NULL: none)
?list _check_externals (string $tag, map $attributes, boolean $self_close, boolean $close)
  • string $tag: The name of the tag to check
  • map $attributes: A map of attributes (name=>value) the tag has
  • boolean $self_close: Whether this is a self-closing tag
  • boolean $close: Whether this is a closing tag
_check_labelling (line 2486)

Checks form field labelling.

  • return: Array of errors (NULL: none)
?list _check_labelling (string $tag, map $attributes, boolean $self_close, boolean $close)
  • string $tag: The name of the tag to check
  • map $attributes: A map of attributes (name=>value) the tag has
  • boolean $self_close: Whether this is a self-closing tag
  • boolean $close: Whether this is a closing tag
_check_link_accessibility (line 2425)

Checks link accessibility.

  • return: Array of errors (NULL: none)
?list _check_link_accessibility (string $tag, map $attributes, boolean $self_close, boolean $close)
  • string $tag: The name of the tag to check
  • map $attributes: A map of attributes (name=>value) the tag has
  • boolean $self_close: Whether this is a self-closing tag
  • boolean $close: Whether this is a closing tag
_validate_css_class (line 2905)

Checks a CSS class.

  • return: Error information (NULL: no error)
?map _validate_css_class (string $data, integer $_i, [integer $line = 0])
  • string $data: The data of the CSS class
  • integer $_i: Current parse position
  • integer $line: The higher-level line number we are checking for (to give better debug output)
_validate_css_sheet (line 2564)

Checks a CSS style sheet.

  • return: Error information (NULL: no error)
?map _validate_css_sheet (string $data)
  • string $data: The data of the style sheet
__check_tag (line 1810)

Checks an XHTML tag for validity, including attributes. Return the results.

  • return: Array of error information
array __check_tag (string $tag, map $attributes, boolean $self_close, boolean $close, list $errors)
  • string $tag: The name of the tag to check
  • map $attributes: A map of attributes (name=>value) the tag has
  • boolean $self_close: Whether this is a self-closing tag
  • boolean $close: Whether this is a closing tag
  • list $errors: Errors detected so far. We will add to these and return

Documentation generated on Sun, 02 Jan 2011 23:28:10 +0000 by phpDocumentor 1.4.3