Skip to content

Commit 9010060

Browse files
committed
docs: update RST format
These are not PHP functions but methods.
1 parent 962a0c0 commit 9010060

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

user_guide_src/source/models/model.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,11 @@ be applied. If you have custom error message that you want to use, place them in
401401

402402
The other way to set the validation rules to fields by functions,
403403

404-
.. php:function:: setValidationRule($field, $fieldRules)
404+
.. php:namespace:: CodeIgniter
405+
406+
.. php:class:: Model
407+
408+
.. php:method:: setValidationRule($field, $fieldRules)
405409
406410
:param string $field:
407411
:param array $fieldRules:
@@ -412,7 +416,7 @@ The other way to set the validation rules to fields by functions,
412416

413417
.. literalinclude:: model/028.php
414418

415-
.. php:function:: setValidationRules($validationRules)
419+
.. php:method:: setValidationRules($validationRules)
416420
417421
:param array $validationRules:
418422

@@ -424,7 +428,7 @@ The other way to set the validation rules to fields by functions,
424428

425429
The other way to set the validation message to fields by functions,
426430

427-
.. php:function:: setValidationMessage($field, $fieldMessages)
431+
.. php:method:: setValidationMessage($field, $fieldMessages)
428432
429433
:param string $field:
430434
:param array $fieldMessages:
@@ -435,7 +439,7 @@ The other way to set the validation message to fields by functions,
435439

436440
.. literalinclude:: model/030.php
437441

438-
.. php:function:: setValidationMessages($fieldMessages)
442+
.. php:method:: setValidationMessages($fieldMessages)
439443
440444
:param array $fieldMessages:
441445

0 commit comments

Comments
 (0)