Admidio API
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Packages

  • com
    • tecnick
      • tcpdf
  • None
  • PHPMailer
    • easypeasyics
  • PHPWavUtils
  • Securimage
    • classes

Classes

  • AutoLogin
  • Component
  • ComponentUpdate
  • ConditionParser
  • Database
  • DateTimeExtended
  • Email
  • Folder
  • FormValidation
  • FunctionClass
  • Htaccess
  • HtmlDiv
  • HtmlElement
  • HtmlForm
  • HtmlFormBasic
  • HtmlFormInstallation
  • HtmlList
  • HtmlNavbar
  • HtmlPage
  • HtmlTable
  • HtmlTableBasic
  • Image
  • Inventory
  • InventoryFields
  • Language
  • LanguageData
  • ListConfiguration
  • Menu
  • Message
  • ModuleAnnouncements
  • ModuleDates
  • ModuleLists
  • ModuleMenu
  • ModuleMessages
  • Modules
  • ModuleWeblinks
  • MyFiles
  • Navigation
  • ntlm_sasl_client_class
  • Organization
  • Participants
  • PasswordHash
  • PasswordHashing
  • ProfileFields
  • RoleDependency
  • RolesRights
  • RSSfeed
  • Session
  • SystemMail
  • TableAccess
  • TableAnnouncement
  • TableCategory
  • TableDate
  • TableFile
  • TableFolder
  • TableGuestbook
  • TableGuestbookComment
  • TableInventory
  • TableInventoryField
  • TableLists
  • TableMembers
  • TableMessage
  • TablePhotos
  • TableRoles
  • TableRooms
  • TableText
  • TableUserField
  • TableUsers
  • TableWeblink
  • UploadHandlerDownload
  • UploadHandlerPhoto
  • User
  • UserRegistration

Exceptions

  • AdmException
  • WavFileException
  • WavFormatException

Functions

  • admFuncAutoload
  • admFuncGeneratePagination
  • admFuncGetBytesFromSize
  • admFuncGetDirectoryEntries
  • admFuncMaxUploadSize
  • admFuncProcessableImageSize
  • admFuncShowCreateChangeInfoById
  • admFuncShowCreateChangeInfoByName
  • admFuncVariableIsValid
  • admReadTemplateFile
  • admStrIsValidFileName
  • admStrStripTagsSpecial
  • admStrToLower
  • admStrToUpper
  • bzip2Version
  • checkDatabaseVersion
  • checkPhpVersion
  • EmailAttachment
  • FileSizeNiceDisplay
  • FormattedTimeRemaining
  • FunctionIsDisabled
  • getFormerRolesFromDatabase
  • getFutureRolesFromDatabase
  • getmicrotime
  • getRoleMemberships
  • getRolesFromDatabase
  • gzipVersion
  • hasRole
  • hl_attrval
  • hl_bal
  • hl_cmtcd
  • hl_ent
  • hl_prot
  • hl_regex
  • hl_spec
  • hl_tag
  • hl_tag2
  • hl_tidy
  • hl_version
  • htmLawed
  • HTMLFilter
  • isGroupLeader
  • isMember
  • kses
  • kses_hook
  • MySQLdumpVersion
  • OutputInformation
  • SafeExec
  • showNotice
  • strAddSlashesDeep
  • strNextLetter
  • strStripSlashesDeep
  • strStripTags
  • strValidCharacters
  • tln_body2div
  • tln_casenormalize
  • tln_deent
  • tln_defang
  • tln_findnxreg
  • tln_findnxstr
  • tln_fixatts
  • tln_fixstyle
  • tln_fixurl
  • tln_getnxtag
  • tln_sanitize
  • tln_skipspace
  • tln_tagprint
  • tln_unspace
  • version_compare_replacement
  • version_compare_replacement_sub

Class AdmException

Exception implements Throwable
Extended by AdmException
Copyright: 2004-2016 The Admidio Team
License: GNU General Public License v2.0 only **********************************************************************************************
Brief:

Admidio specific enhancements of the exception class

This class extends the default PHP exception class with an Admidio specific output. The exception get's a language string as parameter and returns a html or plain text message with the translated error if an exception is thrown


Class: AdmException
Code:

try { if($bla == 1) { throw new AdmException(LST_NOT_VALID_DATE_FORMAT); } ..

} catch(AdmException $e) { // show html message $e->showHtml();

// show simply text message $e->showText(); } @endcode


Par: Example
Located at admexception.php

Methods summary

public
# __construct( string $message, string $param1 = '', string $param2 = '', string $param3 = '', string $param4 = '' )

Constructor that will @b rollback an open database translation

Constructor that will @b rollback an open database translation

Parameters

$message
Translation @b id that should be shown when exception is catched
$param1
Optional parameter for language string of translation id
$param2
Another optional parameter for language string of translation id
$param3
Another optional parameter for language string of translation id
$param4
Another optional parameter for language string of translation id

Overrides

Exception::__construct
public string
# getText( )

Simply return the plain translated error text without any markup.

Simply return the plain translated error text without any markup.

Returns

string
Returns only a string with the exception text
public
# setNewMessage( string $message, string $param1 = '', string $param2 = '', string $param3 = '', string $param4 = '' )

Set a new Admidio message id with their parameters. This method should be used if during the exception processing a new better message should be set.

Set a new Admidio message id with their parameters. This method should be used if during the exception processing a new better message should be set.

Parameters

$message
Translation @b id that should be shown when exception is catched
$param1
Optional parameter for language string of translation id
$param2
Another optional parameter for language string of translation id
$param3
Another optional parameter for language string of translation id
$param4
Another optional parameter for language string of translation id
public
# showHtml( )

Show html message window with translated message

Show html message window with translated message

public
# showText( )

Simply return the plain translated error text without any markup and stop the script.

Simply return the plain translated error text without any markup and stop the script.

Methods inherited from Exception

__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()

Properties summary

protected $param1
#
protected $param2
#
protected $param3
#
protected $param4
#

Properties inherited from Exception

$code, $file, $line, $message

Admidio API API documentation generated by ApiGen