diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-06-16 14:35:03 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-06-16 14:35:03 +0200 |
commit | ae3d05f2917c9a15160f582b97f9389fde6974c4 (patch) | |
tree | bae494c2a27e11eb8a9336c6882b84de86ce6dcc /user_guide_src/source | |
parent | f512b73bc78760198a5409f2c4da71fe749b1301 (diff) | |
parent | ff3f7dea40e8fae81dd586b340d30d24154cf5ab (diff) |
Merge pull request #1492 from vlakoff/develop
Documentation: remaining PHP "var" declarations changed to "public"
Diffstat (limited to 'user_guide_src/source')
-rw-r--r-- | user_guide_src/source/database/query_builder.rst | 18 | ||||
-rw-r--r-- | user_guide_src/source/general/models.rst | 6 |
2 files changed, 12 insertions, 12 deletions
diff --git a/user_guide_src/source/database/query_builder.rst b/user_guide_src/source/database/query_builder.rst index 54e8df6b5..b86a0c8db 100644 --- a/user_guide_src/source/database/query_builder.rst +++ b/user_guide_src/source/database/query_builder.rst @@ -603,9 +603,9 @@ Here is an example using an object:: /* class Myclass { - var $title = 'My Title'; - var $content = 'My Content'; - var $date = 'My Date'; + public $title = 'My Title'; + public $content = 'My Content'; + public $date = 'My Date'; } */ @@ -730,9 +730,9 @@ Or an object:: /* class Myclass { - var $title = 'My Title'; - var $content = 'My Content'; - var $date = 'My Date'; + public $title = 'My Title'; + public $content = 'My Content'; + public $date = 'My Date'; } */ @@ -766,9 +766,9 @@ Or you can supply an object:: /* class Myclass { - var $title = 'My Title'; - var $content = 'My Content'; - var $date = 'My Date'; + public $title = 'My Title'; + public $content = 'My Content'; + public $date = 'My Date'; } */ diff --git a/user_guide_src/source/general/models.rst b/user_guide_src/source/general/models.rst index 87f63e416..2e1e025ee 100644 --- a/user_guide_src/source/general/models.rst +++ b/user_guide_src/source/general/models.rst @@ -18,9 +18,9 @@ model class might look like:: class Blog_model extends CI_Model { - var $title = ''; - var $content = ''; - var $date = ''; + public $title = ''; + public $content = ''; + public $date = ''; function __construct() { |