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 MyFiles

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

MyFiles This class supports the assignment of rights to every folder of adm_my_files It's easy to create new folders and get detailed error messages if there are problems with folder rights

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

checkSettings() - method checks if adm_my_files folder has all necessary rights getServerPath() - returns the current path setSubFolder($folder) - open a folder in the current module folder if that folder doesn't exists than it will be created


Located at myfiles.php

Methods summary

public
# __construct( string $module )

module name should be the folder name in adm_my_files for this module Example: 'PHOTOS', 'BACKUP', 'DOWNLOAD'

module name should be the folder name in adm_my_files for this module Example: 'PHOTOS', 'BACKUP', 'DOWNLOAD'

Parameters

$module

Overrides

Folder::__construct
public boolean
# checkSettings( )

method checks if adm_my_files folder has all necessary rights the method is designed to make as little as possible checks

method checks if adm_my_files folder has all necessary rights the method is designed to make as little as possible checks

[1] (!@mkdir($dirPath, 0777) && !is_dir($dirPath)) This issue is difficult to reproduce, as any of concurrency-related issues. Appears when several processes attempting to create a directory which is not yet existing, but between is_dir() and mkdir() calls another process already managed to create a directory.

Returns

boolean
if false than check the parameters $errorText, $errorPath
public string
# getServerPath( )

Returns

string
returns the current path
public boolean
# setSubFolder( string $folder )

open a folder in the current module folder if that folder doesn't exists than it will be created

open a folder in the current module folder if that folder doesn't exists than it will be created

[1] (!@mkdir($dirPath, 0777) && !is_dir($dirPath)) This issue is difficult to reproduce, as any of concurrency-related issues. Appears when several processes attempting to create a directory which is not yet existing, but between is_dir() and mkdir() calls another process already managed to create a directory.

Parameters

$folder
subfolder name

Returns

boolean
Returns true if folder is successfully created and writable.

Methods inherited from Folder

copy(), createFolder(), delete(), getFolder(), move(), rename(), setFolder()

Properties summary

protected $module
#
protected $modulePath
#
protected $currentPath
#
protected $webPath
#
public $errorText
#
public $errorPath
#

Properties inherited from Folder

$folderWithPath

Admidio API API documentation generated by ApiGen