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_CheckMasterRecord

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

Class Overview

tNG_CheckTableField
   |
   --tNG_CheckMasterRecord

This the CheckMasterRecord trigger; extends the tNG_CheckTableField class; Checks if a master record exists; it is used inside of a trigger registered to a transaction.


Author(s):

Variables

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 CheckMasterRecord trigger; extends the tNG_CheckTableField class; Checks if a master record exists; it is used inside of a trigger registered to a transaction.



Tags:

access:  public


[ Top ]


Class Variables

$fkField =  ''

[line 16]

The name of the foreign key column;



Tags:

access:  public

Type:   string


[ Top ]



Class Methods


constructor tNG_CheckMasterRecord [line 22]

tNG_CheckMasterRecord tNG_CheckMasterRecord( 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 43]

mix Execute( none 0)

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



Tags:

return:  null or error object if records don't exists
access:  public


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

Parameters:

none   0  

[ Top ]

method setFkFieldName [line 31]

nothing setFkFieldName( string $field)

setter. Sets the name of the foreign key column, type and value;



Tags:

access:  public


Parameters:

string   $field   the name of the foreign key column

[ Top ]



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