dolibarr  16.0.5
modFckeditor.class.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3  * Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
4  * Copyright (C) 2005-2011 Regis Houssin <regis.houssin@inodbox.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <https://www.gnu.org/licenses/>.
18  */
19 
28 include_once DOL_DOCUMENT_ROOT.'/core/modules/DolibarrModules.class.php';
29 
30 
36 {
42  public function __construct($db)
43  {
44  $this->db = $db;
45  $this->numero = 2000;
46 
47  $this->family = "technic";
48  $this->module_position = '20';
49  // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
50  $this->name = preg_replace('/^mod/i', '', get_class($this));
51  $this->description = "Editeur WYSIWYG";
52  // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
53  $this->version = 'dolibarr';
54  $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
55  // Name of png file (without png) used for this module.
56  // Png file must be in theme/yourtheme/img directory under name object_pictovalue.png.
57  $this->picto = 'paragraph';
58 
59  // Data directories to create when module is enabled
60  $this->dirs = array("/medias/temp", "/medias/image");
61 
62  // Config pages
63  $this->config_page_url = array("fckeditor.php");
64 
65  // Dependencies
66  $this->disabled = in_array(constant('JS_CKEDITOR'), array('disabled', 'disabled/'));
67  $this->depends = array();
68  $this->requiredby = array('modWebsites');
69 
70  // Constants
71  $this->const = array();
72  $this->const[0] = array("FCKEDITOR_ENABLE_SOCIETE", "yesno", "1", "WYSIWIG for the fields descriptions of elements (except products/services)");
73  $this->const[1] = array("FCKEDITOR_ENABLE_PRODUCTDESC", "yesno", "1", "WYSIWIG for the fields description of products/services");
74  $this->const[2] = array("FCKEDITOR_ENABLE_MAILING", "yesno", "1", "WYSIWIG for mass emailings");
75  $this->const[3] = array("FCKEDITOR_ENABLE_DETAILS", "yesno", "1", "WYSIWIG for products details lines for all entities");
76  $this->const[4] = array("FCKEDITOR_ENABLE_USERSIGN", "yesno", "1", "WYSIWIG for user signature");
77  $this->const[5] = array("FCKEDITOR_ENABLE_MAIL", "yesno", "1", "WYSIWIG for products details lines for all entities");
78  $this->const[6] = array("FCKEDITOR_SKIN", "string", "moono-lisa", "Skin by default for fckeditor");
79 
80  // Boxes
81  $this->boxes = array();
82 
83  // Permissions
84  $this->rights = array();
85  $this->rights_class = 'fckeditor';
86  }
87 }
db
$conf db
API class for accounts.
Definition: inc.php:41
description
print *****$script_file(".$version.") pid cd cd cd description as description
Definition: email_expire_services_to_customers.php:83
modFckeditor\__construct
__construct($db)
Constructor.
Definition: modFckeditor.class.php:42
name
$conf db name
Definition: repair.php:122
modFckeditor
Class to describe and enable module Fckeditor.
Definition: modFckeditor.class.php:35
DolibarrModules
Class DolibarrModules.
Definition: DolibarrModules.class.php:37