function __construct($USER_ID = 0) { global $USER; if ($USER_ID == false) { $USER_ID = $USER->GetID(); } $this->USER_ID = $USER_ID; $this->SETTINGS = CReportSettings::GetUserSettings($USER_ID); $this->TimeFull = CSite::GetDateFormat("FULL", SITE_ID); $this->TimeShort = CSite::GetDateFormat("SHORT", SITE_ID); $this->days = array('mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'); $this->month = array('jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'); }