<?php /** * Copyright 2009, 2010 AEGEE-Europe * * This file is part of AEGEE-Europe Online Membership System. * * AEGEE-Europe Online Membership System is free software: you can * redistribute it and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation, either * version 3 of the License, or (at your option) any later version. * * AEGEE-Europe Online Membership System is distributed in the hope * that it will be useful, but WITHOUT ANY WARRANTY; without even the * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with AEGEE-Europe Online Membership System. If not, see * <http://www.gnu.org/licenses/>. */ /** * Simple date column */ require_once(FILESYSTEMROOTPATH."include/list/TextColumn.php"); class DateColumn extends TextColumn { /** * Constructor * * @param string name of the column (as provided in the parameter of getCellValue()) * @param string header value */ public function __construct($name, $header) { parent::__construct($name, $header); } public function getCellValue($rowNum, $row) { return getDisplayDate($row[$this->name]); } }