Remplacement de garradin par paheko

This commit is contained in:
Jean-Christophe Engel 2023-09-27 14:56:34 +02:00
parent 9a67da0ed5
commit d46d7b00dc
26 changed files with 58 additions and 58 deletions

Binary file not shown.

View File

@ -629,7 +629,7 @@ to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
garradin-plugin-materiels
paheko-plugin-materiels
Copyright (C) 2021 JBthePenguin
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
<?php
namespace Garradin;
namespace Paheko;
$session->requireAccess($session::SECTION_USERS, $session::ACCESS_WRITE);

View File

@ -2,10 +2,10 @@
// create variable with Category class
namespace Garradin;
namespace Paheko;
require_once __DIR__ . '/../_inc.php';
use Garradin\Plugin\Materiels\Category;
use Paheko\Plugin\Materiels\Category;
$cat = new Category;

View File

@ -1,10 +1,10 @@
<?php
namespace Garradin;
namespace Paheko;
require_once __DIR__ . '/_inc.php';
use Garradin\Utils;
use Paheko\Utils;
// check if add form is submitted

View File

@ -1,10 +1,10 @@
<?php
namespace Garradin;
namespace Paheko;
require_once __DIR__ . '/_inc.php';
use Garradin\Plugin\Materiels\Equipment;
use Paheko\Plugin\Materiels\Equipment;
// get the category requested and his name

View File

@ -2,11 +2,11 @@
// edit a specific category
namespace Garradin;
namespace Paheko;
require_once __DIR__ . '/_inc.php';
use Garradin\Utils;
use Paheko\Utils;
// get the category requested
$cat_requested = $cat->get((int) qg('id'));

View File

@ -1,10 +1,10 @@
<?php
namespace Garradin;
namespace Paheko;
require_once __DIR__ . '/_inc.php';
use Garradin\Utils;
use Paheko\Utils;
// get the category selected

View File

@ -2,10 +2,10 @@
// historic of movements (entry and output) for a specific Equipment
namespace Garradin;
use Garradin\Plugin\Materiels\Equipment;
use Garradin\Plugin\Materiels\Category;
use Garradin\Plugin\Materiels\Movement;
namespace Paheko;
use Paheko\Plugin\Materiels\Equipment;
use Paheko\Plugin\Materiels\Category;
use Paheko\Plugin\Materiels\Movement;
require_once __DIR__ . '/_inc.php';

View File

