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



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


Parameters:

string   $html  
   $mode  

[ Top ]


Documentation generated on Wed, 05 Sep 2007 06:14:47 +0200 by phpDocumentor 1.4.0