本文整理汇总了PHP中Module::setDescription方法的典型用法代码示例。如果您正苦于以下问题:PHP Module::setDescription方法的具体用法?PHP Module::setDescription怎么用?PHP Module::setDescription使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Module
的用法示例。
在下文中一共展示了Module::setDescription方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Module
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MMC; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/**
* module declaration
*/
require_once "modules/pulse2/version.php";
// hide msc module for the moment
$mod = new Module("pkgs");
$mod->setVersion(VERSION);
$mod->setRevision(REVISION);
$mod->setDescription(_T("Packages", "pkgs"));
$mod->setAPIVersion("0:0:0");
$mod->setPriority(800);
$submod = new SubModule("pkgs");
$submod->setDescription(_T("Packages", "pkgs"));
$submod->setImg('modules/pkgs/img/navbar/pkgs');
$submod->setDefaultPage("pkgs/pkgs/index");
$page = new Page("index", _T('Show all packages', 'pkgs'));
$submod->addPage($page);
$page = new Page("bundleList", _T('Show all bundles', 'pkgs'));
$submod->addPage($page);
$page = new Page("add", _T('Add a package', 'pkgs'));
$submod->addPage($page);
$page = new Page("edit", _T('Edit a package', 'pkgs'));
$submod->addPage($page);
$page = new Page("addBundle", _T('Add a bundle', 'pkgs'));
示例2: Module
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MMC. If not, see <http://www.gnu.org/licenses/>.
*/
/* require_once("modules/ppolicy/includes/ppolicy-xmlrpc.php"); */
/* require_once("modules/ppolicy/includes/ppolicy.inc.php"); */
/**
* ppolicy module declaration
*/
/* require_once("modules/admin/includes/admin.inc.php"); */
require_once "modules/admin/includes/commons.inc.php";
$mod = new Module("admin");
$mod->setVersion("3.1.1");
$mod->setRevision('$Rev$');
$mod->setDescription(_T("Configuration", "admin"));
$mod->setAPIVersion("4.1.3");
$mod->setPriority(600);
/* Add the page to the module */
$submod = new SubModule("configure");
$submod->setVisibility(True);
$submod->setDescription(_T("Administration"));
$submod->setDefaultPage("admin/configure/index");
$submod->setImg('img/navbar/load');
$mod->addSubmod($submod);
/* Add the (yet empty) module to the app */
$MMCApp = MMCApp::getInstance();
$MMCApp->addModule($mod);
unset($MMCApp);
/* Load all configuration page found in the "pages" directory, they will
be added to the main submodule
示例3: Module
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MMC. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* update module declaration
*/
require_once "modules/pulse2/version.php";
$MMCApp =& MMCApp::getInstance();
$mod = new Module("update");
$mod->setVersion(VERSION);
$mod->setRevision(REVISION);
$mod->setDescription(_T("Update manager", "update"));
$mod->setAPIVersion("0:0:0");
$mod->setPriority(990);
$submod = new SubModule("update", _T("Updates", "update"));
$submod->setDefaultPage("update/update/index");
$submod->setImg('modules/update/graph/navbar/update');
$submod->setPriority(990);
$page = new Page("index", _T("All updates", "update"));
$submod->addPage($page);
$page = new Page("viewUpdates", _T("Updates", "update"));
$submod->addPage($page);
$page = new Page("ajaxUpdates", _T("Updates list", "update"));
$page->setOptions(array("visible" => False, "noHeader" => True));
$submod->addPage($page);
$page = new Page("enableUpdate", _T("Enable update", "update"));
$page->setOptions(array("visible" => False, "noHeader" => True));
示例4: Module
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MMC. If not, see <http://www.gnu.org/licenses/>.
*/
require_once "modules/ppolicy/includes/ppolicy-xmlrpc.php";
require_once "modules/ppolicy/includes/ppolicy.inc.php";
/**
* ppolicy module declaration
*/
$mod = new Module("ppolicy");
$mod->setVersion("3.1.90");
$mod->setRevision('$Rev$');
$mod->setDescription(_T("Password Policy", "ppolicy"));
$mod->setAPIVersion("0:1:0");
$mod->setPriority(600);
/* Get the base module instance reference */
$base =& $MMCApp->getModule('base');
/* Get the users sub-module instance reference */
$users =& $base->getSubmod('users');
/* Add the page to the module */
$page = new Page("indexppolicy", _T("Password policies", "ppolicy"));
$page->setImg("modules/base/graph/access/img/icn_global_active.gif", "modules/base/graph/access/img/icn_global.gif");
$page->setFile("modules/ppolicy/default/index.php");
$users->addPage($page);
$page = new Page("addppolicy", _T("Add a password policy", "ppolicy"));
$page->setImg("modules/base/graph/access/img/icn_global_active.gif", "modules/base/graph/access/img/icn_global.gif");
$page->setFile("modules/ppolicy/default/add.php");
$users->addPage($page);
示例5: Module
*
* You should have received a copy of the GNU General Public License
* along with MMC; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
require_once "modules/base/includes/computers.inc.php";
require_once "modules/base/includes/logging-xmlrpc.inc.php";
require_once "modules/base/includes/users-xmlrpc.inc.php";
/**
* module declaration
*/
$mod = new Module("base");
$mod->setVersion("3.0.94");
$mod->setRevision('$Rev$');
$mod->setAPIVersion("9:0:5");
$mod->setDescription(_("User, group and computer management"));
$mod->setPriority(0);
/**
* define main submod
*/
$submod = new SubModule("main", _("Home"));
$submod->setVisibility(False);
$submod->setDefaultPage("base/main/default");
$submod->setPriority(0);
$page = new Page("default", _("Shortcuts"));
$page->setOptions(array("visible" => False));
$submod->addPage($page);
$page = new Page("favorites", _("Favorites page"));
$page->setOptions(array("visible" => False, "AJAX" => True));
$submod->addPage($page);
$mod->addSubmod($submod);
示例6: Module
* $Id$
*
* This file is part of Mandriva Management Console (MMC).
*
* MMC is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* MMC is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MMC. If not, see <http://www.gnu.org/licenses/>.
*/
require_once "modules/sshlpk/includes/sshlpk-xmlrpc.php";
/**
* module declaration
*/
$mod = new Module("sshlpk");
$mod->setVersion("2.5.1");
$mod->setRevision('$Rev$');
$mod->setDescription(_T("LDAP Public SSH key management", "sshlpk"));
$mod->setAPIVersion("0:0:0");
$mod->setPriority(600);
$mod->addACL("showsshkey", _T("Show/Hide SSH key list", "sshlpk"));
$mod->addACL("sshkeylist", _T("Manage SSH key", "sshlpk"));
$MMCApp =& MMCApp::getInstance();
$MMCApp->addModule($mod);
示例7: _createSamba4SharesSubmodule
* You should have received a copy of the GNU General Public License
* along with MMC; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* Author(s):
* Julien Kerihuel <jkerihuel@zentyal.com>
* Miguel Julián <mjulian@zentyal.com>
*/
require "modules/samba4/includes/common-xmlrpc.inc.php";
/**
* module declaration
*/
$module = new Module("samba4");
$module->setVersion("1.0.1");
$module->setRevision('$Rev$');
$module->setDescription(_T("SAMBA4 management"), "samba4");
$module->setAPIVersion("1:0:1");
$module->setPriority(20);
$isProvisioned = isSamba4Provisioned();
$sharesSubmodule = _createSamba4SharesSubmodule($isProvisioned);
$module->addSubmod($sharesSubmodule);
$machinesSubmodule = _createSamba4MachinesSubmodule($isProvisioned);
$module->addSubmod($machinesSubmodule);
$configSubmodule = _createSamba4ConfigSubmodule($isProvisioned);
$module->addSubmod($configSubmodule);
$MMCApp =& MMCApp::getInstance();
$MMCApp->addModule($module);
function _createSamba4SharesSubmodule($isProvisioned)
{
$submodule = new SubModule("shares");
$submodule->setDescription(_T("Shares", "samba4"));
示例8: Module
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MMC; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
require_once 'modules/network/includes/network-xmlrpc.inc.php';
/**
* module declaration
*/
$mod = new Module("network");
$mod->setVersion("2.5.95");
$mod->setRevision('$Rev$');
$mod->setDescription(_T("Network management", "network"));
$mod->setAPIVersion('2:1:0');
$mod->setPriority(30);
/**
* user submod definition
*/
$submod = new SubModule("network");
$submod->setDescription(_T("Network", "network"));
$submod->setImg('modules/network/graph/img/network');
$submod->setDefaultPage("network/network/index");
$submod->setPriority(30);
$visibleDNS = True;
if (!hasDNS()) {
$submod->setDefaultPage("network/network/subnetindex");
$visibleDNS = False;
}
示例9: Module
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* MMC is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MMC; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
$mod = new Module("squid");
$mod->setVersion("2.5.89");
$mod->setRevision('');
$mod->setDescription(_T("Web Proxy Content filter"), "squid");
$mod->setAPIVersion('1:1:0');
$submod = new SubModule("internet");
$submod->setDescription(_T("Proxy", "squid"));
$submod->setImg('modules/squid/graph/navbar/proxy');
$submod->setDefaultPage("squid/internet/blackmanager");
$submod->setPriority(300);
$page = new Page("blackmanager", _T("Blacklist", "squid"));
$submod->addPage($page);
$page = new Page("whitemanager", _T("Whitelist", "squid"));
$submod->addPage($page);
$page = new Page("timemanager", _T("Time range whitelist", "squid"));
$submod->addPage($page);
$page = new Page("extmanager", _T("Extension blacklist", "squid"));
$submod->addPage($page);
$page = new Page("machmanager", _T("IP whitelist", "squid"));
示例10: Module
/**
* (c) 2009 Glen Ogilvie
*
* $Id$
*
* This file is part of Mandriva Management Console (MMC).
*
* MMC is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* MMC is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MMC. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* module declaration
*/
$mod = new Module("userquota");
$mod->setVersion("2.4.92");
$mod->setRevision('$Rev$');
$mod->setDescription(_T("Manage user quotas for filesystems and networks", "userquota"));
$mod->setAPIVersion('0:0:0');
$mod->setPriority(700);
$MMCApp =& MMCApp::getInstance();
$MMCApp->addModule($mod);
示例11: getZonesTypes
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MMC. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* shorewall module declaration
*/
include 'modules/shorewall/includes/shorewall-xmlrpc.inc.php';
$zones_types = getZonesTypes();
$lan_zones = getShorewallZones($zones_types['internal']);
$wan_zones = getShorewallZones($zones_types['external']);
$mod = new Module("shorewall");
$mod->setVersion("2.4.3");
$mod->setRevision('');
$mod->setDescription(_T("Firewall management", "shorewall"));
$mod->setAPIVersion("0:0:0");
$mod->setPriority(60);
$submod = new SubModule("shorewall", _T("Firewall", "shorewall"));
$submod->setDefaultPage("shorewall/shorewall/internal_fw");
$submod->setImg('modules/shorewall/graph/navbar/shorewall');
$submod->setPriority(60);
/* Add the page to the module */
$page = new Page("internal_fw", _T("Internal → Server", "shorewall"));
$submod->addPage($page);
if (!$lan_zones) {
$page->setOptions(array("visible" => False));
}
$page = new Page("ajax_internal_fw");
$page->setOptions(array("visible" => False, "AJAX" => True));
$submod->addPage($page);
示例12: Module
require_once '../../model/DAL/ModuleDAL.php';
//===Création du module====
$newModule = new Module();
$newAssignment = new Assignment();
$newExam = new Exam();
//regex opur les date format YYYY/MM/DD
$myregex = "~^[0-9]{4}/[0-9]{1,2}/[0-9]{1,2}\$~";
//********CREATION MODULE *******
//Vérifie ce qui est renvoyer par le POST de /view/phtml/module_create.php
//et set de l'objet newModule au fur et à mesure
$validModuleLabel = filter_input(INPUT_POST, 'label', FILTER_SANITIZE_STRING);
$newModule->setLabel($validModuleLabel);
$validModuleNumber = filter_input(INPUT_POST, 'moduleNumber', FILTER_SANITIZE_NUMBER_INT);
$newModule->setNumber($validModuleNumber);
$validModuleDescription = filter_input(INPUT_POST, 'descriptionModule', FILTER_SANITIZE_STRING);
$newModule->setDescription($validModuleDescription);
$newModule->setBareme(1);
//barème par defaut
$newModule->setAffiche(1);
//visible
//$newModule->setAssignment($newAssignment); //lors de la creation du module dans la table, l'attribut moduleId de l'assignemnt va etre modifier a la valeur de ce module.
//$newModule->setExam($newExam); //lie l'exam à ce module
//insertion du module dans la table
$validInsertModule = ModuleDAL::insertOnDuplicate($newModule);
$moduleId = $newModule->getId();
if ($validInsertModule != null) {
$moduleId = $newModule->getId();
echo "Insertion Module OK (id:" . $moduleId . ")";
} else {
echo "ECHEC insertion module, good luck";
}
示例13: Module
* (at your option) any later version.
*
* MMC is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MMC. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* report module declaration
*/
$MMCApp =& MMCApp::getInstance();
$mod = new Module("report");
$mod->setVersion("3.1.83");
$mod->setRevision('');
$mod->setDescription(_T("Reporting", "report"));
$mod->setAPIVersion("0:0:0");
$mod->setPriority(990);
$submod = new SubModule("report", _T("Report", "report"));
$submod->setDefaultPage("report/report/index");
$submod->setImg('modules/report/graph/navbar/report');
$submod->setPriority(990);
$page = new Page("index", _T("Report creation", "report"));
$submod->addPage($page);
$page = new Page("get_file", _T("Download a file from report module (report or PNG)", "report"));
$page->setOptions(array("visible" => False, "noHeader" => True));
$submod->addPage($page);
$mod->addSubmod($submod);
$MMCApp->addModule($mod);