@ -3,7 +3,7 @@
// lists of all equiments owned, no owned and just listed
// ordered by category for each one.
namespace Garradin;
namespace Paheko;
if ($plugin->needUpgrade())
{
@ -12,7 +12,7 @@ if ($plugin->needUpgrade())
require_once __DIR__ . '/_inc.php';
use Garradin\Plugin\Materiels\Equipment;
use Paheko\Plugin\Materiels\Equipment;
$eqmt = new Equipment;

View File

@ -2,13 +2,13 @@
// edit a specific equipment
namespace Garradin;
namespace Paheko;
require_once __DIR__ . '/_inc.php';
use Garradin\Plugin\Materiels\Equipment;
use Garradin\Plugin\Materiels\Category;
use Garradin\Utils;
use Paheko\Plugin\Materiels\Equipment;
use Paheko\Plugin\Materiels\Category;
use Paheko\Utils;
// get the equipment requested
$eqmt = new Equipment;

View File

@ -2,10 +2,10 @@
// create variable with Movement class
namespace Garradin;
namespace Paheko;
require_once __DIR__ . '/../_inc.php';
use Garradin\Plugin\Materiels\Movement;
use Paheko\Plugin\Materiels\Movement;
$mvt = new Movement;

View File

@ -1,6 +1,6 @@
<?php
namespace Garradin;
namespace Paheko;
require_once __DIR__ . '/../_inc.php';

View File

@ -2,11 +2,11 @@
// add entry for materiel not listed
namespace Garradin;
namespace Paheko;
use Garradin\Plugin\Materiels\Category;
use Garradin\Plugin\Materiels\Equipment;
use Garradin\Utils;
use Paheko\Plugin\Materiels\Category;
use Paheko\Plugin\Materiels\Equipment;
use Paheko\Utils;
require_once __DIR__ . '/../_inc.php';

View File

@ -2,12 +2,12 @@
// add entry for materiel listed
namespace Garradin;
namespace Paheko;
require_once __DIR__ . '/../_inc.php';
use Garradin\Plugin\Materiels\Equipment;
use Garradin\Utils;
use Paheko\Plugin\Materiels\Equipment;
use Paheko\Utils;
// check if add form is submitted
$csrf_key = 'add_entry';

View File

@ -2,12 +2,12 @@
// add entry for materiel in return
namespace Garradin;
namespace Paheko;
require_once __DIR__ . '/../_inc.php';
use Garradin\Plugin\Materiels\Equipment;
use Garradin\Utils;
use Paheko\Plugin\Materiels\Equipment;
use Paheko\Utils;
// get the list of equipments for possible return (loan or rent)
$eqmt = new Equipment;

View File

@ -2,12 +2,12 @@
// delete a specific entry
namespace Garradin;
namespace Paheko;
require_once __DIR__ . '/../_inc.php';
use Garradin\Plugin\Materiels\Equipment;
use Garradin\Utils;
use Paheko\Plugin\Materiels\Equipment;
use Paheko\Utils;
// get the entry to delete
$entry_to_delete = $mvt->get((int) qg('id'));

View File

@ -2,12 +2,12 @@
// add output for a borrowed equipment
namespace Garradin;
namespace Paheko;
require_once __DIR__ . '/../_inc.php';
use Garradin\Plugin\Materiels\Equipment;
use Garradin\Utils;
use Paheko\Plugin\Materiels\Equipment;
use Paheko\Utils;
$eqmt = new Equipment;
$selected_eqmt = "";

View File

@ -1,6 +1,6 @@
<?php
namespace Garradin;
namespace Paheko;
require_once __DIR__ . '/../_inc.php';

View File

@ -2,12 +2,12 @@
// add output for an available equipment
namespace Garradin;
namespace Paheko;
require_once __DIR__ . '/../_inc.php';
use Garradin\Plugin\Materiels\Equipment;
use Garradin\Utils;
use Paheko\Plugin\Materiels\Equipment;
use Paheko\Utils;
// get the list of all available equipments ordered by category
$eqmt = new Equipment;

View File

@ -2,12 +2,12 @@
// delete a specific entry
namespace Garradin;
namespace Paheko;
require_once __DIR__ . '/../_inc.php';
use Garradin\Plugin\Materiels\Equipment;
use Garradin\Utils;
use Paheko\Plugin\Materiels\Equipment;
use Paheko\Utils;
// get the output to delete
$output_to_delete = $mvt->get((int) qg('id'));

View File

@ -1,6 +1,6 @@
<?php
namespace Garradin;
namespace Paheko;
$db = DB::getInstance();

View File

@ -1,8 +1,8 @@
<?php
namespace Garradin\Plugin\Materiels;
namespace Paheko\Plugin\Materiels;
use Garradin\DB;
use Paheko\DB;
class Category
{

View File

@ -1,9 +1,9 @@
<?php
namespace Garradin\Plugin\Materiels;
namespace Paheko\Plugin\Materiels;
use Garradin\DB;
use Garradin\Plugin\Materiels\Category;
use Paheko\DB;
use Paheko\Plugin\Materiels\Category;
class Equipment
{

View File

@ -1,9 +1,9 @@
<?php
namespace Garradin\Plugin\Materiels;
namespace Paheko\Plugin\Materiels;
use Garradin\DB;
use Garradin\Plugin\Materiels\Equipment;
use Paheko\DB;
use Paheko\Plugin\Materiels\Equipment;
class Movement
{

View File

@ -1,6 +1,6 @@
<?php
namespace Garradin;
namespace Paheko;
$db = DB::getInstance();