class CalendarBox extends BaseBox { private $month; private $year; function __construct($month = null, $year = null) { //default month if ($month === null) $this->month = date("m"); else $this->month = $month; //default year if ($year === null) $this->year = date("Y"); else $this->year = $year; parent::__construct('Calendar'); } function drawContent() { echo "