/** * Nadpisanie paginatora ze względu na brakujące wartości headerMappings dla * kolumn pochodzących z joinowanych tabel * @param type $namespace * @param type $moreActions * @return type */ public function paginator($namespace = null, $moreActions = array()) { $paginator = parent::paginator($namespace, $moreActions); $currentHeaderMappings = $paginator->getHeaderMappings(); $paginator->setHeaderMappings(array_merge($currentHeaderMappings, array('valid_from' => array('title' => 'Certyfikat ważny od', 'sort' => true, 'format' => 'date_time'), 'valid_until' => array('title' => 'Certyfikat ważny do', 'sort' => true, 'format' => 'date_time')))); return $paginator; }
/** * @return string */ public function __construct(\Base_Model_Table $dbModelTable = null) { $this->headers = array_merge($this->headers, array('sender_address', 'smtp_host', 'smtp_port')); parent::__construct($dbModelTable); }