Print Valorisation

This commit is contained in:
Michael RICOIS 2013-09-12 22:00:41 +00:00
parent d28478167e
commit e79e6ff610

View File

@ -3,7 +3,7 @@ class PagePrint
{
protected $controller = null;
protected $action = null;
protected $pagePRINT = array(
'identite-fiche' => 'siret,id',
'identite-fichepc' => 'siret,id',
@ -27,6 +27,7 @@ class PagePrint
'evaluation-indiscore2' => 'siret,id',
'evaluation-indiscore3' => 'siret,id',
'evaluation-scoring' => 'siret,id',
'evaluation-valorisation' => 'siret,id',
'pieces-bilans' => 'siret,id',
'pieces-actes' => 'siret,id',
'giant-full' => 'Pays,Type,CompanyId',
@ -34,7 +35,7 @@ class PagePrint
'giant-creditrecommendation' => 'Pays,Type,CompanyId',
'surveillance-fichier' => 'nomFic,filtre',
);
protected $pagePDF = array(
'identite-fiche' => 'siret,id',
'identite-fichepc' => 'siret,id',
@ -58,13 +59,14 @@ class PagePrint
'evaluation-indiscore2' => 'siret,id',
'evaluation-indiscore3' => 'siret,id',
'evaluation-scoring' => 'siret,id',
'evaluation-valorisation' => 'siret,id',
'pieces-bilans' => 'siret,id',
'pieces-actes' => 'siret,id',
'giant-full' => 'Pays,Type,CompanyId',
'giant-compact' => 'Pays,Type,CompanyId',
'giant-creditrecommendation' => 'Pays,Type,CompanyId',
);
protected $pageXML = array(
'identite-fiche' => 'siret,id',
'identite-fichepc' => 'siret,id',
@ -86,14 +88,15 @@ class PagePrint
'evaluation-indiscore' => 'siret,id',
'evaluation-indiscore2' => 'siret,id',
'evaluation-indiscore3' => 'siret,id',
'evaluation-valorisation' => 'siret,id',
);
public function __construct($controller, $action)
{
$this->controller = $controller;
$this->action = $action;
}
protected function getTypeElement($type)
{
$element = array();
@ -110,7 +113,7 @@ class PagePrint
}
return $element;
}
public function exportable($type)
{
$element = $this->getTypeElement($type);
@ -119,7 +122,7 @@ class PagePrint
}
return false;
}
public function filename($type, $params = array())
{
$element = $this->getTypeElement($type);
@ -135,7 +138,7 @@ class PagePrint
}
return $filename;
}
public function objectToXML($object, $params)
{
require_once 'XML/Serializer.php';