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_ThrowError

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

Class Overview


tNG_ThrowError class;


Author(s):

Variables

Methods



Class Details

[line 9]
tNG_ThrowError class;



Tags:

access:  public


[ Top ]


Class Variables

$errorMsg =

[line 21]

error message to be used



Tags:

access:  public

Type:   string


[ Top ]

$field =

[line 33]

field name



Tags:

access:  public

Type:   string


[ Top ]

$fieldErrorMsg =

[line 27]

error message to be used on the field in the page



Tags:

access:  public

Type:   string


[ Top ]

$tNG =

[line 15]

transaction object



Tags:

access:  public

Type:   object tNG


[ Top ]



Class Methods


constructor tNG_ThrowError [line 39]

tNG_ThrowError tNG_ThrowError( object tNG &$tNG)

Constructor. set the transaction and put default values for other vars



Tags:

access:  public


Parameters:

object tNG   &$tNG   detail transaction

[ Top ]

method Execute [line 75]

object error Execute( )

Main method of the class. Execute the code

Return the error object with the error message in it and set the field error message on the field from transaction if the field was set in the class;




Tags:

access:  public


[ Top ]

method setErrorMsg [line 50]

void setErrorMsg( string $errorMsg)

setter. set the error message



Tags:

access:  public


Parameters:

string   $errorMsg  

[ Top ]

method setField [line 66]

void setField( string $field)

setter. set the field name



Tags:

access:  public


Parameters:

string   $field  

[ Top ]

method setFieldErrorMsg [line 58]

void setFieldErrorMsg( string $fieldErrorMsg)

setter. set the field error message



Tags:

access:  public


Parameters:

string   $fieldErrorMsg  

[ Top ]



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