Skip to content
Snippets Groups Projects
Commit 6b9922d6 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

Code cleaning

parent 7e6ac450
Branches
Tags 6.50.2
1 merge request!258Dev/13872 Orphee Allow Hold Available Items
......@@ -18,9 +18,6 @@
* along with AFI-OPAC 2.0; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
////////////////////////////////////////////////////////////////////////////////////////
// FICHE ABONNE
///////////////////////////////////////////////////////////////////////////////////////
class abonne
{
......@@ -55,9 +52,6 @@ class abonne
}
// ----------------------------------------------------------------
// Import d'une fiche
// ----------------------------------------------------------------
public function importFiche($data,$format)
{
if($format==4) $this->importFicheXml($data);
......@@ -73,13 +67,7 @@ class abonne
}
// ----------------------------------------------------------------
// Import d'une fiche en ASCII
// ----------------------------------------------------------------
public function importFicheAscii($data) {
xdebug_break();
// Transco accents
$data=$this->changeAccents($data);
$enreg['MAIL'] = '';
// Données d'import
......@@ -113,9 +101,7 @@ class abonne
$this->saveorUpdateInDB($enreg);
}
// ----------------------------------------------------------------
// Import d'une fiche en XML
// ----------------------------------------------------------------
public function importFicheXml($data){
// Transco accents
$data=$this->changeAccents($data);
......@@ -180,9 +166,6 @@ class abonne
}
// ----------------------------------------------------------------
// Transformation des accents
// ----------------------------------------------------------------
private function changeAccents($chaine)
{
if(!trim($chaine)) return $chaine;
......@@ -197,9 +180,7 @@ class abonne
}
}
// ----------------------------------------------------------------
// Filtrage des caracteres dos
// ----------------------------------------------------------------
private function dosDecode($char)
{
switch($char)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment