Пример #1
0
 /**
  * Write XML
  * @return 
  * @throws UnexpectedValueException Thrown if obj_id is not of type webr or no obj_id is given 
  */
 public function write()
 {
     $this->init();
     if ($this->add_header) {
         $this->buildHeader();
     }
     $this->xmlStartTag('Folder', array('Id' => $this->folder->getId()));
     $this->xmlElement('Title', array(), $this->folder->getTitle());
     $this->xmlElement('Description', array(), $this->folder->getDescription());
     include_once './Services/Container/classes/class.ilContainerSortingSettings.php';
     ilContainerSortingSettings::_exportContainerSortingSettings($this, $this->obj_id);
     $this->xmlEndTag('Folder');
 }
 /**
  * Start wrting xml
  */
 public function export($a_with_header = true)
 {
     if ($this->getMode() == self::MODE_EXPORT) {
         if ($a_with_header) {
             $this->buildHeader();
         }
         $this->buildCategory();
         $this->buildTranslations();
         include_once './Services/Container/classes/class.ilContainerSortingSettings.php';
         ilContainerSortingSettings::_exportContainerSortingSettings($this, $this->getCategory()->getId());
         include_once './Services/Container/classes/class.ilContainer.php';
         ilContainer::_exportContainerSettings($this, $this->category->getId());
         $this->buildFooter();
     }
 }
Пример #3
0
 function start()
 {
     if ($this->getMode() == self::MODE_SOAP) {
         $this->__buildHeader();
         $this->__buildCourseStart();
         $this->__buildMetaData();
         $this->__buildAdvancedMetaData();
         if ($this->attach_users) {
             $this->__buildAdmin();
             $this->__buildTutor();
             $this->__buildMember();
         }
         $this->__buildSubscriber();
         $this->__buildWaitingList();
         $this->__buildSetting();
         include_once './Services/Container/classes/class.ilContainerSortingSettings.php';
         ilContainerSortingSettings::_exportContainerSortingSettings($this, $this->course_obj->getId());
         ilContainer::_exportContainerSettings($this, $this->course_obj->getId());
         $this->__buildFooter();
     } elseif ($this->getMode() == self::MODE_EXPORT) {
         $this->__buildCourseStart();
         $this->__buildMetaData();
         $this->__buildAdvancedMetaData();
         $this->__buildSetting();
         include_once './Services/Container/classes/class.ilContainerSortingSettings.php';
         ilContainerSortingSettings::_exportContainerSortingSettings($this, $this->course_obj->getId());
         ilContainer::_exportContainerSettings($this, $this->course_obj->getId());
         $this->__buildFooter();
     }
 }
Пример #4
0
 function start()
 {
     if ($this->getMode() == self::MODE_SOAP) {
         $this->__buildHeader();
         $this->__buildGroup();
         $this->__buildTitleDescription();
         $this->__buildRegistration();
         if ($this->attach_users) {
             $this->__buildAdmin();
             $this->__buildMember();
         }
         include_once './Services/Container/classes/class.ilContainerSortingSettings.php';
         ilContainerSortingSettings::_exportContainerSortingSettings($this, $this->group_obj->getId());
         ilContainer::_exportContainerSettings($this, $this->group_obj->getId());
         $this->__buildFooter();
     } elseif ($this->getMode() == self::MODE_EXPORT) {
         $this->__buildGroup();
         $this->__buildTitleDescription();
         $this->__buildRegistration();
         include_once './Services/Container/classes/class.ilContainerSortingSettings.php';
         ilContainerSortingSettings::_exportContainerSortingSettings($this, $this->group_obj->getId());
         ilContainer::_exportContainerSettings($this, $this->group_obj->getId());
         $this->__buildFooter();
     }
 }