Remplacement de garradin par paheko
This commit is contained in:
parent
9a67da0ed5
commit
d46d7b00dc
BIN
materiels.tar.gz
BIN
materiels.tar.gz
Binary file not shown.
@ -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
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Garradin;
|
||||
namespace Paheko;
|
||||
|
||||
$session->requireAccess($session::SECTION_USERS, $session::ACCESS_WRITE);
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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'));
|
||||
|
@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Garradin;
|
||||
namespace Paheko;
|
||||
|
||||
require_once __DIR__ . '/_inc.php';
|
||||
|
||||
use Garradin\Utils;
|
||||
use Paheko\Utils;
|
||||
|
||||
// get the category selected
|
||||
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Garradin;
|
||||
namespace Paheko;
|
||||
|
||||
require_once __DIR__ . '/../_inc.php';
|
||||
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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';
|
||||
|
@ -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;
|
||||
|
@ -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'));
|
||||
|
@ -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 = "";
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Garradin;
|
||||
namespace Paheko;
|
||||
|
||||
require_once __DIR__ . '/../_inc.php';
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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'));
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Garradin;
|
||||
namespace Paheko;
|
||||
|
||||
$db = DB::getInstance();
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Garradin\Plugin\Materiels;
|
||||
namespace Paheko\Plugin\Materiels;
|
||||
|
||||
use Garradin\DB;
|
||||
use Paheko\DB;
|
||||
|
||||
class Category
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Garradin;
|
||||
namespace Paheko;
|
||||
|
||||
$db = DB::getInstance();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user