Stud.IP  5.4
AuthorObject Class Reference
Inheritance diagram for AuthorObject:
DatabaseObject EvaluationExportManager StudipObject EvaluationObjectDB EvaluationExportManagerCSV EvaluationObject EvaluationAnswerDB EvaluationDB EvaluationGroupDB EvaluationQuestionDB Evaluation EvaluationAnswer EvaluationGroup EvaluationQuestion

Public Member Functions

 __construct ()
 
 x_instanceof ()
 
 isError ()
 
 getErrors ()
 
 resetErrors ()
 
 throwError ($errcode, $errstring)
 
 throwErrorFromClass (AuthorObject $class)
 

Data Fields

 $errorArray
 
 $instanceof
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Constructor public

Member Function Documentation

◆ getErrors()

getErrors ( )

Gives the codes and descriptions of the internal errors public

Returns
array The errors as an Array like "1" => "Could not open DB"

◆ isError()

isError ( )

Gives the internal errorcode public

Returns
boolean True if an error exists

◆ resetErrors()

resetErrors ( )

Resets the errorcodes and descriptions public

◆ throwError()

throwError (   $errcode,
  $errstring 
)

Sets the errorcode (internal) public

Parameters
integer$errcodeThe code of the error
string$errstringThe description of the error

◆ throwErrorFromClass()

throwErrorFromClass ( AuthorObject  $class)

Sets the errorcode from other classes (internal) private

Parameters
object$classThe class with the error

◆ x_instanceof()

x_instanceof ( )

Gets the type of object public

Returns
string The type of object. See INSTANCEOF_*

Field Documentation

◆ $errorArray

array $errorArray

Holds the code and description of an internal error private

◆ $instanceof

string $instanceof

Holds the type of object. See INSTANCEOF_* private


The documentation for this class was generated from the following file: