Moodle  2.2.1
http://www.collinsharper.com
feed_edit_form Class Reference
Inheritance diagram for feed_edit_form:
Collaboration diagram for feed_edit_form:

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 = ''

Detailed Description

Definition at line 31 of file editfeed.php.


Constructor & Destructor Documentation

__construct ( actionurl,
isadding,
caneditshared 
)

Definition at line 37 of file editfeed.php.

Here is the call graph for this function:


Member Function Documentation

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

Parameters:
stringURL to autodiscover a url
Returns:
string URL of feed or original url if none found

Definition at line 130 of file editfeed.php.

Here is the call graph for this function:

Abstract method - always override!

Reimplemented from moodleform.

Definition at line 43 of file editfeed.php.

Here is the call graph for this function:

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

Returns:
object submitted data; NULL if not valid or not submitted or cancelled

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.

Parameters:
array$dataarray of ("fieldname"=>value) of submitted data
array$filesarray of uploaded files "element_name"=>tmp_file_path
Returns:
array of "element_name"=>"error_description" if there are errors, or an empty array if everything is OK (true allowed for backwards compatibility too).

Reimplemented from moodleform.

Definition at line 81 of file editfeed.php.


Field Documentation

$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.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations