Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: /home/inri/public_html/daCode-HEAD/daCode/src/phplib/webcam.php3
daCode -

Webcam

Webcam

Give you the possibility to put webcam shots online :)

 

private class Webcam

Give you the possibility to put webcam shots online :)

daCode http://www.dacode.org/
src/phplib/webcam.php3
$Id: webcam.php3,v 1.71 2002/05/11 14:23:44 jbcombes Exp $

Depends: Config Db Html User

AuthorsFabien Penso <penso@linuxfr.org>

 

Public Method Summary

void

Webcam()

Class constructor
string

get_random()

Choose randomly a webcam to display
void

view_image(int $image_id)

Select an image from DB and send it with header()
string

webcam_to_moderate()

Give the list of webcam waiting for moderation
string

show_webcam_to_moderate(int $id)

Display webcam and form in order to do moderation
mixed

do_moderate(array $row)

Do the moderation : remove from DB or change state to valid
string

formNewImage()

Create a form to upload an image
void

addNewImage(array $row)

Insert an image into DB

Private Field Summary

object Db

$db

Database abstraction layer
object Html

$html

HTML rendering package
object Session

$session

Session handling instance
object User

$user

User instance

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
int $image_id
's id
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
int $id
's id
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


Private Field Details

$db

private object Db $db

>><<

Database abstraction layer


$html

private object Html $html

>><<

HTML rendering package


$session

private object Session $session

>><<

Session handling instance


$user

private object User $user

>><<

User instance



Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta