Autoloading : Add Export (Print) to a new class

This commit is contained in:
Michael RICOIS 2013-11-25 09:23:52 +00:00
parent d0747216f1
commit ce204cefc6
4 changed files with 4 additions and 4 deletions

View File

@ -57,7 +57,7 @@ class Application_Controller_Plugin_Menu extends Zend_Controller_Plugin_Abstract
} else {
//Gestion affichage Lien Print / PDF / XML
$page = new Scores_PagePrint($controller, $action);
$page = new Scores_Export_Print($controller, $action);
if ($page->exportable('print')){
$view->print = $page->filename('print', $request->getParams());

View File

@ -8,7 +8,7 @@ class Application_Controller_Plugin_Pdf extends Zend_Controller_Plugin_Abstract
$controller = $this->_request->getControllerName();
$action = $this->_request->getActionName();
$page = new Scores_PagePrint($controller, $action);
$page = new Scores_Export_Print($controller, $action);
if ($page->exportable('pdf')){
$layout = $this->_response->getBody();
$filename = $page->filename('pdf', $this->_request->getParams());

View File

@ -9,7 +9,7 @@ class Application_Controller_Plugin_Xml extends Zend_Controller_Plugin_Abstract
$action = $this->_request->getActionName();
$view = $layout->getView();
$page = new Scores_PagePrint($controller, $action);
$page = new Scores_Export_Print($controller, $action)
if ($page->exportable('xml') && !empty($view->exportObjet)) {
$page->objectToXML($view->exportObjet, $this->_request->getParams());
}

View File

@ -1,5 +1,5 @@
<?php
class Scores_PagePrint
class Scores_Export_Print
{
protected $controller = null;
protected $action = null;