[ Index ] |
|
Code source de LifeType 1.2.4 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 395 lignes (13 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 7 fois |
Nécessite: | 0 fichiers |
GalleryResourceStorage:: (15 méthodes):
GalleryResourceStorage()
getResourcesStorageFolder()
_checkBaseStorageFolder()
checkBaseStorageFolder()
getUserFolder()
getPreviewsFolder()
getMediumSizePreviewsFolder()
_checkUserStorageFolder()
checkUserStorageFolder()
checkPreviewsStorageFolder()
checkMediumSizePreviewsStorageFolder()
storeUpload()
storeFile()
remove()
getResourcePath()
Classe: GalleryResourceStorage - X-Ref
\ingroup GalleryGalleryResourceStorage() X-Ref |
Pas de description |
getResourcesStorageFolder() X-Ref |
Returns the path to the folder where resources are stored. This method can be used as static. return: Returns a string containing the base path to the resource storage folder. |
_checkBaseStorageFolder() X-Ref |
checkBaseStorageFolder() X-Ref |
a nicer function that the one above. And it is also meant to be used by external classes return: Returns true if the base storage folder has been created and |
getUserFolder( $ownerId ) X-Ref |
getPreviewsFolder( $ownerId ) X-Ref |
getMediumSizePreviewsFolder( $ownerId ) X-Ref |
_checkUserStorageFolder( $ownerId ) X-Ref |
checkUserStorageFolder( $ownerId ) X-Ref |
Pas de description |
checkPreviewsStorageFolder( $ownerId ) X-Ref |
checkMediumSizePreviewsStorageFolder( $ownerId ) X-Ref |
storeUpload( $resourceId, $ownerId, $upload ) X-Ref |
stores a new resource in disk param: ownerId The id of the owner of this file param: albumId The album id to which the param: upload a FileUpload object with information about the |
storeFile( $resourceId, $ownerId, $fileName, $mode = RESOURCE_STORAGE_STORE_COPY ) X-Ref |
the method above works only with files that have been uploaded while this one works with files that are anywhere. It will take care of copying the file to the right destination folder and so on param: ownerId The id of the owner of this file param: albumId The album id to which the param: fileName full path and name to the file that we're trying to store |
remove( $resource ) X-Ref |
removes a file from disk param: resource A GalleryResource object, representing the resource return: Returns ok if file was successfully deleted ok or false otherwise. |
getResourcePath( $resource ) X-Ref |
returns the path of a GalleryResource object within the storage area param: $resource A GalleryResource object return: A string containing the path to the file relative to the storage area. |
Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |