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

Class: HTML_QuickForm_Rule_Filetype

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

Class Overview

HTML_QuickForm_Rule
   |
   --HTML_QuickForm_Rule_Filetype

QuickForm rule to check if a filetype


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 if a filetype



[ Top ]


Class Methods


method validate [line 37]

boolean validate( array $file, [array $extensions = array()])

Function to check if a filetype is allowed



Tags:

return:  True if filetype is allowed
see:  HTML_QuickForm_Rule


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

Parameters:

array   $file   Uploaded file
array   $extensions   Allowed extensions

[ Top ]


Documentation generated on Thu, 12 Jun 2008 13:29:03 -0500 by phpDocumentor 1.4.1