2,052
edits
PolyglotBot (talk | contribs) m (Adding interlang links (links to translated versions of this page in other languages) triggered by origin English page "Module_development" update.) |
|||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<!-- BEGIN | <!-- BEGIN interlang links --> | ||
<!-- | <!-- Do NOT edit this section | ||
Links below | Links below are automatically managed by PolyglotBot | ||
You can edit links on the English source page : Module_development --> | |||
[[en:Module_development]] | |||
[[fr:Développement_module]] | [[fr:Développement_module]] | ||
[[es:Desarrollo_de_un_módulo]] | [[es:Desarrollo_de_un_módulo]] | ||
| Line 285: | Line 287: | ||
See chapter [[Hooks_system#Implement_the_Hook]] to know how to use Dolibarr existing hooks to add/replace code at Dolibarr hooks place. | See chapter [[Hooks_system#Implement_the_Hook]] to know how to use Dolibarr existing hooks to add/replace code at Dolibarr hooks place. | ||
=== | ===データベース アクセス=== | ||
自前テーブルの中でデータベースのデータを編集する必要がある場合、前に生成されたPHPクラスを使うこと。 | |||
専用の PHP クラスがないテーブルにアクセスしたい場合 (たとえば、特定の結合やフィルタを使用したレコードの一覧を取得したい場合など) 、これはいつでも可能。この場合に、倣うべきコード例は: | |||
操作が、 insert, update または delete: | |||
<syntaxhighlight lang="PHP"> | <syntaxhighlight lang="PHP"> | ||
| Line 299: | Line 301: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
操作が read: | |||
<syntaxhighlight lang="PHP"> | <syntaxhighlight lang="PHP"> | ||
edits