dokeos
[ class tree: dokeos ] [ index: dokeos ] [ all elements ]

Class: HTML_QuickForm_Rule_HTML

Source Location: /main/inc/lib/formvalidator/Rule/HTML.php

Class Overview

HTML_QuickForm_Rule
   |
   --HTML_QuickForm_Rule_HTML

QuickForm rule to check a html


Methods


Inherited Variables

Inherited Methods

Class: HTML_QuickForm_Rule

HTML_QuickForm_Rule::getValidationScript()
Returns the javascript test (the test should return true if the value is INVALID)
HTML_QuickForm_Rule::setName()
Sets the rule name
HTML_QuickForm_Rule::validate()
Validates a value

Class Details

[line 28]
QuickForm rule to check a html



[ Top ]


Class Methods


method get_allowed_tags [line 49]

void get_allowed_tags( int $mode, boolean $fullpage)

Get allowed tags



Parameters:

int   $mode   NO_HTML, STUDENT_HTML, TEACHER_HTML, STUDENT_HTML_FULLPAGE or TEACHER_HTML_FULLPAGE
boolean   $fullpage   If true, the allowed tags for full-page editing are returned.

[ Top ]

method validate [line 36]

boolean validate( string $html, [ $mode = NO_HTML])

Function to validate HTML



Tags:

return:  True if html is valid
see:  HTML_QuickForm_Rule


Overrides HTML_QuickForm_Rule::validate() (Validates a value)

Parameters:

string   $html  
   $mode  

[ Top ]


Documentation generated on Thu, 12 Jun 2008 13:39:49 -0500 by phpDocumentor 1.4.1