public static function get_view($year = 0, $month = 0, $day = 0) { $object = new self(); $object->init(); if ($year) { $object->set_year($year); } if ($month) { $object->set_month($month); } if ($day) { $object->set_day($day); } $object->build_view(AppContext::get_request()); return $object->view; }