dolibarr 20.0.0
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
28include_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 = (defined('JS_CKEDITOR') && in_array(constant('JS_CKEDITOR'), array('disabled', 'disabled/')));
67 $this->depends = array();
68 $this->requiredby = array('modWebsites');
69 $this->enabled_bydefault = true; // Will be enabled during install
70
71 // Constants
72 $this->const = array();
73 $this->const[0] = array("FCKEDITOR_ENABLE_SOCIETE", "yesno", "1", "WYSIWYG for the fields descriptions of elements (except products/services)");
74 $this->const[2] = array("FCKEDITOR_ENABLE_DETAILS", "yesno", "1", "WYSIWYG for products details lines for all entities");
75 $this->const[3] = array("FCKEDITOR_ENABLE_USERSIGN", "yesno", "1", "WYSIWYG for user signature");
76 $this->const[4] = array("FCKEDITOR_ENABLE_MAILING", "yesno", "1", "WYSIWYG for mass emailings");
77 $this->const[5] = array("FCKEDITOR_ENABLE_MAIL", "yesno", "1", "WYSIWYG for products details lines for all entities");
78
79 // Boxes
80 $this->boxes = array();
81
82 // Permissions
83 $this->rights = array();
84 $this->rights_class = 'fckeditor';
85 }
86}
Class DolibarrModules.
Class to describe and enable module Fckeditor.
__construct($db)
Constructor.
print $script_file $mode $langs defaultlang(is_numeric($duration_value) ? " delay=". $duration_value :"").(is_numeric($duration_value2) ? " after cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
a disabled
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition repair.php:140