Skip to content

Commit

Permalink
Report missed changed from master, drop 10 specific dead doc
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed May 13, 2020
1 parent feaa159 commit 554d657
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 309 deletions.
303 changes: 0 additions & 303 deletions source/devapi/forms.rst

This file was deleted.

1 change: 0 additions & 1 deletion source/devapi/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Apart from the current documentation, you can also check the `full PHP documenta
:maxdepth: 2

mainobjects
forms
database/index
search
massiveactions
Expand Down
4 changes: 2 additions & 2 deletions source/plugins/database.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ The update part is quite the same. Considering our previous example, we missed t
$DB->queryOrDie($query, $DB->error());
}
if (TableExists('glpi_plugin_myexample_configs')) {
if ($DB->tableExists('glpi_plugin_myexample_configs')) {
//missed value for configuration
$migration->addField(
'glpi_plugin_myexample_configs',
Expand All @@ -100,7 +100,7 @@ Of course, we can also add or remove tables in our upgrade process, drop fields,
Deleting tables
^^^^^^^^^^^^^^^

You will have to drop all plugins tables when it will be uninstalled. Just put your code into the ``plugin_{myplugin]_uninstall`` function:
You will have to drop all plugins tables when it will be uninstalled. Just put your code into the ``plugin_{myplugin}_uninstall`` function:

.. code-block:: php
Expand Down
6 changes: 3 additions & 3 deletions source/plugins/tips.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ On the same model you create one tab, you may add several tabs.
return $ong;
}
static function displayTabContentForItem(CommonGLPI $item, $tabnum=1, $withtemplate=0) {
static function displayTabContentForItem(CommonGLPI $item, $tabnum=0, $withtemplate=0) {
switch ($tabnum) {
case 1 : //"My first tab"
case 0 : //"My first tab"
//do something
break;
case 2 : //"My second tab""
case 1 : //"My second tab""
//do something else
break;
}
Expand Down

0 comments on commit 554d657

Please sign in to comment.