|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($actionurl, $isadding, $caneditshared) | |
| definition () | |
| definition_after_data () | |
| validation ($data, $files) | |
| get_data () | |
Static Public Member Functions | |
| static | autodiscover_feed_url ($url) |
Protected Attributes | |
| $isadding | |
| $caneditshared | |
| $title = '' | |
| $description = '' | |
Definition at line 31 of file editfeed.php.
| __construct | ( | $ | actionurl, |
| $ | isadding, | ||
| $ | caneditshared | ||
| ) |
| static autodiscover_feed_url | ( | $ | url | ) | [static] |
Autodiscovers a feed url from a given url, to be used by the formslibs filter function
Uses simplepie with autodiscovery set to maximum level to try and find a feed to subscribe to. See: http://simplepie.org/wiki/reference/simplepie/set_autodiscovery_level
| string | URL to autodiscover a url |
Definition at line 130 of file editfeed.php.

| definition | ( | ) |
Abstract method - always override!
Reimplemented from moodleform.
Definition at line 43 of file editfeed.php.

Dummy stub method - override if you need to setup the form depending on current values. This method is called after definition(), data submission and set_data(). All form setup that is dependent on form values should go in here.
Reimplemented from moodleform.
Definition at line 73 of file editfeed.php.
| get_data | ( | ) |
Return submitted data if properly submitted or returns NULL if validation fails or if there is no submitted data.
note: $slashed param removed
Reimplemented from moodleform.
Definition at line 102 of file editfeed.php.
| validation | ( | $ | data, |
| $ | files | ||
| ) |
Dummy stub method - override if you needed to perform some extra validation. If there are errors return array of errors ("fieldname"=>"error message"), otherwise true if ok.
Server side rules do not work for uploaded files, implement serverside rules here if needed.
| array | $data | array of ("fieldname"=>value) of submitted data |
| array | $files | array of uploaded files "element_name"=>tmp_file_path |
Reimplemented from moodleform.
Definition at line 81 of file editfeed.php.
$caneditshared [protected] |
Definition at line 33 of file editfeed.php.
$description = '' [protected] |
Definition at line 35 of file editfeed.php.
$isadding [protected] |
Definition at line 32 of file editfeed.php.
$title = '' [protected] |
Definition at line 34 of file editfeed.php.