Exemple #1
0
 static function getMenuContent()
 {
     global $CFG_GLPI;
     $menu = array();
     $menu['title'] = self::getMenuName(2);
     $menu['page'] = PluginTasklistsTask::getSearchURL(false);
     $menu['links']['search'] = PluginTasklistsTask::getSearchURL(false);
     if (PluginTasklistsTask::canCreate()) {
         $menu['links']['add'] = PluginTasklistsTask::getFormURL(false);
     }
     return $menu;
 }
Exemple #2
0
function plugin_tasklists_executeActions($options)
{
    $task = new PluginTasklistsTask();
    return $task->executeActions($options['action'], $options['output'], $options['params']);
}
Exemple #3
0
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 Tasklists. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
include '../../../inc/includes.php';
if (!isset($_GET["id"])) {
    $_GET["id"] = "";
}
if (!isset($_GET["withtemplate"])) {
    $_GET["withtemplate"] = "";
}
$task = new PluginTasklistsTask();
if (isset($_POST["add"])) {
    $task->check(-1, CREATE, $_POST);
    $newID = $task->add($_POST);
    if ($_SESSION['glpibackcreated']) {
        Html::redirect($task->getFormURL() . "?id=" . $newID);
    }
    Html::back();
} else {
    if (isset($_POST["delete"])) {
        $task->check($_POST['id'], DELETE);
        $task->delete($_POST);
        $task->redirectToList();
    } else {
        if (isset($_POST["restore"])) {
            $task->check($_POST['id'], PURGE);
Exemple #4
0
https://github.com/InfotelGLPI/tasklists
-------------------------------------------------------------------------

LICENSE
     
This file is part of Tasklists.

Tasklists 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.

Tasklists 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 Tasklists. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
include '../../../inc/includes.php';
Html::header(PluginTasklistsTask::getTypeName(2), '', "helpdesk", "plugintasklistsmenu");
$task = new PluginTasklistsTask();
if ($task->canView() || Session::haveRight("config", CREATE)) {
    Search::show("PluginTasklistsTask");
} else {
    Html::displayRightError();
}
Html::footer();
     
This file is part of Tasklists.

Tasklists 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.

Tasklists 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 Tasklists. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
include '../../../inc/includes.php';
if (!isset($_GET["id"])) {
    $_GET["id"] = "";
}
if (!isset($_GET["withtemplate"])) {
    $_GET["withtemplate"] = "";
}
Html::header(PluginTasklistsTask::getTypeName(2), '', "helpdesk", "plugintasklistsmenu");
$task = new PluginTasklistsTask();
$task->checkGlobal(READ);
$task->getFromDB($_GET['id']);
$note = new Notepad();
$note->showForItem($task);
Html::footer();
 static function getAllRights($all = false)
 {
     $rights = array(array('itemtype' => 'PluginTasklistsTask', 'label' => PluginTasklistsTask::getTypeName(2), 'field' => 'plugin_tasklists'));
     return $rights;
 }