Escape a value for use in a filesystem path.
string
escape_name
(string $in)
-
string
$in: Value to escape (original value)
Standard modular listing function for OcCLE FS hooks.
~array
listing
(array $meta_dir, string $meta_root_node, array $current_dir, array &$occle_fs)
-
array
$meta_dir: The current meta-directory path
-
string
$meta_root_node: The root node of the current meta-directory
-
array
$current_dir: The current directory listing
-
array
&$occle_fs: A reference to the OcCLE filesystem object
Standard modular directory creation function for OcCLE FS hooks.
boolean
make_directory
(array $meta_dir, string $meta_root_node, string $new_dir_name, array &$occle_fs)
-
array
$meta_dir: The current meta-directory path
-
string
$meta_root_node: The root node of the current meta-directory
-
string
$new_dir_name: The new directory name
-
array
&$occle_fs: A reference to the OcCLE filesystem object
Standard modular file reading function for OcCLE FS hooks.
~string
read_file
(array $meta_dir, string $meta_root_node, string $file_name, array &$occle_fs)
-
array
$meta_dir: The current meta-directory path
-
string
$meta_root_node: The root node of the current meta-directory
-
string
$file_name: The file name
-
array
&$occle_fs: A reference to the OcCLE filesystem object
Standard modular directory removal function for OcCLE FS hooks.
boolean
remove_directory
(array $meta_dir, string $meta_root_node, string $dir_name, array &$occle_fs)
-
array
$meta_dir: The current meta-directory path
-
string
$meta_root_node: The root node of the current meta-directory
-
string
$dir_name: The directory name
-
array
&$occle_fs: A reference to the OcCLE filesystem object
Standard modular file removal function for OcCLE FS hooks.
boolean
remove_file
(array $meta_dir, string $meta_root_node, string $file_name, array &$occle_fs)
-
array
$meta_dir: The current meta-directory path
-
string
$meta_root_node: The root node of the current meta-directory
-
string
$file_name: The file name
-
array
&$occle_fs: A reference to the OcCLE filesystem object
Unescape a value from a filesystem path back to the original.
string
unescape_name
(string $in)
-
string
$in: Escaped value
Standard modular file writing function for OcCLE FS hooks.
boolean
write_file
(array $meta_dir, string $meta_root_node, string $file_name, mixed $contents, array &$occle_fs)
-
array
$meta_dir: The current meta-directory path
-
string
$meta_root_node: The root node of the current meta-directory
-
string
$file_name: The file name
-
mixed
$contents: The new file contents (string or integer)
-
array
&$occle_fs: A reference to the OcCLE filesystem object
Take a provided key-value map from the path and generate a DB query WHERE map array.
~array
_do_where
(string $table_name, string $keys)
-
string
$table_name: Database table name
-
string
$keys: Key-value map ("key:value,key2:value2")