Transaction Engine 3 Application Programming Interface
[ class tree: Transaction Engine 3 Application Programming Interface ] [ index: Transaction Engine 3 Application Programming Interface ] [ all elements ]

Class: tNG_CheckUnique

Source Location: /tNG3/triggers/tNG_CheckUnique.class.php

Class Overview

tNG_CheckTableField
   |
   --tNG_CheckUnique

This the CheckUnique trigger; extends the tNG_CheckTableField class; Checks if a value already exists in table.


Author(s):

Methods


Inherited Variables

Inherited Methods

Class: tNG_CheckTableField

tNG_CheckTableField::tNG_CheckTableField()
Constructor. Sets the reference to the transaction in which the trigger is used.
tNG_CheckTableField::errorIfExists()
setter. if it will be throw error in case the records exists;
tNG_CheckTableField::Execute()
execute method of the class;
tNG_CheckTableField::setErrorMsg()
setter. set the error message
tNG_CheckTableField::setFieldName()
setter. set the field name
tNG_CheckTableField::setFieldType()
setter. set the field type
tNG_CheckTableField::setFieldValue()
setter. set the field value
tNG_CheckTableField::setTable()
setter. set the table name

Class Details

[line 10]
This the CheckUnique trigger; extends the tNG_CheckTableField class; Checks if a value already exists in table.



Tags:

access:  public


[ Top ]


Class Methods


constructor tNG_CheckUnique [line 16]

tNG_CheckUnique tNG_CheckUnique( object tNG &$tNG)

Constructor. Sets the reference to the transaction in which the trigger is used.



Tags:

access:  public


Parameters:

object tNG   &$tNG   reference to transaction object

[ Top ]

method Execute [line 26]

mix Execute( none 0)

execute method of the class; check if record exists and return null or error;



Tags:

return:  null or error object if record exists
access:  public


Overrides tNG_CheckTableField::Execute() (execute method of the class;)

Parameters:

none   0  

[ Top ]



Documentation generated on Tue, 6 Dec 2005 15:11:36 +0200 by phpDocumentor 1.3.0RC3