diff options
author | vlakoff <vlakoff@gmail.com> | 2012-06-16 14:21:32 +0200 |
---|---|---|
committer | vlakoff <vlakoff@gmail.com> | 2012-06-16 14:21:32 +0200 |
commit | ff3f7dea40e8fae81dd586b340d30d24154cf5ab (patch) | |
tree | bae494c2a27e11eb8a9336c6882b84de86ce6dcc /user_guide_src/source | |
parent | f512b73bc78760198a5409f2c4da71fe749b1301 (diff) |
Documentation: remaining PHP "var" declarations changed to "public"
Since PHP 4 isn't supported anymore, let's clean up these few
PHP "var" declarations which were remaining in the documentation.
According to my checks, there is no more PHP "var" left.
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() { |