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 TablePhotos

TableAccess
Extended by TablePhotos
Copyright: 2004-2016 The Admidio Team
License: GNU General Public License v2.0 only **********************************************************************************************
Class:

TablePhotos Diese Klasse dient dazu ein Fotoveranstaltungsobjekt zu erstellen. Eine Fotoveranstaltung kann ueber diese Klasse in der Datenbank verwaltet werden.

Beside the methods of the parent class there are the following additional methods:

countImages($pho_id = 0) - Rekursive Funktion gibt die Anzahl aller Bilder inkl. der Unteralben zurueck shuffleImage($pho_id = 0) - Rekursive Funktion zum Auswaehlen eines Beispielbildes aus einem moeglichst hohen Album createFolder() - erzeugt den entsprechenden Ordner unter adm_my_files/photos deleteInDatabase($photo_id) - Rekursive Funktion die die uebergebene Veranstaltung und alle Unterveranstaltungen loescht deleteInFilesystem($folder) - Rekursive Funktion die alles innerhalb des uebergebenen Ordners mit Unterordnern und allen Dateien loescht


Located at tablephotos.php

Methods summary

public
# __construct( Database & $database, integer $photoId = 0 )

Constructor that will create an object of a recordset of the table adm_photos. If the id is set than the specific photo album will be loaded.

Constructor that will create an object of a recordset of the table adm_photos. If the id is set than the specific photo album will be loaded.

Parameters

$database
Object of the class Database. This should be the default global object @b $gDb.
$photoId
The recordset of the photo album with this id will be loaded. If id isn't set than an empty object of the table is created.

Overrides

TableAccess::__construct
public integer
# countImages( integer $phoId = 0 )

Rekursive Funktion gibt die Anzahl aller Bilder inkl. der Unteralben zurueck pho_id noetig fuer rekursiven Aufruf

Rekursive Funktion gibt die Anzahl aller Bilder inkl. der Unteralben zurueck pho_id noetig fuer rekursiven Aufruf

Parameters

$phoId

Returns

integer
public string[]
# createFolder( )

Legt den Ordner fuer die Veranstaltung im Dateisystem an

Legt den Ordner fuer die Veranstaltung im Dateisystem an

Returns

string[]
public boolean
# delete( )

Deletes the selected photo album and all sub photo albums. After that the class will be initialize.

Deletes the selected photo album and all sub photo albums. After that the class will be initialize.

Returns

boolean
@b true if no error occurred

Overrides

TableAccess::delete
public boolean
# deleteInDatabase( integer $photoId )

Rekursive Funktion die die uebergebene Veranstaltung und alle Unterveranstaltungen loescht

Rekursive Funktion die die uebergebene Veranstaltung und alle Unterveranstaltungen loescht

Parameters

$photoId

Returns

boolean
public boolean
# hasChildAlbums( )

Check if this album has one or more child albums.

Check if this album has one or more child albums.

Returns

boolean
Return @b true if child albums exists.
public boolean
# save( boolean $updateFingerPrint = true )

Save all changed columns of the recordset in table of database. Therefore the class remembers if it's a new record or if only an update is necessary. The update statement will only update the changed columns. If the table has columns for creator or editor than these column with their timestamp will be updated. The current organization will be set per default.

Save all changed columns of the recordset in table of database. Therefore the class remembers if it's a new record or if only an update is necessary. The update statement will only update the changed columns. If the table has columns for creator or editor than these column with their timestamp will be updated. The current organization will be set per default.

Parameters

$updateFingerPrint
Default @b true. Will update the creator or editor of the recordset if table has columns like @b usr_id_create or @b usr_id_changed

Returns

boolean
If an update or insert into the database was done then return true, otherwise false.

Overrides

TableAccess::save
public array
# shuffleImage( integer $phoId = 0 )

Rekursive Funktion zum Auswaehlen eines Beispielbildes aus einem moeglichst hohen Album Rueckgabe eines Arrays mit allen noetigen Infos um den Link zu erstellen

Rekursive Funktion zum Auswaehlen eines Beispielbildes aus einem moeglichst hohen Album Rueckgabe eines Arrays mit allen noetigen Infos um den Link zu erstellen

Parameters

$phoId

Returns

array

Methods inherited from TableAccess

__sleep(), clear(), connectAdditionalTable(), countAllRecords(), getValue(), hasColumnsValueChanged(), isNewRecord(), readData(), readDataByColumns(), readDataById(), setArray(), setDatabase(), setValue()

Properties summary

protected $hasChildAlbums
#

Properties inherited from TableAccess

$additionalTables, $columnPrefix, $columnsInfos, $columnsValueChanged, $db, $dbColumns, $keyColumnName, $new_record, $tableName

Admidio API API documentation generated by ApiGen