PhpMyObject
[ class tree: PhpMyObject ] [ index: PhpMyObject ] [ all elements ]

Class: film_actor

Source Location: /fichiers/v0.15/class_loader/class_film_actor.php

Class Overview

PMO_MyObject
   |
   --film_actor

provides the much needed helloworld() method to those film_actor people who need so much publicity


Methods


Inherited Variables

Inherited Methods

Class: PMO_MyObject

PMO_MyObject::__construct()
the constructor takes a PMO_Table argument and sets ifself up up so factory() will be able to create and return a PMO_Object
PMO_MyObject::delete()
Deletes the corespondgng data row from the database table
PMO_MyObject::factory()
returns an object conforming to the database table schema
PMO_MyObject::fetch()
PMO_MyObject::get()
retrieve the value of an attribute this function also cleans the escape chars with a simple stripslashes
PMO_MyObject::getListAttribute()
return an array wich contains all the names of attributes of PMO_Object
PMO_MyObject::getNew()
return the flag used to define if the objet is already present in database table
PMO_MyObject::getObjectAttribute()
return the data structure of the PMO_Object array is attribute=>value
PMO_MyObject::getTable()
Returns a reference to the PMO_Table object on which this object is based
PMO_MyObject::insert()
inserts a new data row into the database table
PMO_MyObject::internalfactory()
this internal factory will instanciate either PMO_Object based on an extended class in your class_loader directory or a generic PMO_MyObject object.
PMO_MyObject::load()
Loads a data row from the database table using its primary key and fills the object attributes
PMO_MyObject::save()
Save this object into the corresponding database table
PMO_MyObject::set()
Set the value of an attribute of the data structure this function already escape strange char with a simple addslashes
PMO_MyObject::setNew()
define the object as new, not already present in the database
PMO_MyObject::toXml()
export the data structure of an object in a xml format stream
PMO_MyObject::update()
updates the corresponding data row into the database table
PMO_MyObject::__get()
alias of get function
PMO_MyObject::__set()
alias of set function

Class Details

[line 51]
provides the much needed helloworld() method to those film_actor people who need so much publicity

The name of the class is identical to the database table name

This example implements a hellworld() method for a PMO_Object based on the film_actor database table. This class will be intanciated instead of the generic one.

For this to work, you must provide its name to the table_classname property of the PMO_MyTable/PMO_MyTable_film_actor.php file that will get generated by PMO on first instanciation of a PMO_Object for the table film_actor.




[ Top ]


Class Methods


method helloworld [line 56]

void helloworld( )

emits a huge "Hello World !" to all the World Wide Web media



Tags:

access:  public


[ Top ]


Documentation generated on Wed, 15 Oct 2008 09:15:26 -0400 by phpDocumentor 1.4.1