summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries/encrypt.rst
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide_src/source/libraries/encrypt.rst')
-rw-r--r--user_guide_src/source/libraries/encrypt.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/user_guide_src/source/libraries/encrypt.rst b/user_guide_src/source/libraries/encrypt.rst
index 6b65099a6..67e2a0190 100644
--- a/user_guide_src/source/libraries/encrypt.rst
+++ b/user_guide_src/source/libraries/encrypt.rst
@@ -80,9 +80,9 @@ Once loaded, the Encrypt library object will be available using::
Class Reference
***************
-.. class:: CI_Encrypt
+.. php:class:: CI_Encrypt
- .. method:: encode($string[, $key = ''])
+ .. php:method:: encode($string[, $key = ''])
:param string $string: Data to encrypt
:param string $key: Encryption key
@@ -103,7 +103,7 @@ Class Reference
$encrypted_string = $this->encrypt->encode($msg, $key);
- .. method:: decode($string[, $key = ''])
+ .. php:method:: decode($string[, $key = ''])
:param string $string: String to decrypt
:param string $key: Encryption key
@@ -124,7 +124,7 @@ Class Reference
$encrypted_string = $this->encrypt->decode($msg, $key);
- .. method:: set_cipher($cipher)
+ .. php:method:: set_cipher($cipher)
:param int $cipher: Valid PHP MCrypt cypher constant
:returns: CI_Encrypt instance (method chaining)
@@ -142,7 +142,7 @@ Class Reference
echo extension_loaded('mcrypt') ? 'Yup' : 'Nope';
- .. method:: set_mode($mode)
+ .. php:method:: set_mode($mode)
:param int $mode: Valid PHP MCrypt mode constant
:returns: CI_Encrypt instance (method chaining)
@@ -155,7 +155,7 @@ Class Reference
Please visit php.net for a list of `available modes <http://php.net/mcrypt>`_.
- .. method:: encode_from_legacy($string[, $legacy_mode = MCRYPT_MODE_ECB[, $key = '']])
+ .. php:method:: encode_from_legacy($string[, $legacy_mode = MCRYPT_MODE_ECB[, $key = '']])
:param string $string: String to encrypt
:param int $legacy_mode: Valid PHP MCrypt cipher constant