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 ModuleMessages

Copyright: 2004-2016 The Admidio Team
License: GNU General Public License v2.0 only **********************************************************************************************
Brief:

some functions for the messages module

This class adds some functions that are used in the messages module to keep the code easy to read and short


Class: modulemessages
Code:

// check the given Array for charecter and split it. $gMessage->show($gL10n->get('SYS_MESSAGE_TEXT_ID'));

// show a message and set a link to a page that should be shown after user click ok $gMessage->setForwardUrl('http://www.example.de/mypage.php'); $gMessage->show($gL10n->get('SYS_MESSAGE_TEXT_ID'));

// show a message with yes and no button and set a link to a page that should be shown after user click yes $gMessage->setForwardYesNo('http://www.example.de/mypage.php'); $gMessage->show($gL10n->get('SYS_MESSAGE_TEXT_ID')); @endcode


Par: Examples
Located at modulemessages.php

Methods summary

public
# __construct( )

Constructor that initialize the class member parameters

Constructor that initialize the class member parameters

public string
# msgGroupNameSplit( string $roleIdsString )

Check for roles and give back a string with rolename. If former members or activa and former members were selected than an additional string will be shown after the rolename.

Check for roles and give back a string with rolename. If former members or activa and former members were selected than an additional string will be shown after the rolename.

Parameters

$roleIdsString
A string with several role ids.

Returns

string
Returns the rolename and the status if former members were selected.
public array
# msgGroupSplit( string $groupString )

check for Group and give back a array with group ID[0] and if it is active, inactive or both [1].

check for Group and give back a array with group ID[0] and if it is active, inactive or both [1].

Parameters

$groupString

Returns

array
public PDOStatement
# msgGetUserEmails( integer $userId )

return an array with all Email-Messages of the given user.

return an array with all Email-Messages of the given user.

Parameters

$userId

Returns

PDOStatement
public PDOStatement
# msgGetUserUnread( integer $userId )

return an array with all unread Messages of the given user.

return an array with all unread Messages of the given user.

Parameters

$userId

Returns

PDOStatement
public PDOStatement
# msgGetUser( integer $userId )

return an array with all unread Messages of the given user.

return an array with all unread Messages of the given user.

Parameters

$userId

Returns

PDOStatement
public integer
# msgGetChatId( )

return the message ID of the admidio chat.

return the message ID of the admidio chat.

Returns

integer
Admidio API API documentation generated by ApiGen