dolibarr  9.0.0
modBookmark.class.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3  * Copyright (C) 2005-2007 Laurent Destailleur <eldy@users.sourceforge.net>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
27 include_once DOL_DOCUMENT_ROOT .'/core/modules/DolibarrModules.class.php';
28 
29 
34 {
35 
41  function __construct($db)
42  {
43  $this->db = $db;
44  $this->numero = 330;
45 
46  $this->family = "technic";
47  // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
48  $this->name = preg_replace('/^mod/i','',get_class($this));
49  $this->description = "Gestion des Bookmarks";
50 
51  // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
52  $this->version = 'dolibarr';
53 
54  $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
55  $this->picto='bookmark';
56 
57  // Data directories to create when module is enabled
58  $this->dirs = array();
59 
60  // Dependancies
61  $this->depends = array();
62  $this->requiredby = array();
63  $this->langfiles = array("bookmarks");
64 
65  // Config pages
66  $this->config_page_url = array('bookmark.php@bookmarks');
67 
68  // Constants
69  $this->const = array();
70 
71  // Boxes
72  $this->boxes = array(0=>array('file'=>'box_bookmarks.php','enabledbydefaulton'=>'Home'));
73 
74  // Permissions
75  $this->rights = array();
76  $this->rights_class = 'bookmark';
77  $r=0;
78 
79  $r++;
80  $this->rights[$r][0] = 331; // id de la permission
81  $this->rights[$r][1] = 'Lire les bookmarks'; // libelle de la permission
82  $this->rights[$r][2] = 'r'; // type de la permission (deprecie a ce jour)
83  $this->rights[$r][3] = 0; // La permission est-elle une permission par defaut
84  $this->rights[$r][4] = 'lire';
85 
86  $r++;
87  $this->rights[$r][0] = 332; // id de la permission
88  $this->rights[$r][1] = 'Creer/modifier les bookmarks'; // libelle de la permission
89  $this->rights[$r][2] = 'r'; // type de la permission (deprecie a ce jour)
90  $this->rights[$r][3] = 0; // La permission est-elle une permission par defaut
91  $this->rights[$r][4] = 'creer';
92 
93  $r++;
94  $this->rights[$r][0] = 333; // id de la permission
95  $this->rights[$r][1] = 'Supprimer les bookmarks'; // libelle de la permission
96  $this->rights[$r][2] = 'r'; // type de la permission (d�pr�ci� � ce jour)
97  $this->rights[$r][3] = 0; // La permission est-elle une permission par d�faut
98  $this->rights[$r][4] = 'supprimer';
99 
100 
101  // Menus
102  //-------
103  $this->menu = 1; // This module add menu entries. They are coded into menu manager.
104  }
105 }
Class DolibarrModules.
</td >< td class="liste_titre" align="right"></td ></tr >< tr class="liste_titre">< input type="checkbox" onClick="toggle(this)"/> Ref p ref Label p label Duration p duration warehouseinternal SELECT description FROM product_lang WHERE qty< br > qty qty qty StockTooLow img yes disabled img no img no< tr class="oddeven">< td >< input type="checkbox" class="check" name="' . $i . '"' . $disabled . '></td >< td >< input type="checkbox" class="check" name="choose'.$i.'"></td >< td class="nowrap"></td >< td >< input type="hidden" name="desc' . $i . '" value="' . dol_escape_htmltag($objp-> description
Only used if Module[ID]Desc translation string is not found.
Definition: replenish.php:573
__construct($db)
Constructor.
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition: repair.php:103
Class to describe and enable module Bookmark.