diff --git a/.hgignore b/.hgignore index 29a79b09..f1a7c8b0 100644 --- a/.hgignore +++ b/.hgignore @@ -1,4 +1,5 @@ syntax: regexp +^doc/* ^logs/* ^media/* ^tmp/* diff --git a/doc/classes/PHPMailer.html b/doc/classes/PHPMailer.html deleted file mode 100644 index b5d80bfc..00000000 --- a/doc/classes/PHPMailer.html +++ /dev/null @@ -1,7052 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\PHPMailer

-

PHPMailer - PHP email creation and transport class.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- __construct()
- __destruct()
- isHTML()
- isSMTP()
- isMail()
- isSendmail()
- isQmail()
- addAddress()
- addCC()
- addBCC()
- addReplyTo()
- setFrom()
- getLastMessageID()
- validateAddress()
- send()
- preSend()
- postSend()
- getSMTPInstance()
- smtpConnect()
- smtpClose()
- setLanguage()
- getTranslations()
- addrAppend()
- addrFormat()
- wrapText()
- utf8CharBoundary()
- setWordWrap()
- createHeader()
- getMailMIME()
- getSentMIMEMessage()
- createBody()
- headerLine()
- textLine()
- addAttachment()
- getAttachments()
- encodeString()
- encodeHeader()
- hasMultiBytes()
- has8bitChars()
- base64EncodeWrapMB()
- encodeQP()
- encodeQPphp()
- encodeQ()
- addStringAttachment()
- addEmbeddedImage()
- addStringEmbeddedImage()
- inlineImageExists()
- attachmentExists()
- alternativeExists()
- clearAddresses()
- clearCCs()
- clearBCCs()
- clearReplyTos()
- clearAllRecipients()
- clearAttachments()
- clearCustomHeaders()
- rfcDate()
- isError()
- fixEOL()
- addCustomHeader()
- msgHTML()
- html2text()
- _mime_types()
- filenameToType()
- mb_pathinfo()
- set()
- secureHeader()
- normalizeBreaks()
- sign()
- DKIM_QP()
- DKIM_Sign()
- DKIM_HeaderC()
- DKIM_BodyC()
- DKIM_Add()
- getToAddresses()
- getCcAddresses()
- getBccAddresses()
- getReplyToAddresses()
- getAllRecipientAddresses()
-
-
- $Version
- $Priority
- $CharSet
- $ContentType
- $Encoding
- $ErrorInfo
- $From
- $FromName
- $Sender
- $ReturnPath
- $Subject
- $Body
- $AltBody
- $Ical
- $WordWrap
- $Mailer
- $Sendmail
- $UseSendmailOptions
- $PluginDir
- $ConfirmReadingTo
- $Hostname
- $MessageID
- $MessageDate
- $Host
- $Port
- $Helo
- $SMTPSecure
- $SMTPAuth
- $Username
- $Password
- $AuthType
- $Realm
- $Workstation
- $Timeout
- $SMTPDebug
- $Debugoutput
- $SMTPKeepAlive
- $SingleTo
- $SingleToArray
- $do_verp
- $AllowEmpty
- $LE
- $DKIM_selector
- $DKIM_identity
- $DKIM_passphrase
- $DKIM_domain
- $DKIM_private
- $action_function
- $XMailer
-
-
- STOP_MESSAGE
- STOP_CONTINUE
- STOP_CRITICAL
- CRLF
-
-
-
-
- edebug()
- addAnAddress()
- sendmailSend()
- mailSend()
- smtpSend()
- getBoundary()
- endBoundary()
- setMessageType()
- attachAll()
- encodeFile()
- setError()
- serverHostname()
- lang()
- doCallback()
-
-
- $MIMEBody
- $MIMEHeader
- $mailHeader
- $smtp
- $to
- $cc
- $bcc
- $ReplyTo
- $all_recipients
- $attachment
- $CustomHeader
- $lastMessageID
- $message_type
- $boundary
- $language
- $error_count
- $sign_cert_file
- $sign_key_file
- $sign_key_pass
- $exceptions
-
-
- N/A -
-
-
-
- mailPassthru()
-
-
- No private properties found -
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

STOP_MESSAGE

-
STOP_MESSAGE
-

Error severity: message only, continue processing

- -
-
- -
- -
-
- -
-

STOP_CONTINUE

-
STOP_CONTINUE
-

Error severity: message, likely ok to continue processing

- -
-
- -
- -
-
- -
-

STOP_CRITICAL

-
STOP_CRITICAL
-

Error severity: message, plus full stop, critical error reached

- -
-
- -
- -
-
- -
-

CRLF

-
CRLF
-

SMTP RFC standard line ending

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$Version

-
$Version : 
-

The PHPMailer Version number.

- - -

Type

- -
-
- -
- -
-
- -
-

$Priority

-
$Priority : 
-

Email priority.

-

Options: 1 = High, 3 = Normal, 5 = low.

- -

Type

- -
-
- -
- -
-
- -
-

$CharSet

-
$CharSet : 
-

The character set of the message.

- - -

Type

- -
-
- -
- -
-
- -
-

$ContentType

-
$ContentType : 
-

The MIME Content-type of the message.

- - -

Type

- -
-
- -
- -
-
- -
-

$Encoding

-
$Encoding : 
-

The message encoding.

-

Options: "8bit", "7bit", "binary", "base64", and "quoted-printable".

- -

Type

- -
-
- -
- -
-
- -
-

$ErrorInfo

-
$ErrorInfo : 
-

Holds the most recent mailer error message.

- - -

Type

- -
-
- -
- -
-
- -
-

$From

-
$From : 
-

The From email address for the message.

- - -

Type

- -
-
- -
- -
-
- -
-

$FromName

-
$FromName : 
-

The From name of the message.

- - -

Type

- -
-
- -
- -
-
- -
-

$Sender

-
$Sender : 
-

The Sender email (Return-Path) of the message.

-

If not empty, will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode.

- -

Type

- -
-
- -
- -
-
- -
-

$ReturnPath

-
$ReturnPath : 
-

The Return-Path of the message.

-

If empty, it will be set to either From or Sender.

- -

Type

- -
-
- -
- -
-
- -
-

$Subject

-
$Subject : 
-

The Subject of the message.

- - -

Type

- -
-
- -
- -
-
- -
-

$Body

-
$Body : 
-

An HTML or plain text message body.

-

If HTML then call isHTML(true).

- -

Type

- -
-
- -
- -
-
- -
-

$AltBody

-
$AltBody : 
-

The plain-text message body.

-

This body can be read by mail clients that do not have HTML email -capability such as mutt & Eudora. -Clients that can read HTML will view the normal Body.

- -

Type

- -
-
- -
- -
-
- -
-

$Ical

-
$Ical : 
-

An iCal message part body.

-

Only supported in simple alt or alt_inline message types -To generate iCal events, use the bundled extras/EasyPeasyICS.php class or iCalcreator

- -

Type

- -
-
- -
- -
-
- -
-

$WordWrap

-
$WordWrap : 
-

Word-wrap the message body to this number of chars.

- - -

Type

- -
-
- -
- -
-
- -
-

$Mailer

-
$Mailer : 
-

Which method to use to send mail.

-

Options: "mail", "sendmail", or "smtp".

- -

Type

- -
-
- -
- -
-
- -
-

$Sendmail

-
$Sendmail : 
-

The path to the sendmail program.

- - -

Type

- -
-
- -
- -
-
- -
-

$UseSendmailOptions

-
$UseSendmailOptions : 
-

Whether mail() uses a fully sendmail-compatible MTA.

-

One which supports sendmail's "-oi -f" options.

- -

Type

- -
-
- -
- -
-
- -
-

$PluginDir

-
$PluginDir : 
-

Path to PHPMailer plugins.

-

Useful if the SMTP class is not in the PHP include path.

- -

Type

- -
-
- -
- -
-
- -
-

$ConfirmReadingTo

-
$ConfirmReadingTo : 
-

The email address that a reading confirmation should be sent to.

- - -

Type

- -
-
- -
- -
-
- -
-

$Hostname

-
$Hostname : 
-

The hostname to use in Message-Id and Received headers -and as default HELO string.

-

If empty, the value returned -by SERVER_NAME is used or 'localhost.localdomain'.

- -

Type

- -
-
- -
- -
-
- -
-

$MessageID

-
$MessageID : 
-

An ID to be used in the Message-Id header.

-

If empty, a unique id will be generated.

- -

Type

- -
-
- -
- -
-
- -
-

$MessageDate

-
$MessageDate : 
-

The message Date to be used in the Date header.

-

If empty, the current date will be added.

- -

Type

- -
-
- -
- -
-
- -
-

$Host

-
$Host : 
-

SMTP hosts.

-

Either a single hostname or multiple semicolon-delimited hostnames. -You can also specify a different port -for each host by using this format: [hostname:port] -(e.g. "smtp1.example.com:25;smtp2.example.com"). -Hosts will be tried in order.

- -

Type

- -
-
- -
- -
-
- -
-

$Port

-
$Port : 
-

The default SMTP server port.

- - -

Type

- -
-
- -
- -
-
- -
-

$Helo

-
$Helo : 
-

The SMTP HELO of the message.

-

Default is $Hostname.

- -

Type

- -
-
- -
- -
-
- -
-

$SMTPSecure

-
$SMTPSecure : 
-

The secure connection prefix.

-

Options: "", "ssl" or "tls"

- -

Type

- -
-
- -
- -
-
- -
-

$SMTPAuth

-
$SMTPAuth : 
-

Whether to use SMTP authentication.

-

Uses the Username and Password properties.

- -

Type

- -
-
- -
- -
-
- -
-

$Username

-
$Username : 
-

SMTP username.

- - -

Type

- -
-
- -
- -
-
- -
-

$Password

-
$Password : 
-

SMTP password.

- - -

Type

- -
-
- -
- -
-
- -
-

$AuthType

-
$AuthType : 
-

SMTP auth type.

-

Options are LOGIN (default), PLAIN, NTLM, CRAM-MD5

- -

Type

- -
-
- -
- -
-
- -
-

$Realm

-
$Realm : 
-

SMTP realm.

-

Used for NTLM auth

- -

Type

- -
-
- -
- -
-
- -
-

$Workstation

-
$Workstation : 
-

SMTP workstation.

-

Used for NTLM auth

- -

Type

- -
-
- -
- -
-
- -
-

$Timeout

-
$Timeout : 
-

The SMTP server timeout in seconds.

- - -

Type

- -
-
- -
- -
-
- -
-

$SMTPDebug

-
$SMTPDebug : 
-

SMTP class debug output mode.

-

Options: -0: no output -1: commands -2: data and commands -3: as 2 plus connection status -4: low level data output

- -

Type

- -
-
- -
- -
-
- -
-

$Debugoutput

-
$Debugoutput : 
-

How to handle debug output.

-

Options: -'echo': Output plain-text as-is, appropriate for CLI -'html': Output escaped, line breaks converted to
, appropriate for browser output -'error_log': Output to error log as configured in php.ini

- -

Type

- -
-
- -
- -
-
- -
-

$SMTPKeepAlive

-
$SMTPKeepAlive : 
-

Whether to keep SMTP connection open after each message.

-

If this is set to true then to close the connection -requires an explicit call to smtpClose().

- -

Type

- -
-
- -
- -
-
- -
-

$SingleTo

-
$SingleTo : 
-

Whether to split multiple to addresses into multiple messages -or send them all in one message.

- - -

Type

- -
-
- -
- -
-
- -
-

$SingleToArray

-
$SingleToArray : 
-

Storage for addresses when SingleTo is enabled.

- - -

Type

- -
-
- -
- -
-
- -
-

$do_verp

-
$do_verp : 
-

Whether to generate VERP addresses on send.

-

Only applicable when sending via SMTP.

- -

Type

- -
-
- -
- -
-
- -
-

$AllowEmpty

-
$AllowEmpty : 
-

Whether to allow sending messages with an empty body.

- - -

Type

- -
-
- -
- -
-
- -
-

$LE

-
$LE : 
-

The default line ending.

- - -

Type

- -
-
- -
- -
-
- -
-

$DKIM_selector

-
$DKIM_selector : 
-

DKIM selector.

- - -

Type

- -
-
- -
- -
-
- -
-

$DKIM_identity

-
$DKIM_identity : 
-

DKIM Identity.

-

Usually the email address used as the source of the email

- -

Type

- -
-
- -
- -
-
- -
-

$DKIM_passphrase

-
$DKIM_passphrase : 
-

DKIM passphrase.

-

Used if your key is encrypted.

- -

Type

- -
-
- -
- -
-
- -
-

$DKIM_domain

-
$DKIM_domain : 
-

DKIM signing domain name.

- - -

Type

- -
-
- -
- -
-
- -
-

$DKIM_private

-
$DKIM_private : 
-

DKIM private key file path.

- - -

Type

- -
-
- -
- -
-
- -
-

$action_function

-
$action_function : 
-

Callback Action function name.

-

The function that handles the result of the send email action. -It is called out by send() for each email sent.

-

Value can be any php callable: http://www.php.net/is_callable

-

Parameters: -bool $result result of the send action -string $to email address of the recipient -string $cc cc email addresses -string $bcc bcc email addresses -string $subject the subject -string $body the email body -string $from email address of sender

- -

Type

- -
-
- -
- -
-
- -
-

$XMailer

-
$XMailer : 
-

What to use in the X-Mailer header.

-

Options: null for default, whitespace for none, or a string to use

- -

Type

- -
-
- -
- -
-
- -
-

$MIMEBody

-
$MIMEBody : 
-

The complete compiled MIME message body.

- - -

Type

- -
-
- -
- -
-
- -
-

$MIMEHeader

-
$MIMEHeader : 
-

The complete compiled MIME message headers.

- - -

Type

- -
-
- -
- -
-
- -
-

$mailHeader

-
$mailHeader : 
-

Extra headers that createHeader() doesn't fold in.

- - -

Type

- -
-
- -
- -
-
- -
-

$smtp

-
$smtp : 
-

An instance of the SMTP sender class.

- - -

Type

- -
-
- -
- -
-
- -
-

$to

-
$to : 
-

The array of 'to' addresses.

- - -

Type

- -
-
- -
- -
-
- -
-

$cc

-
$cc : 
-

The array of 'cc' addresses.

- - -

Type

- -
-
- -
- -
-
- -
-

$bcc

-
$bcc : 
-

The array of 'bcc' addresses.

- - -

Type

- -
-
- -
- -
-
- -
-

$ReplyTo

-
$ReplyTo : 
-

The array of reply-to names and addresses.

- - -

Type

- -
-
- -
- -
-
- -
-

$all_recipients

-
$all_recipients : 
-

An array of all kinds of addresses.

-

Includes all of $to, $cc, $bcc, $replyto

- -

Type

- -
-
- -
- -
-
- -
-

$attachment

-
$attachment : 
-

The array of attachments.

- - -

Type

- -
-
- -
- -
-
- -
-

$CustomHeader

-
$CustomHeader : 
-

The array of custom headers.

- - -

Type

- -
-
- -
- -
-
- -
-

$lastMessageID

-
$lastMessageID : 
-

The most recent Message-ID (including angular brackets).

- - -

Type

- -
-
- -
- -
-
- -
-

$message_type

-
$message_type : 
-

The message's MIME type.

- - -

Type

- -
-
- -
- -
-
- -
-

$boundary

-
$boundary : 
-

The array of MIME boundary strings.

- - -

Type

- -
-
- -
- -
-
- -
-

$language

-
$language : 
-

The array of available languages.

- - -

Type

- -
-
- -
- -
-
- -
-

$error_count

-
$error_count : 
-

The number of errors encountered.

- - -

Type

- -
-
- -
- -
-
- -
-

$sign_cert_file

-
$sign_cert_file : 
-

The S/MIME certificate file path.

- - -

Type

- -
-
- -
- -
-
- -
-

$sign_key_file

-
$sign_key_file : 
-

The S/MIME key file path.

- - -

Type

- -
-
- -
- -
-
- -
-

$sign_key_pass

-
$sign_key_pass : 
-

The S/MIME password for the key.

-

Used only if the key is encrypted.

- -

Type

- -
-
- -
- -
-
- -
-

$exceptions

-
$exceptions : 
-

Whether to throw exceptions for errors.

- - -

Type

- -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

__construct()

- -
__construct(boolean  $exceptions = false) 
-

Constructor

- - -

Parameters

- - - - - - -
boolean$exceptions

Should we throw external exceptions?

- - - -
-
- -
- -
-
- -
-

__destruct()

- -
__destruct() 
-

Destructor.

- - - - - -
-
- -
- -
-
- -
-

isHTML()

- -
isHTML(boolean  $ishtml = true) : void
-

Sets message type to HTML or plain.

- - -

Parameters

- - - - - - -
boolean$ishtml

True for HTML mode.

- - - -
-
- -
- -
-
- -
-

isSMTP()

- -
isSMTP() : void
-

Send messages using SMTP.

- - - - - -
-
- -
- -
-
- -
-

isMail()

- -
isMail() : void
-

Send messages using PHP's mail() function.

- - - - - -
-
- -
- -
-
- -
-

isSendmail()

- -
isSendmail() : void
-

Send messages using $Sendmail.

- - - - - -
-
- -
- -
-
- -
-

isQmail()

- -
isQmail() : void
-

Send messages using qmail.

- - - - - -
-
- -
- -
-
- -
-

addAddress()

- -
addAddress(string  $address, string  $name = '') : boolean
-

Add a "To" address.

- - -

Parameters

- - - - - - - - - - - -
string$address
string$name
- - -

Returns

- boolean - —

true on success, false if address already used

- -
-
- -
- -
-
- -
-

addCC()

- -
addCC(string  $address, string  $name = '') : boolean
-

Add a "CC" address.

- - -

Parameters

- - - - - - - - - - - -
string$address
string$name
- - -

Returns

- boolean - —

true on success, false if address already used

- -
-
- -
- -
-
- -
-

addBCC()

- -
addBCC(string  $address, string  $name = '') : boolean
-

Add a "BCC" address.

- - -

Parameters

- - - - - - - - - - - -
string$address
string$name
- - -

Returns

- boolean - —

true on success, false if address already used

- -
-
- -
- -
-
- -
-

addReplyTo()

- -
addReplyTo(string  $address, string  $name = '') : boolean
-

Add a "Reply-to" address.

- - -

Parameters

- - - - - - - - - - - -
string$address
string$name
- - -

Returns

- boolean - -
-
- -
- -
-
- -
-

setFrom()

- -
setFrom(string  $address, string  $name = '', boolean  $auto = true) : boolean
-

Set the From and FromName properties.

- - -

Parameters

- - - - - - - - - - - - - - - - -
string$address
string$name
boolean$auto

Whether to also set the Sender address, defaults to true

- -

Throws

-
-
\phpmailerException
-
-
- -

Returns

- boolean - -
-
- -
- -
-
- -
-

getLastMessageID()

- -
getLastMessageID() : string
-

Return the Message-ID header of the last email.

-

Technically this is the value from the last time the headers were created, -but it's also the message ID of the last sent message except in -pathological cases.

- - - -

Returns

- string - -
-
- -
- -
-
- -
-

validateAddress()

- -
validateAddress(string  $address, string  $patternselect = 'auto') : boolean
-

Check that a string looks like an email address.

- - -

Parameters

- - - - - - - - - - - -
string$address

The email address to check

string$patternselect

A selector for the validation pattern to use :

-
    -
  • auto Pick strictest one automatically;
  • -
  • pcre8 Use the squiloople.com pattern, requires PCRE > 8.0, PHP >= 5.3.2, 5.2.14;
  • -
  • pcre Use old PCRE implementation;
  • -
  • php Use PHP built-in FILTER_VALIDATE_EMAIL; same as pcre8 but does not allow 'dotless' domains;
  • -
  • html5 Use the pattern given by the HTML5 spec for 'email' type form input elements.
  • -
  • noregex Don't use a regex: super fast, really dumb.
  • -
- - -

Returns

- boolean - -
-
- -
- -
-
- -
-

send()

- -
send() : boolean
-

Create a message and send it.

-

Uses the sending method specified by $Mailer.

- - -

Throws

-
-
\phpmailerException
-
-
- -

Returns

- boolean - —

false on error - See the ErrorInfo property for details of the error.

- -
-
- -
- -
-
- -
-

preSend()

- -
preSend() : boolean
-

Prepare a message for sending.

- - - -

Throws

-
-
\phpmailerException
-
-
- -

Returns

- boolean - -
-
- -
- -
-
- -
-

postSend()

- -
postSend() : boolean
-

Actually send a message.

-

Send the email via the selected mechanism

- - -

Throws

-
-
\phpmailerException
-
-
- -

Returns

- boolean - -
-
- -
- -
-
- -
-

getSMTPInstance()

- -
getSMTPInstance() : \SMTP
-

Get an instance to use for SMTP operations.

-

Override this function to load your own SMTP implementation

- - - -

Returns

- \SMTP - -
-
- -
- -
-
- -
-

smtpConnect()

- -
smtpConnect(array  $options = array()) : boolean
-

Initiate a connection to an SMTP server.

-

Returns false if the operation failed.

- -

Parameters

- - - - - - -
array$options

An array of options compatible with stream_context_create()

- -

Throws

-
-
\phpmailerException
-
-
- -

Returns

- boolean - -
-
- -
- -
-
- -
-

smtpClose()

- -
smtpClose() : void
-

Close the active SMTP session if one exists.

- - - - - -
-
- -
- -
-
- -
-

setLanguage()

- -
setLanguage(string  $langcode = 'en', string  $lang_path = '') : boolean
-

Set the language for error messages.

-

Returns false if it cannot load the language file. -The default language is English.

- -

Parameters

- - - - - - - - - - - -
string$langcode

ISO 639-1 2-character language code (e.g. French is "fr")

string$lang_path

Path to the language file directory, with trailing separator (slash)

- - -

Returns

- boolean - -
-
- -
- -
-
- -
-

getTranslations()

- -
getTranslations() : array
-

Get the array of strings for the current language.

- - - - -

Returns

- array - -
-
- -
- -
-
- -
-

addrAppend()

- -
addrAppend(string  $type, array  $addr) : string
-

Create recipient headers.

- - -

Parameters

- - - - - - - - - - - -
string$type
array$addr

An array of recipient, -where each recipient is a 2-element indexed array with element 0 containing an address -and element 1 containing a name, like: -array(array('joe@example.com', 'Joe User'), array('zoe@example.com', 'Zoe User'))

- - -

Returns

- string - -
-
- -
- -
-
- -
-

addrFormat()

- -
addrFormat(array  $addr) : string
-

Format an address for use in a message header.

- - -

Parameters

- - - - - - -
array$addr

A 2-element indexed array, element 0 containing an address, element 1 containing a name -like array('joe@example.com', 'Joe User')

- - -

Returns

- string - -
-
- -
- -
-
- -
-

wrapText()

- -
wrapText(string  $message, integer  $length, boolean  $qp_mode = false) : string
-

Word-wrap message.

-

For use with mailers that do not automatically perform wrapping -and for quoted-printable encoded messages. -Original written by philippe.

- -

Parameters

- - - - - - - - - - - - - - - - -
string$message

The message to wrap

integer$length

The line length to wrap to

boolean$qp_mode

Whether to run in Quoted-Printable mode

- - -

Returns

- string - -
-
- -
- -
-
- -
-

utf8CharBoundary()

- -
utf8CharBoundary(string  $encodedText, integer  $maxLength) : integer
-

Find the last character boundary prior to $maxLength in a utf-8 -quoted (printable) encoded string.

-

Original written by Colin Brown.

- -

Parameters

- - - - - - - - - - - -
string$encodedText

utf-8 QP text

integer$maxLength

find last character boundary prior to this length

- - -

Returns

- integer - -
-
- -
- -
-
- -
-

setWordWrap()

- -
setWordWrap() : void
-

Set the body wrapping.

- - - - - -
-
- -
- -
-
- -
-

createHeader()

- -
createHeader() : string
-

Assemble message headers.

- - - - -

Returns

- string - —

The assembled headers

- -
-
- -
- -
-
- -
-

getMailMIME()

- -
getMailMIME() : string
-

Get the message MIME type headers.

- - - - -

Returns

- string - -
-
- -
- -
-
- -
-

getSentMIMEMessage()

- -
getSentMIMEMessage() : string
-

Returns the whole MIME message.

-

Includes complete headers and body. -Only valid post preSend().

- - - -

Returns

- string - -
-
- -
- -
-
- -
-

createBody()

- -
createBody() : string
-

Assemble the message body.

-

Returns an empty string on failure.

- - -

Throws

-
-
\phpmailerException
-
-
- -

Returns

- string - —

The assembled message body

- -
-
- -
- -
-
- -
-

headerLine()

- -
headerLine(string  $name, string  $value) : string
-

Format a header line.

- - -

Parameters

- - - - - - - - - - - -
string$name
string$value
- - -

Returns

- string - -
-
- -
- -
-
- -
-

textLine()

- -
textLine(string  $value) : string
-

Return a formatted mail line.

- - -

Parameters

- - - - - - -
string$value
- - -

Returns

- string - -
-
- -
- -
-
- -
-

addAttachment()

- -
addAttachment(string  $path, string  $name = '', string  $encoding = 'base64', string  $type = '', string  $disposition = 'attachment') : boolean
-

Add an attachment from a path on the filesystem.

-

Returns false if the file could not be found or read.

- -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - -
string$path

Path to the attachment.

string$name

Overrides the attachment name.

string$encoding

File encoding (see $Encoding).

string$type

File extension (MIME) type.

string$disposition

Disposition to use

- -

Throws

-
-
\phpmailerException
-
-
- -

Returns

- boolean - -
-
- -
- -
-
- -
-

getAttachments()

- -
getAttachments() : array
-

Return the array of attachments.

- - - - -

Returns

- array - -
-
- -
- -
-
- -
-

encodeString()

- -
encodeString(string  $str, string  $encoding = 'base64') : string
-

Encode a string in requested format.

-

Returns an empty string on failure.

- -

Parameters

- - - - - - - - - - - -
string$str

The text to encode

string$encoding

The encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable'

- - -

Returns

- string - -
-
- -
- -
-
- -
-

encodeHeader()

- -
encodeHeader(string  $str, string  $position = 'text') : string
-

Encode a header string optimally.

-

Picks shortest of Q, B, quoted-printable or none.

- -

Parameters

- - - - - - - - - - - -
string$str
string$position
- - -

Returns

- string - -
-
- -
- -
-
- -
-

hasMultiBytes()

- -
hasMultiBytes(string  $str) : boolean
-

Check if a string contains multi-byte characters.

- - -

Parameters

- - - - - - -
string$str

multi-byte text to wrap encode

- - -

Returns

- boolean - -
-
- -
- -
-
- -
-

has8bitChars()

- -
has8bitChars(string  $text) : boolean
-

Does a string contain any 8-bit chars (in any charset)?

- - -

Parameters

- - - - - - -
string$text
- - -

Returns

- boolean - -
-
- -
- -
-
- -
-

base64EncodeWrapMB()

- -
base64EncodeWrapMB(string  $str, string  $linebreak = null) : string
-

Encode and wrap long multibyte strings for mail headers -without breaking lines within a character.

-

Adapted from a function by paravoid

- -

Parameters

- - - - - - - - - - - -
string$str

multi-byte text to wrap encode

string$linebreak

string to use as linefeed/end-of-line

- - -

Returns

- string - -
-
- -
- -
-
- -
-

encodeQP()

- -
encodeQP(string  $string, integer  $line_max = 76) : string
-

Encode a string in quoted-printable format.

-

According to RFC2045 section 6.7.

- -

Parameters

- - - - - - - - - - - -
string$string

The text to encode

integer$line_max

Number of chars allowed on a line before wrapping

- - -

Returns

- string - -
-
- -
- -
-
- -
-

encodeQPphp()

- -
encodeQPphp(string  $string, integer  $line_max = 76, boolean  $space_conv = false) : string
-

Backward compatibility wrapper for an old QP encoding function that was removed.

- - -

Parameters

- - - - - - - - - - - - - - - - -
string$string
integer$line_max
boolean$space_conv
- - -

Returns

- string - -
-
- -
- -
-
- -
-

encodeQ()

- -
encodeQ(string  $str, string  $position = 'text') : string
-

Encode a string using Q encoding.

- - -

Parameters

- - - - - - - - - - - -
string$str

the text to encode

string$position

Where the text is going to be used, see the RFC for what that means

- - -

Returns

- string - -
-
- -
- -
-
- -
-

addStringAttachment()

- -
addStringAttachment(string  $string, string  $filename, string  $encoding = 'base64', string  $type = '', string  $disposition = 'attachment') : void
-

Add a string or binary attachment (non-filesystem).

-

This method can be used to attach ascii or binary data, -such as a BLOB record from a database.

- -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - -
string$string

String attachment data.

string$filename

Name of the attachment.

string$encoding

File encoding (see $Encoding).

string$type

File extension (MIME) type.

string$disposition

Disposition to use

- - - -
-
- -
- -
-
- -
-

addEmbeddedImage()

- -
addEmbeddedImage(string  $path, string  $cid, string  $name = '', string  $encoding = 'base64', string  $type = '', string  $disposition = 'inline') : boolean
-

Add an embedded (inline) attachment from a file.

-

This can include images, sounds, and just about any other document type. -These differ from 'regular' attachmants in that they are intended to be -displayed inline with the message, not just attached for download. -This is used in HTML messages that embed the images -the HTML refers to using the $cid value.

- -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
string$path

Path to the attachment.

string$cid

Content ID of the attachment; Use this to reference -the content when using an embedded image in HTML.

string$name

Overrides the attachment name.

string$encoding

File encoding (see $Encoding).

string$type

File MIME type.

string$disposition

Disposition to use

- - -

Returns

- boolean - —

True on successfully adding an attachment

- -
-
- -
- -
-
- -
-

addStringEmbeddedImage()

- -
addStringEmbeddedImage(string  $string, string  $cid, string  $name = '', string  $encoding = 'base64', string  $type = '', string  $disposition = 'inline') : boolean
-

Add an embedded stringified attachment.

-

This can include images, sounds, and just about any other document type. -Be sure to set the $type to an image type for images: -JPEG images use 'image/jpeg', GIF uses 'image/gif', PNG uses 'image/png'.

- -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
string$string

The attachment binary data.

string$cid

Content ID of the attachment; Use this to reference -the content when using an embedded image in HTML.

string$name
string$encoding

File encoding (see $Encoding).

string$type

MIME type.

string$disposition

Disposition to use

- - -

Returns

- boolean - —

True on successfully adding an attachment

- -
-
- -
- -
-
- -
-

inlineImageExists()

- -
inlineImageExists() : boolean
-

Check if an inline attachment is present.

- - - - -

Returns

- boolean - -
-
- -
- -
-
- -
-

attachmentExists()

- -
attachmentExists() : boolean
-

Check if an attachment (non-inline) is present.

- - - - -

Returns

- boolean - -
-
- -
- -
-
- -
-

alternativeExists()

- -
alternativeExists() : boolean
-

Check if this message has an alternative body set.

- - - - -

Returns

- boolean - -
-
- -
- -
-
- -
-

clearAddresses()

- -
clearAddresses() : void
-

Clear all To recipients.

- - - - - -
-
- -
- -
-
- -
-

clearCCs()

- -
clearCCs() : void
-

Clear all CC recipients.

- - - - - -
-
- -
- -
-
- -
-

clearBCCs()

- -
clearBCCs() : void
-

Clear all BCC recipients.

- - - - - -
-
- -
- -
-
- -
-

clearReplyTos()

- -
clearReplyTos() : void
-

Clear all ReplyTo recipients.

- - - - - -
-
- -
- -
-
- -
-

clearAllRecipients()

- -
clearAllRecipients() : void
-

Clear all recipient types.

- - - - - -
-
- -
- -
-
- -
-

clearAttachments()

- -
clearAttachments() : void
-

Clear all filesystem, string, and binary attachments.

- - - - - -
-
- -
- -
-
- -
-

clearCustomHeaders()

- -
clearCustomHeaders() : void
-

Clear all custom headers.

- - - - - -
-
- -
- -
-
- -
-

rfcDate()

- -
rfcDate() : string
-

Return an RFC 822 formatted date.

- - - - -

Returns

- string - -
-
- -
- -
-
- -
-

isError()

- -
isError() : boolean
-

Check if an error occurred.

- - - - -

Returns

- boolean - —

True if an error did occur.

- -
-
- -
- -
-
- -
-

fixEOL()

- -
fixEOL(string  $str) : string
-

Ensure consistent line endings in a string.

-

Changes every end of line from CRLF, CR or LF to $this->LE.

- -

Parameters

- - - - - - -
string$str

String to fixEOL

- - -

Returns

- string - -
-
- -
- -
-
- -
-

addCustomHeader()

- -
addCustomHeader(string  $name, string  $value = null) : void
-

Add a custom header.

-

$name value can be overloaded to contain -both header name and value (name:value)

- -

Parameters

- - - - - - - - - - - -
string$name

Custom header name

string$value

Header value

- - - -
-
- -
- -
-
- -
-

msgHTML()

- -
msgHTML(string  $message, string  $basedir = '', boolean  $advanced = false) : string
-

Create a message from an HTML string.

-

Automatically makes modifications for inline images and backgrounds -and creates a plain-text version by converting the HTML. -Overwrites any existing values in $this->Body and $this->AltBody

- -

Parameters

- - - - - - - - - - - - - - - - -
string$message

HTML message string

string$basedir

baseline directory for path

boolean$advanced

Whether to use the advanced HTML to text converter

- - -

Returns

- string - —

$message

- -
-
- -
- -
-
- -
-

html2text()

- -
html2text(string  $html, boolean  $advanced = false) : string
-

Convert an HTML string into plain text.

- - -

Parameters

- - - - - - - - - - - -
string$html

The HTML text to convert

boolean$advanced

Should this use the more complex html2text converter or just a simple one?

- - -

Returns

- string - -
-
- -
- -
-
- -
-

_mime_types()

- -
_mime_types(string  $ext = '') : string
-

Get the MIME type for a file extension.

- - -

Parameters

- - - - - - -
string$ext

File extension

- - -

Returns

- string - —

MIME type of file.

- -
-
- -
- -
-
- -
-

filenameToType()

- -
filenameToType(string  $filename) : string
-

Map a file name to a MIME type.

-

Defaults to 'application/octet-stream', i.e.. arbitrary binary data.

- -

Parameters

- - - - - - -
string$filename

A file name or full path, does not need to exist as a file

- - -

Returns

- string - -
-
- -
- -
-
- -
-

mb_pathinfo()

- -
mb_pathinfo(string  $path, integer|string  $options = null) : string|array
-

Multi-byte-safe pathinfo replacement.

-

Drop-in replacement for pathinfo(), but multibyte-safe, cross-platform-safe, old-version-safe. -Works similarly to the one in PHP >= 5.2.0

- -

Parameters

- - - - - - - - - - - -
string$path

A filename or path, does not need to exist as a file

integer|string$options

Either a PATHINFO_* constant, -or a string name to return only the specified piece, allows 'filename' to work on PHP < 5.2

- - -

Returns

- string|array - -
-
- -
- -
-
- -
-

set()

- -
set(string  $name, mixed  $value = '') : boolean
-

Set or reset instance properties.

-

Usage Example: -$page->set('X-Priority', '3');

- -

Parameters

- - - - - - - - - - - -
string$name
mixed$value

NOTE: will not work with arrays, there are no arrays to set/reset

- -

Throws

-
-
\phpmailerException
-
-
- -

Returns

- boolean - -
-
- -
- -
-
- -
-

secureHeader()

- -
secureHeader(string  $str) : string
-

Strip newlines to prevent header injection.

- - -

Parameters

- - - - - - -
string$str
- - -

Returns

- string - -
-
- -
- -
-
- -
-

normalizeBreaks()

- -
normalizeBreaks(string  $text, string  $breaktype = "\r\n") : string
-

Normalize line breaks in a string.

-

Converts UNIX LF, Mac CR and Windows CRLF line breaks into a single line break format. -Defaults to CRLF (for message bodies) and preserves consecutive breaks.

- -

Parameters

- - - - - - - - - - - -
string$text
string$breaktype

What kind of line break to use, defaults to CRLF

- - -

Returns

- string - -
-
- -
- -
-
- -
-

sign()

- -
sign(string  $cert_filename, string  $key_filename, string  $key_pass) 
-

Set the public and private key files and password for S/MIME signing.

- - -

Parameters

- - - - - - - - - - - - - - - - -
string$cert_filename
string$key_filename
string$key_pass

Password for private key

- - - -
-
- -
- -
-
- -
-

DKIM_QP()

- -
DKIM_QP(string  $txt) : string
-

Quoted-Printable-encode a DKIM header.

- - -

Parameters

- - - - - - -
string$txt
- - -

Returns

- string - -
-
- -
- -
-
- -
-

DKIM_Sign()

- -
DKIM_Sign(string  $signheader) : string
-

Generate a DKIM signature.

- - -

Parameters

- - - - - - -
string$signheader

Header

- -

Throws

-
-
\phpmailerException
-
-
- -

Returns

- string - -
-
- -
- -
-
- -
-

DKIM_HeaderC()

- -
DKIM_HeaderC(string  $signheader) : string
-

Generate a DKIM canonicalization header.

- - -

Parameters

- - - - - - -
string$signheader

Header

- - -

Returns

- string - -
-
- -
- -
-
- -
-

DKIM_BodyC()

- -
DKIM_BodyC(string  $body) : string
-

Generate a DKIM canonicalization body.

- - -

Parameters

- - - - - - -
string$body

Message Body

- - -

Returns

- string - -
-
- -
- -
-
- -
-

DKIM_Add()

- -
DKIM_Add(string  $headers_line, string  $subject, string  $body) : string
-

Create the DKIM header and body in a new message header.

- - -

Parameters

- - - - - - - - - - - - - - - - -
string$headers_line

Header lines

string$subject

Subject

string$body

Body

- - -

Returns

- string - -
-
- -
- -
-
- -
-

getToAddresses()

- -
getToAddresses() : array
-

Allows for public read access to 'to' property.

- - - - -

Returns

- array - -
-
- -
- -
-
- -
-

getCcAddresses()

- -
getCcAddresses() : array
-

Allows for public read access to 'cc' property.

- - - - -

Returns

- array - -
-
- -
- -
-
- -
-

getBccAddresses()

- -
getBccAddresses() : array
-

Allows for public read access to 'bcc' property.

- - - - -

Returns

- array - -
-
- -
- -
-
- -
-

getReplyToAddresses()

- -
getReplyToAddresses() : array
-

Allows for public read access to 'ReplyTo' property.

- - - - -

Returns

- array - -
-
- -
- -
-
- -
-

getAllRecipientAddresses()

- -
getAllRecipientAddresses() : array
-

Allows for public read access to 'all_recipients' property.

- - - - -

Returns

- array - -
-
- -
- -
-
- -
-

edebug()

- -
edebug(string  $str) 
-

Output debugging info via user-defined method.

-

Only if debug output is enabled.

- -

Parameters

- - - - - - -
string$str
- - - -
-
- -
- -
-
- -
-

addAnAddress()

- -
addAnAddress(string  $kind, string  $address, string  $name = '') : boolean
-

Add an address to one of the recipient arrays.

-

Addresses that have been added already return false, but do not throw exceptions

- -

Parameters

- - - - - - - - - - - - - - - - -
string$kind

One of 'to', 'cc', 'bcc', 'ReplyTo'

string$address

The email address to send to

string$name
- -

Throws

-
-
\phpmailerException
-
-
- -

Returns

- boolean - —

true on success, false if address already used or invalid in some way

- -
-
- -
- -
-
- -
-

sendmailSend()

- -
sendmailSend(string  $header, string  $body) : boolean
-

Send mail using the $Sendmail program.

- - -

Parameters

- - - - - - - - - - - -
string$header

The message headers

string$body

The message body

- -

Throws

-
-
\phpmailerException
-
-
- -

Returns

- boolean - -
-
- -
- -
-
- -
-

mailSend()

- -
mailSend(string  $header, string  $body) : boolean
-

Send mail using the PHP mail() function.

- - -

Parameters

- - - - - - - - - - - -
string$header

The message headers

string$body

The message body

- -

Throws

-
-
\phpmailerException
-
-
- -

Returns

- boolean - -
-
- -
- -
-
- -
-

smtpSend()

- -
smtpSend(string  $header, string  $body) : boolean
-

Send mail via SMTP.

-

Returns false if there is a bad MAIL FROM, RCPT, or DATA input. -Uses the PHPMailerSMTP class by default.

- -

Parameters

- - - - - - - - - - - -
string$header

The message headers

string$body

The message body

- -

Throws

-
-
\phpmailerException
-
-
- -

Returns

- boolean - -
-
- -
- -
-
- -
-

getBoundary()

- -
getBoundary(string  $boundary, string  $charSet, string  $contentType, string  $encoding) : string
-

Return the start of a message boundary.

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$boundary
string$charSet
string$contentType
string$encoding
- - -

Returns

- string - -
-
- -
- -
-
- -
-

endBoundary()

- -
endBoundary(string  $boundary) : string
-

Return the end of a message boundary.

- - -

Parameters

- - - - - - -
string$boundary
- - -

Returns

- string - -
-
- -
- -
-
- -
-

setMessageType()

- -
setMessageType() : void
-

Set the message type.

-

PHPMailer only supports some preset message types, -not arbitrary MIME structures.

- - - - -
-
- -
- -
-
- -
-

attachAll()

- -
attachAll(string  $disposition_type, string  $boundary) : string
-

Attach all file, string, and binary attachments to the message.

-

Returns an empty string on failure.

- -

Parameters

- - - - - - - - - - - -
string$disposition_type
string$boundary
- - -

Returns

- string - -
-
- -
- -
-
- -
-

encodeFile()

- -
encodeFile(string  $path, string  $encoding = 'base64') : string
-

Encode a file attachment in requested format.

-

Returns an empty string on failure.

- -

Parameters

- - - - - - - - - - - -
string$path

The full path to the file

string$encoding

The encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable'

- -

Throws

-
-
\phpmailerException
-
-
- -

Returns

- string - -
-
- -
- -
-
- -
-

setError()

- -
setError(string  $msg) : void
-

Add an error message to the error container.

- - -

Parameters

- - - - - - -
string$msg
- - - -
-
- -
- -
-
- -
-

serverHostname()

- -
serverHostname() : string
-

Get the server hostname.

-

Returns 'localhost.localdomain' if unknown.

- - - -

Returns

- string - -
-
- -
- -
-
- -
-

lang()

- -
lang(string  $key) : string
-

Get an error message in the current language.

- - -

Parameters

- - - - - - -
string$key
- - -

Returns

- string - -
-
- -
- -
-
- -
-

doCallback()

- -
doCallback(boolean  $isSent, string  $to, string  $cc, string  $bcc, string  $subject, string  $body, string  $from = null) 
-

Perform a callback.

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
boolean$isSent
string$to
string$cc
string$bcc
string$subject
string$body
string$from
- - - -
-
- -
- -
-
- -
-

mailPassthru()

- -
mailPassthru(string  $to, string  $subject, string  $body, string  $header, string  $params) : boolean
-

Call mail() in a safe_mode-aware fashion.

-

Also, unless sendmail_path points to sendmail (or something that -claims to be sendmail), don't pass params (not a perfect fix, -but it will do)

- -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - -
string$to

To

string$subject

Subject

string$body

Message Body

string$header

Additional Header(s)

string$params

Params

- - -

Returns

- boolean - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/SMTP.html b/doc/classes/SMTP.html deleted file mode 100644 index 1f1811c9..00000000 --- a/doc/classes/SMTP.html +++ /dev/null @@ -1,2653 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\SMTP

-

PHPMailer RFC821 SMTP email transport class.

-

Implements RFC 821 SMTP commands and provides some utility methods for sending mail to an SMTP server.

- - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- __construct()
- connect()
- startTLS()
- authenticate()
- connected()
- close()
- data()
- hello()
- mail()
- quit()
- recipient()
- reset()
- sendAndMail()
- verify()
- noop()
- turn()
- client_send()
- getError()
- getLastReply()
- setVerp()
- getVerp()
- setDebugOutput()
- getDebugOutput()
- setDebugLevel()
- getDebugLevel()
- setTimeout()
- getTimeout()
-
-
- $Version
- $SMTP_PORT
- $CRLF
- $do_debug
- $Debugoutput
- $do_verp
- $Timeout
- $Timelimit
-
-
- VERSION
- CRLF
- DEFAULT_SMTP_PORT
- MAX_LINE_LENGTH
-
-
-
-
- edebug()
- hmac()
- sendHello()
- sendCommand()
- get_lines()
-
-
- $smtp_conn
- $error
- $helo_rply
- $last_reply
-
-
- N/A -
-
-
-
- No private methods found -
-
- No private properties found -
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

VERSION

-
VERSION
-

The PHPMailer SMTP version number.

- -
-
- -
- -
-
- -
-

CRLF

-
CRLF
-

SMTP line break constant.

- -
-
- -
- -
-
- -
-

DEFAULT_SMTP_PORT

-
DEFAULT_SMTP_PORT
-

The SMTP port to use if one is not specified.

- -
-
- -
- -
-
- -
-

MAX_LINE_LENGTH

-
MAX_LINE_LENGTH
-

The maximum line length allowed by RFC 2822 section 2.1.1

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$Version

-
$Version : 
-

The PHPMailer SMTP Version number.

- - -

Type

- -
-
- -
- -
-
- -
-

$SMTP_PORT

-
$SMTP_PORT : 
-

SMTP server port number.

- - -

Type

- -
-
- -
- -
-
- -
-

$CRLF

-
$CRLF : 
-

SMTP reply line ending.

- - -

Type

- -
-
- -
- -
-
- -
-

$do_debug

-
$do_debug : 
-

Debug output level.

-

Options:

-
    -
  • 0 No output
  • -
  • 1 Commands
  • -
  • 2 Data and commands
  • -
  • 3 As 2 plus connection status
  • -
  • 4 Low-level data output
  • -
- -

Type

- -
-
- -
- -
-
- -
-

$Debugoutput

-
$Debugoutput : 
-

How to handle debug output.

-

Options:

-
    -
  • echo Output plain-text as-is, appropriate for CLI
  • -
  • html Output escaped, line breaks converted to
    , appropriate for browser output
  • -
  • error_log Output to error log as configured in php.ini
  • -
- -

Type

- -
-
- -
- -
-
- -
-

$do_verp

-
$do_verp : 
-

Whether to use VERP.

- - -

Type

- -
-
- -
- -
-
- -
-

$Timeout

-
$Timeout : 
-

The timeout value for connection, in seconds.

-

Default of 5 minutes (300sec) is from RFC2821 section 4.5.3.2 -This needs to be quite high to function correctly with hosts using greetdelay as an anti-spam measure.

- -

Type

- -
-
- -
- -
-
- -
-

$Timelimit

-
$Timelimit : 
-

The SMTP timelimit value for reads, in seconds.

- - -

Type

- -
-
- -
- -
-
- -
-

$smtp_conn

-
$smtp_conn : 
-

The socket for the server connection.

- - -

Type

- -
-
- -
- -
-
- -
-

$error

-
$error : 
-

Error message, if any, for the last call.

- - -

Type

- -
-
- -
- -
-
- -
-

$helo_rply

-
$helo_rply : 
-

The reply the server sent to us for HELO.

- - -

Type

- -
-
- -
- -
-
- -
-

$last_reply

-
$last_reply : 
-

The most recent reply received from the server.

- - -

Type

- -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

__construct()

- -
__construct() 
-

Constructor.

- - - - - -
-
- -
- -
-
- -
-

connect()

- -
connect(string  $host, integer  $port = null, integer  $timeout = 30, array  $options = array()) : boolean
-

Connect to an SMTP server.

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$host

SMTP server IP or host name

integer$port

The port number to connect to

integer$timeout

How long to wait for the connection to open

array$options

An array of options for stream_context_create()

- - -

Returns

- boolean - -
-
- -
- -
-
- -
-

startTLS()

- -
startTLS() : boolean
-

Initiate a TLS (encrypted) session.

- - - - -

Returns

- boolean - -
-
- -
- -
-
- -
-

authenticate()

- -
authenticate(string  $username, string  $password, string  $authtype = 'LOGIN', string  $realm = '', string  $workstation = '') : boolean
-

Perform SMTP authentication.

-

Must be run after hello().

- -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - -
string$username

The user name

string$password

The password

string$authtype

The auth type (PLAIN, LOGIN, NTLM, CRAM-MD5)

string$realm

The auth realm for NTLM

string$workstation

The auth workstation for NTLM

- - -

Returns

- boolean - —

True if successfully authenticated.

- -
-
- -
- -
-
- -
-

connected()

- -
connected() : boolean
-

Check connection state.

- - - - -

Returns

- boolean - —

True if connected.

- -
-
- -
- -
-
- -
-

close()

- -
close() : void
-

Close the socket and clean up the state of the class.

-

Don't use this function without first trying to use QUIT.

- - - - -
-
- -
- -
-
- -
-

data()

- -
data(string  $msg_data) : boolean
-

Send an SMTP DATA command.

-

Issues a data command and sends the msg_data to the server, -finializing the mail transaction. $msg_data is the message -that is to be send with the headers. Each header needs to be -on a single line followed by a with the message headers -and the message body being separated by and additional . -Implements rfc 821: DATA

- -

Parameters

- - - - - - -
string$msg_data

Message data to send

- - -

Returns

- boolean - -
-
- -
- -
-
- -
-

hello()

- -
hello(string  $host = '') : boolean
-

Send an SMTP HELO or EHLO command.

-

Used to identify the sending server to the receiving server. -This makes sure that client and server are in a known state. -Implements RFC 821: HELO -and RFC 2821 EHLO.

- -

Parameters

- - - - - - -
string$host

The host name or IP to connect to

- - -

Returns

- boolean - -
-
- -
- -
-
- -
-

mail()

- -
mail(string  $from) : boolean
-

Send an SMTP MAIL command.

-

Starts a mail transaction from the email address specified in -$from. Returns true if successful or false otherwise. If True -the mail transaction is started and then one or more recipient -commands may be called followed by a data command. -Implements rfc 821: MAIL FROM:

- -

Parameters

- - - - - - -
string$from

Source address of this message

- - -

Returns

- boolean - -
-
- -
- -
-
- -
-

quit()

- -
quit(boolean  $close_on_error = true) : boolean
-

Send an SMTP QUIT command.

-

Closes the socket if there is no error or the $close_on_error argument is true. -Implements from rfc 821: QUIT

- -

Parameters

- - - - - - -
boolean$close_on_error

Should the connection close if an error occurs?

- - -

Returns

- boolean - -
-
- -
- -
-
- -
-

recipient()

- -
recipient(string  $toaddr) : boolean
-

Send an SMTP RCPT command.

-

Sets the TO argument to $toaddr. -Returns true if the recipient was accepted false if it was rejected. -Implements from rfc 821: RCPT TO:

- -

Parameters

- - - - - - -
string$toaddr

The address the message is being sent to

- - -

Returns

- boolean - -
-
- -
- -
-
- -
-

reset()

- -
reset() : boolean
-

Send an SMTP RSET command.

-

Abort any transaction that is currently in progress. -Implements rfc 821: RSET

- - - -

Returns

- boolean - —

True on success.

- -
-
- -
- -
-
- -
-

sendAndMail()

- -
sendAndMail(string  $from) : boolean
-

Send an SMTP SAML command.

-

Starts a mail transaction from the email address specified in $from. -Returns true if successful or false otherwise. If True -the mail transaction is started and then one or more recipient -commands may be called followed by a data command. This command -will send the message to the users terminal if they are logged -in and send them an email. -Implements rfc 821: SAML FROM:

- -

Parameters

- - - - - - -
string$from

The address the message is from

- - -

Returns

- boolean - -
-
- -
- -
-
- -
-

verify()

- -
verify(string  $name) : boolean
-

Send an SMTP VRFY command.

- - -

Parameters

- - - - - - -
string$name

The name to verify

- - -

Returns

- boolean - -
-
- -
- -
-
- -
-

noop()

- -
noop() : boolean
-

Send an SMTP NOOP command.

-

Used to keep keep-alives alive, doesn't actually do anything

- - - -

Returns

- boolean - -
-
- -
- -
-
- -
-

turn()

- -
turn() : boolean
-

Send an SMTP TURN command.

-

This is an optional command for SMTP that this class does not support. -This method is here to make the RFC821 Definition complete for this class -and may be implemented in future -Implements from rfc 821: TURN

- - - -

Returns

- boolean - -
-
- -
- -
-
- -
-

client_send()

- -
client_send(string  $data) : integer|boolean
-

Send raw data to the server.

- - -

Parameters

- - - - - - -
string$data

The data to send

- - -

Returns

- integer|boolean - —

The number of bytes sent to the server or false on error

- -
-
- -
- -
-
- -
-

getError()

- -
getError() : array
-

Get the latest error.

- - - - -

Returns

- array - -
-
- -
- -
-
- -
-

getLastReply()

- -
getLastReply() : string
-

Get the last reply from the server.

- - - - -

Returns

- string - -
-
- -
- -
-
- -
-

setVerp()

- -
setVerp(boolean  $enabled = false) 
-

Enable or disable VERP address generation.

- - -

Parameters

- - - - - - -
boolean$enabled
- - - -
-
- -
- -
-
- -
-

getVerp()

- -
getVerp() : boolean
-

Get VERP address generation mode.

- - - - -

Returns

- boolean - -
-
- -
- -
-
- -
-

setDebugOutput()

- -
setDebugOutput(string  $method = 'echo') 
-

Set debug output method.

- - -

Parameters

- - - - - - -
string$method

The function/method to use for debugging output.

- - - -
-
- -
- -
-
- -
-

getDebugOutput()

- -
getDebugOutput() : string
-

Get debug output method.

- - - - -

Returns

- string - -
-
- -
- -
-
- -
-

setDebugLevel()

- -
setDebugLevel(integer  $level) 
-

Set debug output level.

- - -

Parameters

- - - - - - -
integer$level
- - - -
-
- -
- -
-
- -
-

getDebugLevel()

- -
getDebugLevel() : integer
-

Get debug output level.

- - - - -

Returns

- integer - -
-
- -
- -
-
- -
-

setTimeout()

- -
setTimeout(integer  $timeout) 
-

Set SMTP timeout.

- - -

Parameters

- - - - - - -
integer$timeout
- - - -
-
- -
- -
-
- -
-

getTimeout()

- -
getTimeout() : integer
-

Get SMTP timeout.

- - - - -

Returns

- integer - -
-
- -
- -
-
- -
-

edebug()

- -
edebug(string  $str) : void
-

Output debugging info via a user-selected method.

- - -

Parameters

- - - - - - -
string$str

Debug string to output

- - - -
-
- -
- -
-
- -
-

hmac()

- -
hmac(string  $data, string  $key) : string
-

Calculate an MD5 HMAC hash.

-

Works like hash_hmac('md5', $data, $key) -in case that function is not available

- -

Parameters

- - - - - - - - - - - -
string$data

The data to hash

string$key

The key to hash with

- - -

Returns

- string - -
-
- -
- -
-
- -
-

sendHello()

- -
sendHello(string  $hello, string  $host) : boolean
-

Send an SMTP HELO or EHLO command.

-

Low-level implementation used by hello()

- -

Parameters

- - - - - - - - - - - -
string$hello

The HELO string

string$host

The hostname to say we are

- - -

Returns

- boolean - -
-
- -
- -
-
- -
-

sendCommand()

- -
sendCommand(string  $command, string  $commandstring, integer|array  $expect) : boolean
-

Send a command to an SMTP server and check its return code.

- - -

Parameters

- - - - - - - - - - - - - - - - -
string$command

The command name - not sent to the server

string$commandstring

The actual command to send

integer|array$expect

One or more expected integer success codes

- - -

Returns

- boolean - —

True on success.

- -
-
- -
- -
-
- -
-

get_lines()

- -
get_lines() : string
-

Read the SMTP server's response.

-

Either before eof or socket timeout occurs on the operation. -With SMTP we can tell if we have more lines to read if the -4th character is '-' symbol. If it is a space then we don't -need to read anything else.

- - - -

Returns

- string - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.Controller.html b/doc/classes/hhu.z.Controller.html deleted file mode 100644 index 10c09301..00000000 --- a/doc/classes/hhu.z.Controller.html +++ /dev/null @@ -1,1870 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\zController

-

Abstract class for implementing an application Controller.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- load()
- factory()
- __construct()
- preFilter()
- postFilter()
- run()
- render()
-
-
- $components
-
-
- No constants found -
-
-
-
- set()
- redirect()
- checkModels()
- getView()
- loadModels()
- loadView()
- log()
-
-
- $agent
- $view
- $viewData
- $request
- $response
- $log
- $linker
-
-
- N/A -
-
-
-
- getClassName()
- loadComponents()
-
-
- No private properties found -
-
- N/A -
-
-
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$components

-
$components : array
-

Required components

- - -

Type

- array -
-
- -
- -
-
- -
-

$agent

-
$agent : \nre\core\Agent
-

Corresponding Agent

- - -

Type

- \nre\core\Agent -
-
- -
- -
-
- -
-

$view

-
$view : \nre\core\View
-

View of the Controller

- - -

Type

- \nre\core\View -
-
- -
- -
-
- -
-

$viewData

-
$viewData : array
-

Data to pass to the View

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- -
-
- -
-

$log

-
$log : \nre\core\Logger
-

Logger instance

- - -

Type

- \nre\core\Logger -
-
- -
- -
-
- -
-

$linker

-
$linker : \nre\core\Linker
-

Linker instance

- - -

Type

- \nre\core\Linker -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

load()

- -
load(string  $controllerName) 
-

Load the class of a Controller.

- - -

Parameters

- - - - - - -
string$controllerName

Name of the Controller to load

- -

Throws

-
-
\nre\exceptions\ControllerNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $controllerName, string  $layoutName, string  $action, string  $agent) 
-

Instantiate a Controller (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$controllerName

Name of the Controller to instantiate

string$layoutName

Name of the current Layout

string$action

Current Action

string$agent

Corresponding Agent

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(string  $layoutName, string  $action, \nre\core\Agent  $agent) 
-

Construct a new application Controller.

- - -

Parameters

- - - - - - - - - - - - - - - - -
string$layoutName

Name of the current Layout

string$action

Current Action

\nre\core\Agent$agent

Corresponding Agent

- -

Throws

-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

preFilter()

- -
preFilter(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Prefilter that is executed before running the Controller.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

postFilter()

- -
postFilter(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Postfilter that is executed after running the Controller.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Run the Controller.

-

This method executes the Action of the Controller defined by -the current Request.

- -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

render()

- -
render(array  $viewData = null) : string
-

Generate the output.

- - -

Parameters

- - - - - - -
array$viewData

Data to pass to the View

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

set()

- -
set(string  $name, mixed  $data) 
-

Set data for the View.

- - -

Parameters

- - - - - - - - - - - -
string$name

Key

mixed$data

Value

- - - -
-
- -
- -
-
- -
-

redirect()

- -
redirect(string  $url) 
-

Redirect to the given URL.

- - -

Parameters

- - - - - - -
string$url

Relative URL

- - - -
-
- -
- -
-
- -
-

checkModels()

- -
checkModels(string  $modelName) : boolean
-

Check if Models of this Controller are loaded and available.

- - -

Parameters

- - - - - - -
string$modelName

Arbitrary number of Models to check

- - -

Returns

- boolean - —

All given Models are loaded and available

- -
-
- -
- -
-
- -
-

getView()

- -
getView() : \nre\core\View
-

Get the View of the Controller

- - - - -

Returns

- \nre\core\View - —

View of the Controller

- -
-
- -
- -
-
- -
-

loadModels()

- -
loadModels() 
-

Load the Models of this Controller.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

loadView()

- -
loadView(string  $layoutName, string  $action) 
-

Load the View of this Controller.

- - -

Parameters

- - - - - - - - - - - -
string$layoutName

Name of the current Layout

string$action

Current Action

- -

Throws

-
-
\nre\exceptions\ViewNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(string  $message, integer  $logMode = \nre\core\Logger::LOGMODE_AUTO) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
string$message

Error message to log

integer$logMode

Log mode (optional)

- - - -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $controllerName) : string
-

Determine the classname for the given Controller name.

- - -

Parameters

- - - - - - -
string$controllerName

Controller name to get classname of

- - -

Returns

- string - —

Classname for the Controller name

- -
-
- -
- -
-
- -
-

loadComponents()

- -
loadComponents() 
-

Load the Components of this Controller.

- - - -

Throws

-
-
\nre\exceptions\ComponentNotValidException
-
-
\nre\exceptions\ComponentNotFoundException
-
-
- - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.Model.html b/doc/classes/hhu.z.Model.html deleted file mode 100644 index 666c68b6..00000000 --- a/doc/classes/hhu.z.Model.html +++ /dev/null @@ -1,1292 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\zModel

-

Abstract class for implementing an application Model.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- __construct()
- load()
- factory()
-
-
- No public properties found -
-
- No constants found -
-
-
-
- No protected methods found -
-
- $db
-
-
- N/A -
-
-
-
- loadDriver()
- connect()
- getClassName()
- loadModels()
-
-
- No private properties found -
-
- N/A -
-
-
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$db

-
$db : \nre\models\DatabaseDriver
-

Database connection

- - -

Type

- \nre\models\DatabaseDriver -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

__construct()

- -
__construct() 
-

Construct a new application Model.

-

TODO Catch exception

- - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

load()

- -
load(string  $modelName) 
-

Load the class of a Model.

- - -

Parameters

- - - - - - -
string$modelName

Name of the Model to load

- -

Throws

-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $modelName) 
-

Instantiate a Model (Factory Pattern).

- - -

Parameters

- - - - - - -
string$modelName

Name of the Model to instantiate

- - - -
-
- -
- -
-
- -
-

loadDriver()

- -
loadDriver(string  $driverName) 
-

Load the database driver.

- - -

Parameters

- - - - - - -
string$driverName

Name of the database driver

- -

Throws

-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\DriverNotValidException
-
-
- - -
-
- -
- -
-
- -
-

connect()

- -
connect(string  $driverName, array  $config) 
-

Establish a connection to the database.

- - -

Parameters

- - - - - - - - - - - -
string$driverName

Name of the database driver

array$config

Connection settings

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- - -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $modelName) : string
-

Determine the classname for the given Model name.

- - -

Parameters

- - - - - - -
string$modelName

Model name to get classname of

- - -

Returns

- string - —

Classname fore the Model name

- -
-
- -
- -
-
- -
-

loadModels()

- -
loadModels() 
-

Load the Models of this Model.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
- - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.TextFormatter.html b/doc/classes/hhu.z.TextFormatter.html deleted file mode 100644 index e5d900e1..00000000 --- a/doc/classes/hhu.z.TextFormatter.html +++ /dev/null @@ -1,1117 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\zTextFormatter

-

Class to format text with different syntax tags.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- __construct()
- t()
-
-
- No public properties found -
-
- No constants found -
-
-
-
- No protected methods found -
-
- No protected properties found -
-
- N/A -
-
-
-
- loadMediaModel()
-
-
- $linker
- $Media
-
-
- N/A -
-
-
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$linker

-
$linker : \nre\core\Linker
-

Linker to create links.

- - -

Type

- \nre\core\Linker -
-
- -
- -
-
- -
-

$Media

-
$Media : \nre\core\Model
-

Media-Model to retrieve media data

- - -

Type

- \nre\core\Model -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Linker  $linker) 
-

Create a new text formatter.

- - -

Parameters

- - - - - - -
\nre\core\Linker$linker

Linker to create links with

- - - -
-
- -
- -
-
- -
-

t()

- -
t(string  $string) : string
-

Format a string.

- - -

Parameters

- - - - - - -
string$string

String to format

- - -

Returns

- string - —

Formatted string

- -
-
- -
- -
-
- -
-

loadMediaModel()

- -
loadMediaModel() : boolean
-

Load the Media-Model if it is not loaded

- - - - -

Returns

- boolean - —

Whether the Media-Model has been loaded or not

- -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.Utils.html b/doc/classes/hhu.z.Utils.html deleted file mode 100644 index 38a7b5a4..00000000 --- a/doc/classes/hhu.z.Utils.html +++ /dev/null @@ -1,1204 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\zUtils

-

Class for implementing utility methods.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- t()
- htmlspecialchars_utf8()
- shortenString()
- sendMail()
- getMimetype()
-
-
- No public properties found -
-
- No constants found -
-
-
-
- No protected methods found -
-
- No protected properties found -
-
- N/A -
-
-
-
- No private methods found -
-
- No private properties found -
-
- N/A -
-
-
-
- -
- - - - -
-

Methods

- -
- -
-
- -
-

t()

- -
t(string  $string) : string
-

Mask HTML-chars for save output.

- - -

Parameters

- - - - - - -
string$string

String to be masked

- - -

Returns

- string - —

Masked string

- -
-
- -
- -
-
- -
-

htmlspecialchars_utf8()

- -
htmlspecialchars_utf8(string  $string) : string
-

‚htmlspecialchars‘ with support for UTF-8.

- - -

Parameters

- - - - - - -
string$string

String to be masked

- - -

Returns

- string - —

Masked string

- -
-
- -
- -
-
- -
-

shortenString()

- -
shortenString(string  $string, integer  $length, integer  $scope) : string
-

Cut a string to the given length but only word boundaries.

- - -

Parameters

- - - - - - - - - - - - - - - - -
string$string

String to cut

integer$length

Length to cut string

integer$scope

Maximum length to cut string regardless word boundaries

- - -

Returns

- string - —

Cutted string

- -
-
- -
- -
-
- -
-

sendMail()

- -
sendMail(mixed  $to, string  $messageAction, boolean  $html = false, array  $params = null, \nre\core\Linker  $linker = null) 
-

Send an e‑mail.

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - -
mixed$to

One (string) or many (array) receivers

string$messageAction

Message Action

boolean$html

Whether mail should be formatted as HTML or not

array$params

Parameters to pass

\nre\core\Linker$linker

Linker instance

- -

Throws

-
-
\hhu\z\exceptions\MailingException
-
-
- - -
-
- -
- -
-
- -
-

getMimetype()

- -
getMimetype(string  $filename, string  $defaultMimetype = null) : string
-

Detect Mimetype of a file.

- - -

Parameters

- - - - - - - - - - - -
string$filename

Name of file to detect Mimetype of

string$defaultMimetype

Default Mimetype to use

- - -

Returns

- string - —

Detected Mimetype of file

- -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.QuesttypeAgent.html b/doc/classes/hhu.z.agents.QuesttypeAgent.html deleted file mode 100644 index 14dcbe21..00000000 --- a/doc/classes/hhu.z.agents.QuesttypeAgent.html +++ /dev/null @@ -1,2142 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agentsQuesttypeAgent

-

Abstract class for implementing a QuesttypeAgent.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- load()
- factory()
- run()
- render()
- checkClass()
- saveAnswersOfCharacter()
- matchAnswersOfCharacter()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
- loadClass()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

load()

- -
load(string  $questtypeName) 
-

Load a QuesttypeAgent.

- - -

Parameters

- - - - - - -
string$questtypeName

Name of the QuesttypeAgent to load

- -

Throws

-
-
\hhu\z\exceptions\QuesttypeAgentNotFoundException
-
-
\hhu\z\exceptions\QuesttypeAgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $questtypeName, \hhu\z\agents\Request  $request, \hhu\z\agents\Response  $response, \hhu\z\agents\Logger  $log = null) 
-

Instantiate a QuesttypeAgent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$questtypeName

Name of the QuesttypeAgent to instantiate

\hhu\z\agents\Request$request

Current request

\hhu\z\agents\Response$response

Current respone

\hhu\z\agents\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\hhu\z\exceptions\QuesttypeModelNotValidException
-
-
\hhu\z\exceptions\QuesttypeModelNotFoundException
-
-
\hhu\z\exceptions\QuesttypeControllerNotValidException
-
-
\hhu\z\exceptions\QuesttypeControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

checkClass()

- -
checkClass(string  $className, string  $parentClassName) 
-

Check inheritance of the QuesttypeAgent-class.

- - -

Parameters

- - - - - - - - - - - -
string$className

Name of the class to check

string$parentClassName

Name of the parent class

- -

Throws

-
-
\nre\exceptions\ClassNotValidException
-
-
- - -
-
- -
- -
-
- -
-

saveAnswersOfCharacter()

- -
saveAnswersOfCharacter(array  $seminary, array  $questgroup, array  $quest, array  $character, array  $answers) 
-

Save the answers of a Character for a Quest.

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - -
array$seminary

Current Seminary data

array$questgroup

Current Questgroup data

array$quest

Current Quest data

array$character

Current Character data

array$answers

Character answers for the Quest

- - - -
-
- -
- -
-
- -
-

matchAnswersOfCharacter()

- -
matchAnswersOfCharacter(array  $seminary, array  $questgroup, array  $quest, array  $character, array  $answers) 
-

Check if answers of a Character for a Quest match the correct ones.

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - -
array$seminary

Current Seminary data

array$questgroup

Current Questgroup data

array$quest

Current Quest data

array$character

Current Character data

array$answers

Character answers for the Quest

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new QuesttypeAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\hhu\z\exceptions\QuesttypeModelNotValidException
-
-
\hhu\z\exceptions\QuesttypeModelNotFoundException
-
-
\hhu\z\exceptions\QuesttypeControllerNotValidException
-
-
\hhu\z\exceptions\QuesttypeControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\hhu\z\exceptions\QuesttypeModelNotValidException
-
-
\hhu\z\exceptions\QuesttypeModelNotFoundException
-
-
\hhu\z\exceptions\QuesttypeControllerNotValidException
-
-
\hhu\z\exceptions\QuesttypeControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $questtypeName, string  $agentType = null) : string
-

Determine the Agent-classname for the given Questtype-name.

- - -

Parameters

- - - - - - - - - - - -
string$questtypeName

Questtype-name to get Agent-classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Questtype-name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- -
-

loadClass()

- -
loadClass(string  $questtypeName, string  $fullClassName) 
-

Load the class of a QuesttypeAgent.

- - -

Parameters

- - - - - - - - - - - -
string$questtypeName

Name of the QuesttypeAgent to load

string$fullClassName

Name of the class to load

- -

Throws

-
-
\nre\exceptions\ClassNotFoundException
-
-
- - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.ToplevelAgent.html b/doc/classes/hhu.z.agents.ToplevelAgent.html deleted file mode 100644 index 2ad9720a..00000000 --- a/doc/classes/hhu.z.agents.ToplevelAgent.html +++ /dev/null @@ -1,2264 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agentsToplevelAgent

-

Abstract class for implementing an application Controller.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- run()
- render()
- getIntermediateAgent()
- load()
- factory()
-
-
- $controller
-
-
- STAGE_LOAD
- STAGE_RUN
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- addSubAgent()
- actionConstruct()
- loadController()
- log()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- loadIntermediateAgent()
- _loadIntermediateAgent()
- _run()
- runIntermediateAgent()
- error()
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
- $layout
- $intermediateAgent
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

STAGE_LOAD

-
STAGE_LOAD
-

Stage: Load

- -
-
- -
- -
-
- -
-

STAGE_RUN

-
STAGE_RUN
-

Stage: Run

- -
-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- -
-
- -
-

$layout

-
$layout : \nre\core\Layout
-

Layout instace

- - -

Type

- \nre\core\Layout -
-
- -
- -
-
- -
-

$intermediateAgent

-
$intermediateAgent : \nre\agents\IntermediateAgent
-

IntermediateAgent instance

- - -

Type

- \nre\agents\IntermediateAgent -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

getIntermediateAgent()

- -
getIntermediateAgent() : \nre\agents\IntermediateAgent
-

Return the IntermediateAgent.

- - - - -

Returns

- \nre\agents\IntermediateAgent - —

IntermediateAgent

- -
-
- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new ToplevlAgent

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

\nre\core\Logger$log

Logger instance

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

loadIntermediateAgent()

- -
loadIntermediateAgent() 
-

Load IntermediateAgent defined by the current request.

- - - -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
- - -
-
- -
- -
-
- -
-

_loadIntermediateAgent()

- -
_loadIntermediateAgent() 
-

Load IntermediateAgent defined by the current request.

- - - -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
- - -
-
- -
- -
-
- -
-

_run()

- -
_run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\AccessDeniedException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

runIntermediateAgent()

- -
runIntermediateAgent() 
-

Run IntermediateAgent.

- - - -

Throws

-
-
\nre\exceptions\AccessDeniedException
-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
- - -
-
- -
- -
-
- -
-

error()

- -
error(\Exception  $exception, integer  $httpStatusCode, string  $stage = self::STAGE_LOAD) 
-

Handle an error that occurred during -loading/cnostructing/running of the IntermediateAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$httpStatusCode

HTTP-statuscode

string$stage

Stage of execution

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.bottomlevel.MailreceiverAgent.html b/doc/classes/hhu.z.agents.bottomlevel.MailreceiverAgent.html deleted file mode 100644 index 70ad0804..00000000 --- a/doc/classes/hhu.z.agents.bottomlevel.MailreceiverAgent.html +++ /dev/null @@ -1,1971 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\bottomlevelMailreceiverAgent

-

Agent to generate a mail receiver salutation.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- load()
- factory()
- run()
- render()
- index()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

index()

- -
index(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: index.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.bottomlevel.MenuAgent.html b/doc/classes/hhu.z.agents.bottomlevel.MenuAgent.html deleted file mode 100644 index 7bedee57..00000000 --- a/doc/classes/hhu.z.agents.bottomlevel.MenuAgent.html +++ /dev/null @@ -1,1971 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\bottomlevelMenuAgent

-

Agent to display a menu.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- load()
- factory()
- run()
- render()
- index()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

index()

- -
index(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: index.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.bottomlevel.QuestgroupshierarchypathAgent.html b/doc/classes/hhu.z.agents.bottomlevel.QuestgroupshierarchypathAgent.html deleted file mode 100644 index 0f8575a4..00000000 --- a/doc/classes/hhu.z.agents.bottomlevel.QuestgroupshierarchypathAgent.html +++ /dev/null @@ -1,1971 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\bottomlevelQuestgroupshierarchypathAgent

-

Agent to display the Questgroups hierarchy path.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- load()
- factory()
- run()
- render()
- index()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

index()

- -
index(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: index.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.bottomlevel.SeminarybarAgent.html b/doc/classes/hhu.z.agents.bottomlevel.SeminarybarAgent.html deleted file mode 100644 index 46cc35f9..00000000 --- a/doc/classes/hhu.z.agents.bottomlevel.SeminarybarAgent.html +++ /dev/null @@ -1,1971 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\bottomlevelSeminarybarAgent

-

Agent to display a sidebar with Seminary related information.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- load()
- factory()
- run()
- render()
- index()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

index()

- -
index(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: index.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.bottomlevel.SeminarymenuAgent.html b/doc/classes/hhu.z.agents.bottomlevel.SeminarymenuAgent.html deleted file mode 100644 index 4bd07065..00000000 --- a/doc/classes/hhu.z.agents.bottomlevel.SeminarymenuAgent.html +++ /dev/null @@ -1,1971 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\bottomlevelSeminarymenuAgent

-

Agent to display a menu with Seminary related links.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- load()
- factory()
- run()
- render()
- index()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

index()

- -
index(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: index.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.bottomlevel.UserrolesAgent.html b/doc/classes/hhu.z.agents.bottomlevel.UserrolesAgent.html deleted file mode 100644 index 74030f3e..00000000 --- a/doc/classes/hhu.z.agents.bottomlevel.UserrolesAgent.html +++ /dev/null @@ -1,1971 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\bottomlevelUserrolesAgent

-

Agent to display and manage userroles.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- load()
- factory()
- run()
- render()
- user()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

user()

- -
user(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: user.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.intermediate.AchievementsAgent.html b/doc/classes/hhu.z.agents.intermediate.AchievementsAgent.html deleted file mode 100644 index e3f78376..00000000 --- a/doc/classes/hhu.z.agents.intermediate.AchievementsAgent.html +++ /dev/null @@ -1,2012 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\intermediateAchievementsAgent

-

Agent to list Achievements.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- getLayout()
- load()
- factory()
- run()
- render()
- index()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

getLayout()

- -
getLayout(string  $agentName) : string
-

Get the layout if it was explicitly defined.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- - -

Returns

- string - —

Layout of the IntermediateAgent

- -
-
- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

index()

- -
index(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: index.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.intermediate.CharactergroupsAgent.html b/doc/classes/hhu.z.agents.intermediate.CharactergroupsAgent.html deleted file mode 100644 index 7c43eaec..00000000 --- a/doc/classes/hhu.z.agents.intermediate.CharactergroupsAgent.html +++ /dev/null @@ -1,2012 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\intermediateCharactergroupsAgent

-

Agent to display Character groups.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- getLayout()
- load()
- factory()
- run()
- render()
- index()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

getLayout()

- -
getLayout(string  $agentName) : string
-

Get the layout if it was explicitly defined.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- - -

Returns

- string - —

Layout of the IntermediateAgent

- -
-
- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

index()

- -
index(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: index.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.intermediate.CharactergroupsquestsAgent.html b/doc/classes/hhu.z.agents.intermediate.CharactergroupsquestsAgent.html deleted file mode 100644 index d42a9971..00000000 --- a/doc/classes/hhu.z.agents.intermediate.CharactergroupsquestsAgent.html +++ /dev/null @@ -1,2012 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\intermediateCharactergroupsquestsAgent

-

Agent to display Character groups Quests.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- getLayout()
- load()
- factory()
- run()
- render()
- index()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

getLayout()

- -
getLayout(string  $agentName) : string
-

Get the layout if it was explicitly defined.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- - -

Returns

- string - —

Layout of the IntermediateAgent

- -
-
- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

index()

- -
index(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: index.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.intermediate.CharactersAgent.html b/doc/classes/hhu.z.agents.intermediate.CharactersAgent.html deleted file mode 100644 index 2d3e3f9a..00000000 --- a/doc/classes/hhu.z.agents.intermediate.CharactersAgent.html +++ /dev/null @@ -1,2052 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\intermediateCharactersAgent

-

Agent to list registered Characters and their data.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- getLayout()
- load()
- factory()
- run()
- render()
- index()
- character()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

getLayout()

- -
getLayout(string  $agentName) : string
-

Get the layout if it was explicitly defined.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- - -

Returns

- string - —

Layout of the IntermediateAgent

- -
-
- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

index()

- -
index(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: index.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

character()

- -
character(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: character.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.intermediate.CharactertypesAgent.html b/doc/classes/hhu.z.agents.intermediate.CharactertypesAgent.html deleted file mode 100644 index c3b552ff..00000000 --- a/doc/classes/hhu.z.agents.intermediate.CharactertypesAgent.html +++ /dev/null @@ -1,2012 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\intermediateCharactertypesAgent

-

Agent to handle Charactertyes of a Seminary.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- getLayout()
- load()
- factory()
- run()
- render()
- index()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

getLayout()

- -
getLayout(string  $agentName) : string
-

Get the layout if it was explicitly defined.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- - -

Returns

- string - —

Layout of the IntermediateAgent

- -
-
- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

index()

- -
index(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: index.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.intermediate.ErrorAgent.html b/doc/classes/hhu.z.agents.intermediate.ErrorAgent.html deleted file mode 100644 index b63ed165..00000000 --- a/doc/classes/hhu.z.agents.intermediate.ErrorAgent.html +++ /dev/null @@ -1,2012 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\intermediateErrorAgent

-

Agent to show an error page.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- getLayout()
- load()
- factory()
- run()
- render()
- index()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

getLayout()

- -
getLayout(string  $agentName) : string
-

Get the layout if it was explicitly defined.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- - -

Returns

- string - —

Layout of the IntermediateAgent

- -
-
- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

index()

- -
index(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: index.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.intermediate.IntroductionAgent.html b/doc/classes/hhu.z.agents.intermediate.IntroductionAgent.html deleted file mode 100644 index 5fa8154d..00000000 --- a/doc/classes/hhu.z.agents.intermediate.IntroductionAgent.html +++ /dev/null @@ -1,2012 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\intermediateIntroductionAgent

-

Agent to show an introduction page.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- getLayout()
- load()
- factory()
- run()
- render()
- index()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

getLayout()

- -
getLayout(string  $agentName) : string
-

Get the layout if it was explicitly defined.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- - -

Returns

- string - —

Layout of the IntermediateAgent

- -
-
- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

index()

- -
index(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: index.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.intermediate.LibraryAgent.html b/doc/classes/hhu.z.agents.intermediate.LibraryAgent.html deleted file mode 100644 index 5197a5b2..00000000 --- a/doc/classes/hhu.z.agents.intermediate.LibraryAgent.html +++ /dev/null @@ -1,2012 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\intermediateLibraryAgent

-

Agent to list Quest topics.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- getLayout()
- load()
- factory()
- run()
- render()
- index()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

getLayout()

- -
getLayout(string  $agentName) : string
-

Get the layout if it was explicitly defined.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- - -

Returns

- string - —

Layout of the IntermediateAgent

- -
-
- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

index()

- -
index(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: index.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.intermediate.MailAgent.html b/doc/classes/hhu.z.agents.intermediate.MailAgent.html deleted file mode 100644 index 475e1b34..00000000 --- a/doc/classes/hhu.z.agents.intermediate.MailAgent.html +++ /dev/null @@ -1,2012 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\intermediateMailAgent

-

Agent to generate a mail-message.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- getLayout()
- load()
- factory()
- run()
- render()
- index()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

getLayout()

- -
getLayout(string  $agentName) : string
-

Get the layout if it was explicitly defined.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- - -

Returns

- string - —

Layout of the IntermediateAgent

- -
-
- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

index()

- -
index(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: index.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.intermediate.MediaAgent.html b/doc/classes/hhu.z.agents.intermediate.MediaAgent.html deleted file mode 100644 index eb726f1f..00000000 --- a/doc/classes/hhu.z.agents.intermediate.MediaAgent.html +++ /dev/null @@ -1,2012 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\intermediateMediaAgent

-

Agent to process and show media.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- getLayout()
- load()
- factory()
- run()
- render()
- index()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

getLayout()

- -
getLayout(string  $agentName) : string
-

Get the layout if it was explicitly defined.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- - -

Returns

- string - —

Layout of the IntermediateAgent

- -
-
- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

index()

- -
index(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: index.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.intermediate.QuestgroupsAgent.html b/doc/classes/hhu.z.agents.intermediate.QuestgroupsAgent.html deleted file mode 100644 index dd07c9b0..00000000 --- a/doc/classes/hhu.z.agents.intermediate.QuestgroupsAgent.html +++ /dev/null @@ -1,2132 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\intermediateQuestgroupsAgent

-

Agent to display Questgroups.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- getLayout()
- load()
- factory()
- run()
- render()
- questgroup()
- edit()
- edittexts()
- delete()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

getLayout()

- -
getLayout(string  $agentName) : string
-

Get the layout if it was explicitly defined.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- - -

Returns

- string - —

Layout of the IntermediateAgent

- -
-
- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

questgroup()

- -
questgroup(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: questgroup.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

edit()

- -
edit(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: edit.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

edittexts()

- -
edittexts(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: edittexts.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

delete()

- -
delete(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: delete.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.intermediate.QuestgroupshierarchyAgent.html b/doc/classes/hhu.z.agents.intermediate.QuestgroupshierarchyAgent.html deleted file mode 100644 index 52aaebe7..00000000 --- a/doc/classes/hhu.z.agents.intermediate.QuestgroupshierarchyAgent.html +++ /dev/null @@ -1,1972 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\intermediateQuestgroupshierarchyAgent

-

Agent to manage Questgroupshierarchy.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- getLayout()
- load()
- factory()
- run()
- render()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

getLayout()

- -
getLayout(string  $agentName) : string
-

Get the layout if it was explicitly defined.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- - -

Returns

- string - —

Layout of the IntermediateAgent

- -
-
- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.intermediate.QuestsAgent.html b/doc/classes/hhu.z.agents.intermediate.QuestsAgent.html deleted file mode 100644 index 4a35e7d0..00000000 --- a/doc/classes/hhu.z.agents.intermediate.QuestsAgent.html +++ /dev/null @@ -1,2292 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\intermediateQuestsAgent

-

Agent to display Quests.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- getLayout()
- load()
- factory()
- run()
- render()
- quest()
- submissions()
- submission()
- create()
- edit()
- edittask()
- edittexts()
- delete()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

getLayout()

- -
getLayout(string  $agentName) : string
-

Get the layout if it was explicitly defined.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- - -

Returns

- string - —

Layout of the IntermediateAgent

- -
-
- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

quest()

- -
quest(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: quest.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

submissions()

- -
submissions(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: submissions.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

submission()

- -
submission(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: submission.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

create()

- -
create(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: create.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

edit()

- -
edit(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: edit.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

edittask()

- -
edittask(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: edittask.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

edittexts()

- -
edittexts(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: edittexts.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

delete()

- -
delete(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: delete.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.intermediate.SeminariesAgent.html b/doc/classes/hhu.z.agents.intermediate.SeminariesAgent.html deleted file mode 100644 index 982aa1bc..00000000 --- a/doc/classes/hhu.z.agents.intermediate.SeminariesAgent.html +++ /dev/null @@ -1,2012 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\intermediateSeminariesAgent

-

Agent to list registered seminaries.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- getLayout()
- load()
- factory()
- run()
- render()
- index()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

getLayout()

- -
getLayout(string  $agentName) : string
-

Get the layout if it was explicitly defined.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- - -

Returns

- string - —

Layout of the IntermediateAgent

- -
-
- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

index()

- -
index(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: index.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.intermediate.UploadsAgent.html b/doc/classes/hhu.z.agents.intermediate.UploadsAgent.html deleted file mode 100644 index 7f659e3d..00000000 --- a/doc/classes/hhu.z.agents.intermediate.UploadsAgent.html +++ /dev/null @@ -1,2012 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\intermediateUploadsAgent

-

Agent to process and show user uploads.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- getLayout()
- load()
- factory()
- run()
- render()
- index()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

getLayout()

- -
getLayout(string  $agentName) : string
-

Get the layout if it was explicitly defined.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- - -

Returns

- string - —

Layout of the IntermediateAgent

- -
-
- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

index()

- -
index(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: index.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.intermediate.UsersAgent.html b/doc/classes/hhu.z.agents.intermediate.UsersAgent.html deleted file mode 100644 index 5956ebc9..00000000 --- a/doc/classes/hhu.z.agents.intermediate.UsersAgent.html +++ /dev/null @@ -1,2052 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\intermediateUsersAgent

-

Agent to list registered users and their data.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- getLayout()
- load()
- factory()
- run()
- render()
- index()
- user()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

getLayout()

- -
getLayout(string  $agentName) : string
-

Get the layout if it was explicitly defined.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- - -

Returns

- string - —

Layout of the IntermediateAgent

- -
-
- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

index()

- -
index(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: index.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

user()

- -
user(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: user.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.intermediate.XplevelsAgent.html b/doc/classes/hhu.z.agents.intermediate.XplevelsAgent.html deleted file mode 100644 index af563136..00000000 --- a/doc/classes/hhu.z.agents.intermediate.XplevelsAgent.html +++ /dev/null @@ -1,2012 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\hhu\z\agents\intermediateXplevelsAgent

-

Agent to handle XP-levels of a Seminary.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- getLayout()
- load()
- factory()
- run()
- render()
- index()
-
-
- $controller
-
-
- INLINEERROR_AGENT
-
-
-
-
- __construct()
- actionConstruct()
- loadController()
- log()
- addSubAgent()
- _addSubAgent()
-
-
- $log
- $subAgents
-
-
- N/A -
-
-
-
- getAgentType()
- getClassName()
- newSubAgent()
- renderSubAgent()
- errorInline()
- newInlineError()
- newInlineErrorService()
-
-
- $request
- $response
-
-
- N/A -
-
-
-
- -
- - -
-
-

Constants

-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

getLayout()

- -
getLayout(string  $agentName) : string
-

Get the layout if it was explicitly defined.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- - -

Returns

- string - —

Layout of the IntermediateAgent

- -
-
- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

index()

- -
index(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: index.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new Agent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.toplevel.AjaxAgent.html b/doc/classes/hhu.z.agents.toplevel.AjaxAgent.html deleted file mode 100644 index 90bf6f5f..00000000 --- a/doc/classes/hhu.z.agents.toplevel.AjaxAgent.html +++ /dev/null @@ -1,2340 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
- - -
- - -
-
-

Constants

-
- -
- -
-
- -
-

STAGE_LOAD

-
STAGE_LOAD
-

Stage: Load

- -
-
- -
- -
-
- -
-

STAGE_RUN

-
STAGE_RUN
-

Stage: Run

- -
-
- -
- -
-
- -
-

INLINEERROR_AGENT

-
INLINEERROR_AGENT
-

Name of BottomlevelAgent for showing inline errors

- -
-
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$controller

-
$controller : \nre\core\Controller
-

Controller of this Agent

- - -

Type

- \nre\core\Controller -
-
- -
- -
-
- - -
- -
- -
-
- -
-

$subAgents

-
$subAgents : array
-

SubAgents

- - -

Type

- array -
-
- -
- -
-
- -
-

$request

-
$request : \nre\core\Request
-

Current request

- - -

Type

- \nre\core\Request -
-
- -
- -
-
- -
-

$response

-
$response : \nre\core\Response
-

Current response

- - -

Type

- \nre\core\Response -
-
- -
- -
-
- -
-

$layout

-
$layout : \nre\core\Layout
-

Layout instace

- - -

Type

- \nre\core\Layout -
-
- -
- -
-
- -
-

$intermediateAgent

-
$intermediateAgent : \nre\agents\IntermediateAgent
-

IntermediateAgent instance

- - -

Type

- \nre\agents\IntermediateAgent -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

run()

- -
run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\ActionNotFoundException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

render()

- -
render(array  $data = array()) : string
-

Generate output of the Controller of this Agent and its -SubAgents.

- - -

Parameters

- - - - - - -
array$data

View data

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

getIntermediateAgent()

- -
getIntermediateAgent() : \nre\agents\IntermediateAgent
-

Return the IntermediateAgent.

- - - - -

Returns

- \nre\agents\IntermediateAgent - —

IntermediateAgent

- -
-
- -
- -
-
- -
-

load()

- -
load(string  $agentName) 
-

Load the class of an Agent.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

factory()

- -
factory(string  $agentName, \nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Instantiate an Agent (Factory Pattern).

- - -

Parameters

- - - - - - - - - - - - - - - - - - - - - -
string$agentName

Name of the Agent to instantiate

\nre\core\Request$request

Current request

\nre\core\Response$response
\nre\core\Logger$log

Log-system

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

index()

- -
index(\nre\core\Request  $request, \nre\core\Response  $response) 
-

Action: index.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- - - -
-
- -
- -
-
- -
-

__construct()

- -
__construct(\nre\core\Request  $request, \nre\core\Response  $response, \nre\core\Logger  $log = null) 
-

Construct a new AjaxAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

\nre\core\Logger$log

Logger instance

- - - -
-
- -
- -
-
- -
-

addSubAgent()

- -
addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

actionConstruct()

- -
actionConstruct() 
-

Construct SubAgents (per Action).

- - - - - -
-
- -
- -
-
- -
-

loadController()

- -
loadController() 
-

Load the Controller of this Agent.

- - - -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\DriverNotValidException
-
-
\nre\exceptions\DriverNotFoundException
-
-
\nre\exceptions\ViewNotFoundException
-
-
\nre\exceptions\ModelNotValidException
-
-
\nre\exceptions\ModelNotFoundException
-
-
\nre\exceptions\ControllerNotValidException
-
-
\nre\exceptions\ControllerNotFoundException
-
-
- - -
-
- -
- -
-
- -
-

log()

- -
log(\Exception  $exception, integer  $logMode) 
-

Log an error.

- - -

Parameters

- - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$logMode

Log mode

- - - -
-
- -
- -
-
- -
-

_addSubAgent()

- -
_addSubAgent(string  $agentName) 
-

Load a SubAgent and add it.

- - -

Parameters

- - - - - - -
string$agentName

Name of the Agent to load

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
\nre\exceptions\AgentNotFoundException
-
-
\nre\exceptions\AgentNotValidException
-
-
- - -
-
- -
- -
-
- -
-

loadIntermediateAgent()

- -
loadIntermediateAgent() 
-

Load IntermediateAgent defined by the current request.

- - - -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
- - -
-
- -
- -
-
- -
-

_loadIntermediateAgent()

- -
_loadIntermediateAgent() 
-

Load IntermediateAgent defined by the current request.

- - - -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
- - -
-
- -
- -
-
- -
-

_run()

- -
_run(\nre\core\Request  $request, \nre\core\Response  $response) : \Exception
-

Run the Controller of this Agent and its SubAgents.

- - -

Parameters

- - - - - - - - - - - -
\nre\core\Request$request

Current request

\nre\core\Response$response

Current response

- -

Throws

-
-
\nre\exceptions\AccessDeniedException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- \Exception - —

Last occurred exception of SubAgents

- -
-
- -
- -
-
- -
-

runIntermediateAgent()

- -
runIntermediateAgent() 
-

Run IntermediateAgent.

- - - -

Throws

-
-
\nre\exceptions\AccessDeniedException
-
-
\nre\exceptions\ParamsNotValidException
-
-
\nre\exceptions\IdNotFoundException
-
-
\nre\exceptions\ServiceUnavailableException
-
-
\nre\exceptions\DatamodelException
-
-
- - -
-
- -
- -
-
- -
-

error()

- -
error(\Exception  $exception, integer  $httpStatusCode, string  $stage = self::STAGE_LOAD) 
-

Handle an error that occurred during -loading/cnostructing/running of the IntermediateAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
\Exception$exception

Occurred exception

integer$httpStatusCode

HTTP-statuscode

string$stage

Stage of execution

- -

Throws

-
-
\nre\exceptions\ServiceUnavailableException
-
-
- - -
-
- -
- -
-
- -
-

getAgentType()

- -
getAgentType() : string
-

Determine the type of an Agent.

- - - - -

Returns

- string - —

Agent type

- -
-
- -
- -
-
- -
-

getClassName()

- -
getClassName(string  $agentName, string  $agentType) : string
-

Determine the classname for the given Agent name.

- - -

Parameters

- - - - - - - - - - - -
string$agentName

Agent name to get classname of

string$agentType

Agent type of given Agent name

- - -

Returns

- string - —

Classname for the Agent name

- -
-
- -
- -
-
- -
-

newSubAgent()

- -
newSubAgent(string  $agentName) : array
-

Create a new SubAgent.

- - -

Parameters

- - - - - - -
string$agentName

Agent name

- -

Throws

-
-
\nre\exceptions\DatamodelException
-
-
- -

Returns

- array - —

SubAgent

- -
-
- -
- -
-
- -
-

renderSubAgent()

- -
renderSubAgent(array  $subAgent) : string
-

Render a SubAgent.

- - -

Parameters

- - - - - - -
array$subAgent

SubAgent to render

- - -

Returns

- string - —

Generated output

- -
-
- -
- -
-
- -
-

errorInline()

- -
errorInline(array  $subAgent, \nre\core\Request  $request, \nre\core\Excepiton  $exception) : array
-

Handle the exception of a SubAgent.

- - -

Parameters

- - - - - - - - - - - - - - - - -
array$subAgent

Original (Sub-) Agent

\nre\core\Request$request

Current request

\nre\core\Excepiton$exception

Occurred exception

- - -

Returns

- array - —

InlineError-SubAgent

- -
-
- -
- -
-
- -
-

newInlineError()

- -
newInlineError(string  $label, \Exception  $exception) 
-

Create a new InlineError.

- - -

Parameters

- - - - - - - - - - - -
string$label

Name of the original Agent

\Exception$exception

Occurred exception

- - - -
-
- -
- -
-
- -
-

newInlineErrorService()

- -
newInlineErrorService() 
-

Handle a hardcore error that could not be handled by the -system.

- - - - - -
-
- -
- -
-
- -
-

setLanguage()

- -
setLanguage(\nre\core\Request  $request) 
-

Set requested language.

- - -

Parameters

- - - - - - -
\nre\core\Request$request

Current request

- - - -
-
- -
- -
-
- - - - -
- - - diff --git a/doc/classes/hhu.z.agents.toplevel.BinaryAgent.html b/doc/classes/hhu.z.agents.toplevel.BinaryAgent.html deleted file mode 100644 index 1c841868..00000000 --- a/doc/classes/hhu.z.agents.toplevel.BinaryAgent.html +++ /dev/null @@ -1,2305 +0,0 @@ - - - - - - Questlab - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-