Skip to content

Commit

Permalink
исправление опечатки
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeytolkachyov committed Jan 5, 2024
1 parent 5ac2117 commit 6f3cf2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ A `collapsible="true"` attribute is optional. If it is not set you will see whol
### Helper class name
The name of the helper class is formed dynamically in the method `getMethodHelperClass` based (file: `libraries\Webtolk\JMoodle\src\JMoodle.php`) on the name of the requested REST API Moodle method according to the following logic:
- get the Moodle webserivec method name
- explode it to parts by undescore `_`
- explode it to parts by underscore `_`
So the helper class for `core_webservice_get_site_info` will found in Webtolk\JMoodle\Helper\ **Core\Webservice** namespace - **Webtolk\JMoodle\Helper\Core\Webservice**.
If the class name contains the word `Self`, we rename it to `MySelf`. So Helpers fo Moodle webservices `enrol_self_...` methods are placed in Enrol\**My**Self namespace - **Webtolk\JMoodle\Helper\Enrol\MySelf** - because the word Self is reserved in PHP.
### Empty method helper class example
Expand Down

0 comments on commit 6f3cf2a

Please sign in to comment.