Skip to content

Commit 60ac03a

Browse files
authored
Merge branch 'codeigniter4:develop' into patch-10
2 parents 723af86 + f2aaa69 commit 60ac03a

4 files changed

Lines changed: 12 additions & 14 deletions

File tree

user_guide_src/source/database/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ patterns. The database functions offer clear, simple syntax.
1717
Query Helper Methods <helpers>
1818
Query Builder Class <query_builder>
1919
Transactions <transactions>
20-
Getting MetaData <metadata>
20+
Getting Metadata <metadata>
2121
Custom Function Calls <call_function>
2222
Database Events <events>
2323
Database Utilities <utilities>

user_guide_src/source/database/metadata.rst

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
#################
2-
Database Metadata
3-
#################
1+
################
2+
Getting Metadata
3+
################
44

55
.. contents::
66
:local:
77
:depth: 2
88

99
**************
10-
Table MetaData
10+
Table Metadata
1111
**************
1212

1313
These functions let you fetch table information.
@@ -39,7 +39,7 @@ running an operation on it. Returns a boolean true/false. Usage example:
3939
.. note:: Replace *table_name* with the name of the table you are looking for.
4040

4141
**************
42-
Field MetaData
42+
Field Metadata
4343
**************
4444

4545
List the Fields in a Table
@@ -71,9 +71,7 @@ performing an action. Returns a boolean true/false. Usage example:
7171

7272
.. literalinclude:: metadata/005.php
7373

74-
.. note:: Replace *field_name* with the name of the column you are looking
75-
for, and replace *table_name* with the name of the table you are
76-
looking for.
74+
.. note:: Replace *field_name* and *table_name* with the column name and the table name you are looking for.
7775

7876
Retrieve Field Metadata
7977
=======================
@@ -88,7 +86,7 @@ Returns an array of objects containing field information.
8886
Sometimes it's helpful to gather the field names or other metadata, like
8987
the column type, max length, etc.
9088

91-
.. note:: Not all databases provide meta-data.
89+
.. note:: Not all databases provide metadata.
9290

9391
Usage example:
9492

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?php
22

3-
$code = $response->getStatusCode(); // 200
4-
$reason = $response->getReason(); // OK
3+
$code = $response->getStatusCode(); // 200
4+
$reason = $response->getReasonPhrase(); // OK

user_guide_src/source/models/model.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ See :ref:`factories-loading-class` for details on the first parameter.
3434
CodeIgniter's Model
3535
*******************
3636

37-
CodeIgniter does provide a model class that provides a few nice features, including:
37+
CodeIgniter does provide a model class that has a few nice features, including:
3838

3939
- automatic database connection
4040
- basic CRUD methods
@@ -580,7 +580,7 @@ automatically, based on whether it finds an array key matching the **primary key
580580
The save method also can make working with custom class result objects much simpler by recognizing a non-simple
581581
object and grabbing its public and protected values into an array, which is then passed to the appropriate
582582
insert or update method. This allows you to work with Entity classes in a very clean way. Entity classes are
583-
simple classes that represent a single instance of an object type, like a user, a blog post, job, etc. This
583+
simple classes that represent a single instance of an object type, like a user, a blog post, a job, etc. This
584584
class is responsible for maintaining the business logic surrounding the object itself, like formatting
585585
elements in a certain way, etc. They shouldn't have any idea about how they are saved to the database. At their
586586
simplest, they might look like this:

0 commit comments

Comments
 (0)