| [ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
Editor input element Contains class to create preffered editor form element
| Copyright: | 2009 Petr Skoda {@link http://skodak.org} |
| License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
| File Size: | 458 lines (15 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
MoodleQuickForm_editor:: (22 methods):
__construct()
MoodleQuickForm_editor()
onQuickFormEvent()
setName()
getName()
setValue()
getValue()
getMaxbytes()
setMaxbytes()
getAreamaxbytes()
setAreamaxbytes()
getMaxfiles()
setMaxfiles()
getSubdirs()
setSubdirs()
getFormat()
isRequired()
setHelpButton()
getHelpButton()
getElementTemplateType()
toHtml()
getFrozenHtml()
Class: MoodleQuickForm_editor - X-Ref
Editor element| __construct($elementName=null, $elementLabel=null, $attributes=null, $options=null) X-Ref |
| Constructor param: string $elementName (optional) name of the editor param: string $elementLabel (optional) editor label param: array $attributes (optional) Either a typical HTML attribute string param: array $options set of options to initalize filepicker |
| MoodleQuickForm_editor($elementName=null, $elementLabel=null, $attributes=null, $options=null) X-Ref |
| Old syntax of class constructor. Deprecated in PHP7. |
| onQuickFormEvent($event, $arg, &$caller) X-Ref |
| Called by HTML_QuickForm whenever form event is made on this element param: string $event Name of event param: mixed $arg event arguments param: object $caller calling object return: bool |
| setName($name) X-Ref |
| Sets name of editor param: string $name name of the editor |
| getName() X-Ref |
| Returns name of element return: string |
| setValue($values) X-Ref |
| Updates editor values, if part of $_values param: array $values associative array of values to set |
| getValue() X-Ref |
| Returns editor values return: array |
| getMaxbytes() X-Ref |
| Returns maximum file size which can be uploaded return: int |
| setMaxbytes($maxbytes) X-Ref |
| Sets maximum file size which can be uploaded param: int $maxbytes file size |
| getAreamaxbytes() X-Ref |
| Returns the maximum size of the area. return: int |
| setAreamaxbytes($areamaxbytes) X-Ref |
| Sets the maximum size of the area. param: int $areamaxbytes size limit |
| getMaxfiles() X-Ref |
| Returns maximum number of files which can be uploaded return: int |
| setMaxfiles($num) X-Ref |
| Sets maximum number of files which can be uploaded. param: int $num number of files |
| getSubdirs() X-Ref |
| Returns true if subdirectoy can be created, else false return: bool |
| setSubdirs($allow) X-Ref |
| Set option to create sub directory, while uploading file param: bool $allow true if sub directory can be created. |
| getFormat() X-Ref |
| Returns editor format return: int. |
| isRequired() X-Ref |
| Checks if editor used is a required field return: bool true if required field. |
| setHelpButton($_helpbuttonargs, $function='_helpbutton') X-Ref |
| getHelpButton() X-Ref |
| Returns html for help button. return: string html for help button |
| getElementTemplateType() X-Ref |
| Returns type of editor element return: string |
| toHtml() X-Ref |
| Returns HTML for editor form element. return: string |
| getFrozenHtml() X-Ref |
| What to display when element is frozen. return: empty string |
| Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |