Пример #1
0
 /**
  * The constructor for the exporter
  * 
  * @param \GO\Base\Data\Store $store
  * @param \GO\Base\Data\ColumnModel $columnModel
  * @param Boolean $header
  * @param Boolean $humanHeaders
  * @param String $title
  * @param Mixed $orientation ('P' for Portrait,'L' for Landscape of false for none) 
  */
 public function __construct(\GO\Base\Data\AbstractStore $store, $header = true, $humanHeaders = true, $title = false, $orientation = false)
 {
     $this->store = $store;
     $this->header = $header;
     $this->title = $title;
     $this->orientation = $orientation;
     $this->humanHeaders = $humanHeaders;
     if (is_a($store, "\\GO\\Base\\Data\\DbStore")) {
         $exportName = $this->store->getFindParams()->getParam('export');
         $this->totalizeColumns = isset(\GO::session()->values[$exportName]['totalizeColumns']) ? \GO::session()->values[$exportName]['totalizeColumns'] : array();
         foreach ($this->totalizeColumns as $column) {
             $this->totals[$column] = 0;
         }
     }
 }