Début restructuration pour compatibilité version 1.3 de paheko
FossilOrigin-Name: 467790c5738a867592117ea6b3a7ac6c61738dab3b8e29a48fed8f19b9df2b38
This commit is contained in:
parent
e75c56b736
commit
bc4739877c
27 changed files with 77 additions and 46 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Garradin\Plugin\RecusFiscaux;
|
||||
namespace Paheko\Plugin\RecusFiscaux;
|
||||
|
||||
/**
|
||||
* rassembler les infos d'une personne
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace Garradin\Plugin\RecusFiscaux;
|
||||
namespace Paheko\Plugin\RecusFiscaux;
|
||||
|
||||
use Garradin\DB;
|
||||
use Paheko\DB;
|
||||
use KD2\ZipWriter;
|
||||
|
||||
class Utils
|
||||
|
|
@ -229,6 +229,7 @@ class Utils
|
|||
$condition,
|
||||
$tri
|
||||
);
|
||||
error_log("\ngetVersementsTarifsComptes : sql=" . $sql);
|
||||
return $db->get($sql);
|
||||
}
|
||||
|
||||
|
|
@ -417,7 +418,7 @@ class Utils
|
|||
/**
|
||||
* récupérer dans la config du plugin les champs des membres
|
||||
* utilisés pour le nom et le prénom ; ajouter/supprimer les
|
||||
* modifications par rapport à la config garradin
|
||||
* modifications par rapport à la config paheko
|
||||
* @return array tableau des champs : clé = nom, valeur = { titre, position }
|
||||
*/
|
||||
public static function getChampsNom($config, $plugin) : array
|
||||
|
|
@ -426,11 +427,11 @@ class Utils
|
|||
// pour le nom et le prénom (le tableau est vide si pas mémorisé)
|
||||
$champsNom = (array) $plugin->getConfig('champsNom');
|
||||
|
||||
// récupérer dans la config Garradin les champs des membres
|
||||
// récupérer dans la config Paheko les champs des membres
|
||||
// utilisés pour le nom et le préno
|
||||
$champsGarradin = $config->get('champs_membres')->listAssocNames();
|
||||
$champsPaheko = $config->get('champs_membres')->listAssocNames();
|
||||
|
||||
foreach ($champsGarradin as $name => $title)
|
||||
foreach ($champsPaheko as $name => $title)
|
||||
{
|
||||
if (stristr($title, 'nom'))
|
||||
{
|
||||
|
|
@ -447,10 +448,10 @@ class Utils
|
|||
}
|
||||
}
|
||||
// opération symétrique : un champ mémorisé dans la config du
|
||||
// plugin a-t-il disparu de la config garradin ?
|
||||
// plugin a-t-il disparu de la config paheko ?
|
||||
foreach ($champsNom as $nom => $champ)
|
||||
{
|
||||
if (! array_key_exists($nom, $champsGarradin))
|
||||
if (! array_key_exists($nom, $champsPaheko))
|
||||
{
|
||||
// absent => le supprimer
|
||||
unset($champsNom[$nom]);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Garradin\Plugin\RecusFiscaux;
|
||||
namespace Paheko\Plugin\RecusFiscaux;
|
||||
|
||||
class Versement
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue