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

Class: PMO_Object

Source Location: /fichiers/v0.15/PMO_core/PMO_Object.php

Interface Overview


This interface defines the methods a class must implement to provide a working PMO_Object table class capable of managing database entities.


Author(s):

Methods



Class Details

[line 50]
This interface defines the methods a class must implement to provide a working PMO_Object table class capable of managing database entities.



Tags:

see:  PMO_MyObject


[ Top ]


Class Methods


method delete [line 150]

void delete( )

Delete data of object into database

using the value of primary keys, all primary keys should be set to delete the right tuple




Tags:

throws:  Exception
access:  public


[ Top ]

method get [line 90]

string get( $attribute)

return the value of an attribute this function also cleans the escape chars with a simple stripslashes



Tags:

throws:  Exception
access:  public


Parameters:

   $attribute  

[ Top ]

method getListAttribute [line 80]

array getListAttribute( )

return an array wich contains all the names of attributes of PMO_Object



Tags:

throws:  Exception
access:  public


[ Top ]

method getNew [line 128]

void getNew( )

return the flag used to define if

objet is present or not in database




Tags:

access:  public


[ Top ]

method getObjectAttribute [line 71]

void getObjectAttribute( )

return the data structure of the PMO_Object array is attribute=>value



Tags:

throws:  Exception
access:  public


[ Top ]

method getTable [line 62]

PMO_Table getTable( )

Return the reference of the object PMO_Table

linked to the object PMO_Table describe the structure of the table that was used to build the object data structure (name of columns, primary keys, ..)




Tags:

throws:  Exception
access:  public


[ Top ]

method load [line 139]

void load( )

Load data of object from database

using the value of primary key All primary key should be set to retrieve the data




Tags:

throws:  Exception
access:  public


[ Top ]

method save [line 159]

void save( )

Save data of object into database insert or update dependings the value of the object_new flags



Tags:

throws:  Exception
access:  public


[ Top ]

method set [line 111]

TRUE set( $attribute, $value)

Set the value of an attribute of the data structure this function already escape strange char with a simple addslashes

data structure is an array attribute => attributevalue




Tags:

throws:  Exception
access:  public


Parameters:

   $attribute  
   $value  

[ Top ]

method setNew [line 122]

void setNew( $flag)

define the object as new, not already

present in the database This flag is used to define when we do an insert or an update




Tags:

access:  public


Parameters:

   $flag  

[ Top ]

method toXml [line 98]

void toXml( $encoding)

export the data structure of an object in a xml format stream

<attributes> <attributename>attributevalue</attributename> </attributes>




Tags:

access:  public


Parameters:

   $encoding  

[ Top ]


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