function Agenda($month = null, $year = null) { $now = time(); $this->month = (int) ($month !== null ? $month : date('m', $now)); $this->year = (int) ($year !== null ? $year : date('Y', $now)); Database::createSql(DB_NAME); self::$input = new DBInput(); $this->output = new DBOutput(); $this->getPlacesFromDB(); $this->getTransportsFromDB(); $this->getSalaryFromDB(); $this->getDaysFromDB(); $this->checkNow(); }