Moodle  2.2.1
http://www.collinsharper.com
wikimedia Class Reference

Public Member Functions

 __construct ($url= '')
 login ($user, $pass)
 logout ()
 get_image_url ($titles)
 get_images_by_page ($title)
 get_thumb_url ($image_url, $orig_width, $orig_height, $thumb_width=75)
 search_images ($keyword)

Detailed Description

Definition at line 30 of file wikimedia.php.


Constructor & Destructor Documentation

__construct ( url = '')

Definition at line 34 of file wikimedia.php.


Member Function Documentation

get_image_url ( titles)

Definition at line 64 of file wikimedia.php.

get_images_by_page ( title)

Definition at line 85 of file wikimedia.php.

get_thumb_url ( image_url,
orig_width,
orig_height,
thumb_width = 75 
)

Generate thumbnail URL from image URL.

Parameters:
string$image_url
int$orig_width
int$orig_height
int$thumb_widthobject OUTPUT
Returns:
string

Definition at line 111 of file wikimedia.php.

Here is the call graph for this function:

Here is the caller graph for this function:

login ( user,
pass 
)

Definition at line 44 of file wikimedia.php.

logout ( )

Definition at line 59 of file wikimedia.php.

search_images ( keyword)

Search for images and return photos array.

Parameters:
string$keyword
Returns:
array

Definition at line 144 of file wikimedia.php.

Here is the call graph for this function:


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