Public Method Details |
Webcam |
|
public void Webcam( )
|
| |
Class constructor
|
| Returns |
void |
|
get_random |
|
public string get_random( )
|
| |
Choose randomly a webcam to display
|
| Returns |
string html of a sidebox to display |
|
view_image |
|
public void view_image( int $image_id )
|
| |
Select an image from DB and send it with header()
Call header() to send image, then call exit.
Call exit if DB error
|
| Parameter |
|
|
| Returns |
void |
|
webcam_to_moderate |
|
public string webcam_to_moderate( )
|
| |
Give the list of webcam waiting for moderation
|
| Returns |
string html to be displayed |
|
show_webcam_to_moderate |
|
public string show_webcam_to_moderate( int $id )
|
| |
Display webcam and form in order to do moderation
|
| Parameter |
|
|
| Returns |
string html to be displayed |
|
do_moderate |
|
public mixed do_moderate( array $row )
|
| |
Do the moderation : remove from DB or change state to valid
|
| Parameter |
|
| array |
$row |
|
|
field 'submit' and field 'id' |
|
| Returns |
mixed error string or nothing |
|
formNewImage |
|
public string formNewImage( )
|
| |
Create a form to upload an image
|
| Returns |
string html of the form to be displayed |
|
addNewImage |
|
public void addNewImage( array $row )
|
| |
Insert an image into DB
Call header() when image is recorded, then exit
Call exit if DB error
|
| Parameter |
|
| array |
$row |
|
|
and data about image |
|
| Returns |
void |
|