summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/helpers/file_helper.rst
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide_src/source/helpers/file_helper.rst')
-rw-r--r--user_guide_src/source/helpers/file_helper.rst18
1 files changed, 9 insertions, 9 deletions
diff --git a/user_guide_src/source/helpers/file_helper.rst b/user_guide_src/source/helpers/file_helper.rst
index 013b583a0..92cb31a82 100644
--- a/user_guide_src/source/helpers/file_helper.rst
+++ b/user_guide_src/source/helpers/file_helper.rst
@@ -24,7 +24,7 @@ Available Functions
The following functions are available:
-.. function:: read_file($file)
+.. php:function:: read_file($file)
:param string $file: File path
:returns: File contents or FALSE on failure
@@ -49,7 +49,7 @@ The following functions are available:
function might not work if you are trying to access a file above the
calling script.
-.. function:: write_file($path, $data[, $mode = 'wb'])
+.. php:function:: write_file($path, $data[, $mode = 'wb'])
:param string $path: File path
:param string $data: Data to write to file
@@ -89,7 +89,7 @@ The following functions are available:
.. note:: This function acquires an exclusive lock on the file while writing to it.
-.. function:: delete_files($path[, $del_dir = FALSE[, $htdocs = FALSE]])
+.. php:function:: delete_files($path[, $del_dir = FALSE[, $htdocs = FALSE]])
:param string $path: Directory path
:param bool $del_dir: Whether to also delete directories
@@ -112,7 +112,7 @@ The following functions are available:
.. note:: The files must be writable or owned by the system in order to be deleted.
-.. function:: get_filenames($source_dir[, $include_path = FALSE])
+.. php:function:: get_filenames($source_dir[, $include_path = FALSE])
:param string $source_dir: Directory path
:param bool $include_path: Whether to include the path as part of the filenames
@@ -127,7 +127,7 @@ The following functions are available:
$controllers = get_filenames(APPPATH.'controllers/');
-.. function:: get_dir_file_info($source_dir, $top_level_only)
+.. php:function:: get_dir_file_info($source_dir, $top_level_only)
:param string $source_dir: Directory path
:param bool $top_level_only: Whether to look only at the specified directory (excluding sub-directories)
@@ -143,7 +143,7 @@ The following functions are available:
$models_info = get_dir_file_info(APPPATH.'models/');
-.. function:: get_file_info($file[, $returned_values = array('name', 'server_path', 'size', 'date')])
+.. php:function:: get_file_info($file[, $returned_values = array('name', 'server_path', 'size', 'date')])
:param string $file: File path
:param array $returned_values: What type of info to return
@@ -157,7 +157,7 @@ The following functions are available:
Valid ``$returned_values`` options are: `name`, `size`, `date`, `readable`, `writeable`,
`executable` and `fileperms`.
-.. function:: get_mime_by_extension($filename)
+.. php:function:: get_mime_by_extension($filename)
:param string $filename: File name
:returns: MIME type string or FALSE on failure
@@ -175,7 +175,7 @@ The following functions are available:
is here strictly for convenience. It should not be used for security
purposes.
-.. function:: symbolic_permissions($perms)
+.. php:function:: symbolic_permissions($perms)
:param int $perms: Permissions
:returns: Symbolic permissions string
@@ -188,7 +188,7 @@ The following functions are available:
echo symbolic_permissions(fileperms('./index.php')); // -rw-r--r--
-.. function:: octal_permissions($perms)
+.. php:function:: octal_permissions($perms)
:param int $perms: Permissions
:returns: Octal permissions string