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 RoleDependency

Copyright: 2004-2016 The Admidio Team
License: GNU General Public License v2.0 only **********************************************************************************************
Class: RoleDependency
Located at roledependency.php

Methods summary

public
# __construct( Database & $database )

Constructor that will create an object of a recordset of the specified table.

Constructor that will create an object of a recordset of the specified table.

Parameters

$database
Object of the class Database. This should be the default global object @b $gDb.
public
# clear( )

Initializes all class parameters and deletes all read data.

Initializes all class parameters and deletes all read data.

public
# delete( )

aktuelle Rollenabhaengigkeit loeschen

aktuelle Rollenabhaengigkeit loeschen

public boolean
# get( integer $childRoleId, integer $parentRoleId )

Rollenabhaengigkeit aus der Datenbank auslesen

Rollenabhaengigkeit aus der Datenbank auslesen

Parameters

$childRoleId
$parentRoleId

Returns

boolean
public static int[]
# getParentRoles( Database & $database, integer $childId )

Parameters

$database
$childId

Returns

int[]
public static int[]
# getChildRoles( Database & $database, integer $parentId )

Parameters

$database
$parentId

Returns

int[]
public boolean
# isEmpty( )

Check if roleIdParent and roleIdChild is 0

Check if roleIdParent and roleIdChild is 0

Returns

boolean
Returns true if roleIdParent and roleIdChild is 0
public boolean
# insert( integer $loginUserId )

Parameters

$loginUserId

Returns

boolean
public static boolean
# removeChildRoles( Database & $database, integer $parentId )

Parameters

$database
$parentId

Returns

boolean
public boolean
# setParent( integer $parentId )

Parameters

$parentId

Returns

boolean
public boolean
# setChild( integer $childId )

Parameters

$childId

Returns

boolean
public boolean
# update( integer $loginUserId )

Es muss die ID des eingeloggten Users uebergeben werden, damit die Aenderung protokolliert werden kann

Es muss die ID des eingeloggten Users uebergeben werden, damit die Aenderung protokolliert werden kann

Parameters

$loginUserId

Returns

boolean
public boolean
# updateMembership( )

Adds all active memberships of the child role to the parent role. If a membership still exists than start date will not be changed. Only the end date will be set to 31.12.9999.

Adds all active memberships of the child role to the parent role. If a membership still exists than start date will not be changed. Only the end date will be set to 31.12.9999.

Returns

boolean
Returns false if no parent or child row exists

Properties summary

protected $db
#
public $roleIdParent
#
public $roleIdChild
#
public $comment
#
public $usr_id
#
public $timestamp
#
public $roleIdParentOrig
#
public $roleIdChildOrig
#
public $persisted
#
Admidio API API documentation generated by ApiGen