summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries/encrypt.rst
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-02-02 12:41:01 +0100
committerAndrey Andreev <narf@devilix.net>2015-02-02 12:41:01 +0100
commitcd3d9dbcbc99fa956b7400d328f202e1bcab4677 (patch)
treeca1e12b6751f31de8f49055118318643f7d647c7 /user_guide_src/source/libraries/encrypt.rst
parent7fd0c2d22ccbeb824419477ae8b506b84002ea13 (diff)
[ci skip] Fix #3515
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