[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
[Code source] [Imprimer] [Statistiques]
Virtual File System with SQL backend
Poids: | 2616 lignes (63 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
vfs:: (24 méthodes):
vfs()
in_docroot()
extra_sql()
add_journal()
flush_journal()
get_journal()
acl_check()
read()
write()
touch()
cp()
mv()
rm()
mkdir()
make_link()
set_attributes()
correct_attributes()
file_type()
file_exists()
get_size()
checkperms()
ls()
update_real()
get_real_info()
vfs() X-Ref |
constructor, sets up variables |
in_docroot($path) X-Ref |
test if $path lies within the webservers document-root |
extra_sql($data) X-Ref |
Return extra SQL code that should be appended (AND'ed) to certain queries param: query_type The type of query to get extra SQL code for, in the form of a VFS_SQL define return: Extra SQL code |
add_journal($data) X-Ref |
Add a journal entry after (or before) completing an operation, * and increment the version number. This function should be used internally only Note that state_one and state_two are ignored for some VFS_OPERATION's, for others * they are required. They are ignored for any "custom" operation * The two operations that require state_two: * operation * state_two * VFS_OPERATION_COPIED fake_full_path of copied to * VFS_OPERATION_MOVED * fake_full_path of moved to * If deleting, you must call add_journal () before you delete the entry from the database param: string File or directory to add entry for param: relatives Relativity array param: operation The operation that was performed. Either a VFS_OPERATION define or param: state_one The first "state" of the file or directory. Can be a file name, size, param: state_two The second "state" of the file or directory param: incversion Boolean True/False. Increment the version for the file? Note that this is return: Boolean True/False |
flush_journal($data) X-Ref |
Flush journal entries for $string. Used before adding $string flush_journal () is an internal function and should be called from add_journal () only param: string File/directory to flush journal entries of param: relatives Realtivity array param: deleteall Delete all types of journal entries, including the active Create entry. param: deletedonly Only flush 'journal-deleted' entries (created when $string was deleted) return: Boolean True/False |
get_journal($data) X-Ref |
Pas de description |
acl_check($data) X-Ref |
Pas de description |
read($data) X-Ref |
Pas de description |
write($data) X-Ref |
Pas de description |
touch($data) X-Ref |
Pas de description |
cp($data) X-Ref |
Pas de description |
mv($data) X-Ref |
Pas de description |
rm($data) X-Ref |
Pas de description |
mkdir($data) X-Ref |
Pas de description |
make_link($data) X-Ref |
Pas de description |
set_attributes($data) X-Ref |
Pas de description |
correct_attributes($data) X-Ref |
Set the correct attributes for 'string' (e.g. owner) param: string File/directory to correct attributes of param: relatives Relativity array return: Boolean True/False |
file_type($data) X-Ref |
Pas de description |
file_exists($data) X-Ref |
Pas de description |
get_size($data) X-Ref |
Pas de description |
checkperms($data) X-Ref |
Check if $this->working_id has write access to create files in $dir Simple call to acl_check param: string Directory to check access of param: relatives Relativity array return: Boolean True/False |
ls($data) X-Ref |
Pas de description |
update_real($data,$recursive = False) X-Ref |
Pas de description |
get_real_info($data) X-Ref |
Pas de description |
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |