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 DateTimeExtended

DateTime implements DateTimeInterface
Extended by DateTimeExtended
Copyright: 2004-2016 The Admidio Team
License: GNU General Public License v2.0 only **********************************************************************************************
Class: DateTimeExtended
Located at datetimeextended.php

Methods summary

public
# __construct( string $date, string $format, DateTimeZone $timezone = null )

es muss das Datum und das dazugehoerige Format uebergeben werden

es muss das Datum und das dazugehoerige Format uebergeben werden

Deprecated

3.2.0:4.0.0 Switched to native DateTime method. Use DateTime::createFromFormat()

Parameters

$date
String mit dem Datum
$format
das zum Datum passende Format (Schreibweise aus date())
$timezone
DateTimeZone

Overrides

DateTime::__construct
public boolean
# isValid( )

gibt true oder false zurueck, je nachdem ob DateTime gueltig ist

gibt true oder false zurueck, je nachdem ob DateTime gueltig ist

Deprecated

3.2.0:4.0.0 Switched to native DateTime method. Use DateTime::createFromFormat() === false

Returns

boolean
public integer
# getAge( )

berechnet aus dem Datum das Alter einer Person

berechnet aus dem Datum das Alter einer Person

Deprecated

3.2.0:4.0.0 Switched to native DateTime method. Use DateTime::createFromFormat()->diff(new DateTime('now'))->y


Returns

integer
public static string|string[]
# getWeekdays( integer $weekday = 0 )

Returns an array with all 7 weekdays with full name in the specific language.

Returns an array with all 7 weekdays with full name in the specific language.

Parameters

$weekday
The number of the weekday for which the name should be returned (1 = Monday ...)

Returns

string|string[]
with all 7 weekday or if param weekday is set than the full name of that weekday
public static string
# getDateFormatForDatepicker( string $format = 'Y-m-d' )

The method will convert a date format with the syntax of date() to a syntax that is known by the bootstrap datepicker plugin. e.g.: input: 'd.m.Y' output: 'dd.mm.yyyy' e.g.: input: 'j.n.y' output: 'd.m.yy'

The method will convert a date format with the syntax of date() to a syntax that is known by the bootstrap datepicker plugin. e.g.: input: 'd.m.Y' output: 'dd.mm.yyyy' e.g.: input: 'j.n.y' output: 'd.m.yy'

Parameters

$format

Optional a format could be given in the date() syntax that should be transformed. If no format is set then the format of the class constructor will be used.

Returns

string
Return the transformed format that is valid for the datepicker.

Methods inherited from DateTime

__set_state(), __wakeup(), add(), createFromFormat(), diff(), format(), getLastErrors(), getOffset(), getTimestamp(), getTimezone(), modify(), setDate(), setISODate(), setTime(), setTimestamp(), setTimezone(), sub()

Constants summary

Constants inherited from DateTime

ATOM, COOKIE, ISO8601, RFC1036, RFC1123, RFC2822, RFC3339, RFC3339_EXTENDED, RFC822, RFC850, RSS, W3C

Properties summary

private $valid
#
Admidio API API documentation generated by ApiGen