ID = $calendarRecord->UID; $this->Name = $calendarRecord->Name; $this->Website = $calendarRecord->Website; } public static function __compare(CalendarDTO $cal1, CalendarDTO $cal2) { return strcmp($cal1->Name, $cal2->Name); } } ?>