示例#1
0
 private function getCalendarSubscriptions(\steam_room $cal)
 {
     $calendarSubscriptions = $cal->get_attribute("CALENDAR_SUBSCRIPTIONS");
     foreach ($calendarSubscriptions as $calendarSubscription) {
         $calendarSubscriptionId = $calendarSubscription->get_id();
         if (!isset($this->extensions[$calendarSubscriptionId])) {
             $this->result[$calendarSubscriptionId] = $calendarSubscription;
             $this->extensions[$calendarSubscriptionId] = $calendarSubscription->get_attribute("CALENDAR_OWNER");
         }
     }
 }
 public function updateUserCreationLogFile($filename, $newXMLContent)
 {
     $container = new steam_room($GLOBALS["STEAM"]->get_id(), $this->getCurrentUsersWorkrommID());
     $inventory = $container->get_inventory();
     foreach ($inventory as $object) {
         if ($object->get_type() == CLASS_DOCUMENT && $object->get_attribute(IS_LOGFILE) == 1 && $object->get_name() == $filename) {
             $object->set_content($newXMLContent);
         }
     }
 }
 public function __construct(steam_room $room)
 {
     self::init();
     $this->room = $room;
     $this->forum = $room->get_object_by_name("forum");
 }