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

Class: pdoMap_Item

Source Location: /item.class.php

Class Overview


PDO ROW ITEM


Methods



Class Details

[line 18]
PDO ROW ITEM

Represents and handle a generic table row / record entry




[ Top ]


Class Methods


constructor __construct [line 29]

pdoMap_Item __construct( string $table, [string $cnx = NULL])

Constructeur



Tags:

access:  public


Parameters:

string   $table   Table Name
string   $cnx   Connection string used for mapping

[ Top ]

method can_map [line 74]

boolean can_map( )

Indicate if record can be mapped for CRUD functions Some objects come from multiple tables trought a join select. These objects can not be updated or inserted to databases.



Tags:

return:  Returns true if obect can be inserted or updated to database
access:  public


[ Top ]

method Delete [line 140]

void Delete( )

DELETING FUNCTION



Tags:

access:  public


[ Top ]

method exists [line 65]

boolean exists( )

Indicate if record exists in table records



Tags:

return:  True if record is present in database
access:  public


[ Top ]

method GetID [line 56]

integer GetID( )

Gets current primary key value



Tags:

return:  Primary key value
access:  public


[ Top ]

method InitID [line 48]

void InitID( )

Re-Initialize Primary KEY

Helpfull function for repetitive inserts with a single object




Tags:

access:  public


[ Top ]

method Insert [line 120]

void Insert( )

GENERATING INSERT REQUEST



Tags:

access:  public


[ Top ]

method RunCommand [line 81]

void RunCommand( string $command)

Simple execute command



Tags:

access:  public


Parameters:

string   $command   SQL command to execute

[ Top ]

method RunInsert [line 104]

void RunInsert( string $command)

Inserts an object to database



Tags:

access:  public


Parameters:

string   $command   SQL command to execute

[ Top ]

method SetArray [line 92]

void SetArray( array $array)

Bind object from an array



Tags:

access:  public


Parameters:

array   $array   Values array from a a fetch Select command

[ Top ]

method Update [line 151]

void Update( )

UPDATING



Tags:

access:  public


[ Top ]


Documentation generated on Thu, 10 Apr 2008 11:51:03 +0200 by phpDocumentor 1.4.1