MDL-29956 ims-cc - whitespace cleanup
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 14 Nov 2011 22:35:12 +0000 (23:35 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 14 Nov 2011 22:35:12 +0000 (23:35 +0100)
backup/cc/cc112moodle.php
backup/cc/cc_lib/cc_basiclti.php
backup/cc/cc_lib/gral_lib/functions.php
backup/cc/cc_lib/gral_lib/pathutils.php
backup/cc/cc_lib/xmlbase.php
backup/cc/entity11.lti.class.php
backup/cc/sheets/course_modules_mod_lti.xml

index 2a4fdfe..79928ba 100644 (file)
@@ -51,7 +51,7 @@ class cc112moodle extends cc2moodle {
     public static $basicltins = array(
                                        'xmlns' => 'http://www.imsglobal.org/xsd/imslticc_v1p0',
                                        'blti'  => 'http://www.imsglobal.org/xsd/imsbasiclti_v1p0',
-                                                                  'lticm' => 'http://www.imsglobal.org/xsd/imslticm_v1p0',
+                                       'lticm' => 'http://www.imsglobal.org/xsd/imslticm_v1p0',
                                        'lticp' => 'http://www.imsglobal.org/xsd/imslticp_v1p0'
                                       );
 
@@ -210,4 +210,4 @@ class cc112moodle extends cc2moodle {
         return $node_course_modules;
     }
 
-}
\ No newline at end of file
+}
index f0c7263..1e2881d 100644 (file)
@@ -28,12 +28,12 @@ class basicltil1_resurce_file extends general_cc_file {
     protected $rootname = 'cartridge_basiclti_link';
     protected $ccnamespaces = array('xmlns' => 'http://www.imsglobal.org/xsd/imslticc_v1p0',
                                     'blti'  => 'http://www.imsglobal.org/xsd/imsbasiclti_v1p0',
-                                                               'lticm' => 'http://www.imsglobal.org/xsd/imslticm_v1p0',
+                                    'lticm' => 'http://www.imsglobal.org/xsd/imslticm_v1p0',
                                     'lticp' => 'http://www.imsglobal.org/xsd/imslticp_v1p0',
                                     'xsi'   => 'http://www.w3.org/2001/XMLSchema-instance');
     protected $ccnsnames = array('xmlns' => 'http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticc_v1p0.xsd',
                                  'blti'  => 'http://www.imsglobal.org/xsd/lti/ltiv1p0/imsbasiclti_v1p0p1.xsd',
-                                                        'lticm' => 'http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticm_v1p0.xsd',
+                                 'lticm' => 'http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticm_v1p0.xsd',
                                  'lticp' => 'http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticp_v1p0.xsd');
 
     protected $title = 'Untitled';
index fcacf81..2d62dc8 100644 (file)
@@ -37,9 +37,9 @@
  * @param string $errline
  */
 function errorHandler($errno, $errstr, $errfile, $errline) {
-       // si deseas podes guardarlos en un archivo
-       ($errfile);($errline);
-       throw new Exception($errstr, $errno);
+    // si deseas podes guardarlos en un archivo
+    ($errfile);($errline);
+    throw new Exception($errstr, $errno);
 }
 
 
index 4e2bbb3..346ae14 100644 (file)
@@ -303,7 +303,7 @@ function getRawFiles($startDir, &$fhandle, $rootDir='', $excludedirs = null, $ex
                 $pinfo = pathinfo($entry);
                 $ext = array_key_exists('extension',$pinfo) ? $pinfo['extension'] : '';
                 if (!is_array($excludefileext) ||
-                               (is_array($excludefileext) && !in_array($ext,$excludefileext))) {
+                (is_array($excludefileext) && !in_array($ext,$excludefileext))) {
                     fwrite($fhandle,$rootDir.$entry."\n");
                 }
             }
@@ -416,4 +416,4 @@ function rmdirr($dirname)
     }
     $dir->close();
     return rmdir($dirname);
-}
\ No newline at end of file
+}
index 5552199..69be684 100644 (file)
@@ -41,97 +41,97 @@ class XMLGenericDocument {
     private   $is_html          = false;
 
 
-       function __construct($ch = 'UTF-8',$validatenow=true){
-               $this->charset = $ch;
-               $this->documentInit();
-               $this->doc->validateOnParse = $validatenow;
-       }
-
-       function __destruct(){
-               $this->dxpath = null;
-               $this->doc = null;
-       }
-
-       private function documentInit($withonCreate=true) {
-               $hg = false;
-               if ($this->isloaded){
-                       $guardstate = $this->doc->validateOnParse;
-                       $hg = true;
-                       unset($this->dxpath);
-                       unset($this->doc);
-                       $this->isloaded = false;
-               }
-               $this->doc = new DOMDocument("1.0",$this->charset);
-               $this->doc->strictErrorChecking = true;
-               if ($hg) {
-                       $this->doc->validateOnParse = $guardstate;
-               }
-               $this->doc->formatOutput = true;
-               $this->doc->preserveWhiteSpace = true;
-               if($withonCreate) {
-                       $this->on_create();
-               }
-       }
-
-       public function viewXML (){
-           return $this->doc->saveXML();
-       }
-
-       public function registerNS($prefix, $nsuri) {
-               $this->arrayPrefixNS[$prefix]=$nsuri;
-       }
-
-       public function load($fname) {
-       // Sine xml will remain loaded should the repeated load fail we should recreate document to be empty.
-               $this->documentInit(false);
-               $this->isloaded = $this->doc->load($fname);
-               if ($this->isloaded){
-                       $this->filename = $fname;
-                       $this->processPath();
-                       $this->is_html = false;
-               }
-               return $this->on_load();
-       }
-
-       public function loadUrl($url){
-               $this->documentInit();
-               $this->isloaded = true;
-               $this->doc->loadXML( file_get_contents($url) );
-               $this->is_html = false;
-               return $this->on_load();
-       }
-
-       public function loadHTML ($content){
-               $this->documentInit();
-               $this->doc->validateOnParse = false;
-               $this->isloaded = true;
-               $this->doc->loadHTML($content);
-               $this->is_html = true;
-               return $this->on_load();
-       }
-
-       public function loadXML ($content){
-               $this->documentInit();
-               $this->doc->validateOnParse = false;
-               $this->isloaded = true;
-               $this->doc->load($content);
-               $this->is_html = true;
-               return $this->on_load();
-       }
-
-       public function loadHTMLFile($fname){
-       //Sine xml will remain loaded should the repeated load fail
-       //we shoudl recreate document to be empty
-               $this->documentInit();
-               $this->doc->validateOnParse = false;
-               $this->isloaded = $this->doc->loadHTMLFile($fname);
-               if ($this->isloaded) {
-                       $this->filename = $fname;
-                       $this->processPath();
-                       $this->is_html=true;
-               }
-               return $this->on_load();
-       }
+    function __construct($ch = 'UTF-8',$validatenow=true){
+        $this->charset = $ch;
+        $this->documentInit();
+        $this->doc->validateOnParse = $validatenow;
+    }
+
+    function __destruct(){
+        $this->dxpath = null;
+        $this->doc = null;
+    }
+
+    private function documentInit($withonCreate=true) {
+        $hg = false;
+        if ($this->isloaded){
+            $guardstate = $this->doc->validateOnParse;
+            $hg = true;
+            unset($this->dxpath);
+            unset($this->doc);
+            $this->isloaded = false;
+          }
+        $this->doc = new DOMDocument("1.0",$this->charset);
+        $this->doc->strictErrorChecking = true;
+        if ($hg) {
+            $this->doc->validateOnParse = $guardstate;
+        }
+        $this->doc->formatOutput = true;
+        $this->doc->preserveWhiteSpace = true;
+        if($withonCreate) {
+            $this->on_create();
+        }
+    }
+
+    public function viewXML (){
+        return $this->doc->saveXML();
+    }
+
+    public function registerNS($prefix, $nsuri) {
+        $this->arrayPrefixNS[$prefix]=$nsuri;
+    }
+
+    public function load($fname) {
+    // Sine xml will remain loaded should the repeated load fail we should recreate document to be empty.
+        $this->documentInit(false);
+        $this->isloaded = $this->doc->load($fname);
+        if ($this->isloaded){
+            $this->filename = $fname;
+            $this->processPath();
+            $this->is_html = false;
+        }
+        return $this->on_load();
+    }
+
+    public function loadUrl($url){
+        $this->documentInit();
+        $this->isloaded = true;
+        $this->doc->loadXML( file_get_contents($url) );
+        $this->is_html = false;
+        return $this->on_load();
+    }
+
+    public function loadHTML ($content){
+        $this->documentInit();
+        $this->doc->validateOnParse = false;
+        $this->isloaded = true;
+        $this->doc->loadHTML($content);
+        $this->is_html = true;
+        return $this->on_load();
+    }
+
+    public function loadXML ($content){
+        $this->documentInit();
+        $this->doc->validateOnParse = false;
+        $this->isloaded = true;
+        $this->doc->load($content);
+        $this->is_html = true;
+        return $this->on_load();
+    }
+
+    public function loadHTMLFile($fname){
+      //Sine xml will remain loaded should the repeated load fail
+      //we shoudl recreate document to be empty
+        $this->documentInit();
+        $this->doc->validateOnParse = false;
+        $this->isloaded = $this->doc->loadHTMLFile($fname);
+        if ($this->isloaded) {
+            $this->filename = $fname;
+            $this->processPath();
+            $this->is_html=true;
+        }
+        return $this->on_load();
+    }
 
     public function loadXMLFile($fname){
     //Sine xml will remain loaded should the repeated load fail
@@ -158,252 +158,252 @@ class XMLGenericDocument {
 
     }
 
-       public function save() {
-               $this->saveTo($this->filename);
-       }
-
-       public function saveTo($fname) {
-           $status = false;
-               if ($this->on_save()) {
-                       if ($this->is_html) {
-                               $this->doc->saveHTMLFile($fname);
-                       } else {
-                               $this->doc->save($fname);
-                       }
-                       $this->filename = $fname;
-                       $this->processPath();
-                       $status = true;
-               }
-               return $status;
-       }
-
-       public function validate() {
-               return $this->doc->validate();
-       }
-
-       public function attributeValue($path,$attrname,$node=null) {
-               $this->chkxpath();
-               $result = null;
-               $resultlist = null;
-               if (is_null($node)) {
-                       $resultlist = $this->dxpath->query($path);
-               } else {
-                       $resultlist = $this->dxpath->query($path,$node);
-               }
-               if ( is_object($resultlist) &&
-               ($resultlist->length > 0) &&
-               $resultlist->item(0)->hasAttribute($attrname)){
-                       $result = $resultlist->item(0)->getAttribute($attrname);
-               }
-               return $result;
-       }
-
-       /**
-        *
-        * Get's text value of the node based on xpath query
-        * @param string $path
-        * @param DOMNode $node
-        * @param int $count
-        * @return string
-        */
-       public function nodeValue($path, $node = null, $count = 1){
-           $nd = $this->node($path, $node, $count);
-           return $this->nodeTextValue($nd);
-       }
-
-       /**
-        *
-        * Get's text value of the node
-        * @param DOMNode $node
-        * @return string
-        */
-       public function nodeTextValue($node){
-               $result = '';
-               if (is_object($node)) {
-                       if ($node->hasChildNodes()) {
-                               $chnodesList = $node->childNodes;
-                           $types = array(XML_TEXT_NODE, XML_CDATA_SECTION_NODE);
-                               foreach ($chnodesList as $chnode) {
-                                       if (in_array($chnode->nodeType, $types)){
-                                       $result .= $chnode->wholeText;
-                                       }
-                               }
-                       }
-               }
-               return $result;
-       }
-
-       /**
-        *
-        * Enter description here ...
-        * @param string $path
-        * @param DOMNode $nd
-        * @param int $count
-        * @return DOMNode
-        */
-       public function node($path, $nd = null, $count = 1) {
-               $result = null;
-               $resultlist = $this->nodeList($path,$nd);
-               if ( is_object($resultlist) &&
-               ($resultlist->length > 0) ){
-                       $result = $resultlist->item($count -1);
-               }
-               return $result;
-       }
-
-       /**
-        *
-        * Enter description here ...
-        * @param string $path
-        * @param DOMNode $node
-        * @return DOMNodeList
-        */
-       public function nodeList($path,$node=null){
-
-               $this->chkxpath();
-
-               $resultlist = null;
-               if (is_null($node)) {
-                       $resultlist = $this->dxpath->query($path);
-               } else {
-                       $resultlist = $this->dxpath->query($path,$node);
-               }
-               return $resultlist;
-       }
-
-       /**
-        *
-        * Create new attribute
-        * @param string $namespace
-        * @param string $name
-        * @param string $value
-        * @return DOMAttr
-        */
-       public function create_attribute_ns($namespace, $name, $value = null) {
-           $result = $this->doc->createAttributeNS($namespace, $name);
-           if (!is_null($value)) {
-               $result->nodeValue = $value;
-           }
-           return $result;
-       }
-
-       /**
-        *
-        * Create new attribute
-        * @param string $name
-        * @param string $value
-        * @return DOMAttr
-        */
-       public function create_attribute($name, $value = null) {
-           $result = $this->doc->createAttribute($name);
-           if (!is_null($value)) {
-               $result->nodeValue = $value;
-           }
-           return $result;
-       }
-
-       /**
-        *
-        * Adds new node
-        * @param DOMNode $parentnode
-        * @param string $namespace
-        * @param string $name
-        * @param string $value
-        * @return DOMNode
-        */
-       public function append_new_element_ns(DOMNode &$parentnode, $namespace, $name, $value = null) {
-           $newnode = null;
-           if (is_null($value)) {
-               $newnode = $this->doc->createElementNS($namespace, $name);
-           } else {
-               $newnode = $this->doc->createElementNS($namespace, $name, $value);
-           }
-           return $parentnode->appendChild($newnode);
-       }
-
-       /**
-        *
-        * New node with CDATA content
-        * @param DOMNode $parentnode
-        * @param string $namespace
-        * @param string $name
-        * @param string $value
-        */
-       public function append_new_element_ns_cdata(DOMNode &$parentnode, $namespace, $name, $value = null) {
-           $newnode = $this->doc->createElementNS($namespace, $name);
-           if (!is_null($value)) {
-               $cdata = $this->doc->createCDATASection($value);
-               $newnode->appendChild($cdata);
-           }
-           return $parentnode->appendChild($newnode);
-       }
-
-       /**
-        *
-        * Adds new node
-        * @param DOMNode $parentnode
-        * @param string $name
-        * @param string $value
-        * @return DOMNode
-        */
-       public function append_new_element(DOMNode &$parentnode, $name, $value = null) {
-           $newnode = null;
-           if (is_null($value)) {
-               $newnode = $this->doc->createElement($name);
-           } else {
-               $newnode = $this->doc->createElement($name, $value);
-           }
-           return $parentnode->appendChild($newnode);
-       }
-
-       /**
-        *
-        * Adds new attribute
-        * @param DOMNode $node
-        * @param string $name
-        * @param string $value
-        * @return DOMNode
-        */
-       public function append_new_attribute(DOMNode &$node, $name, $value = null) {
-           return $node->appendChild($this->create_attribute($name, $value));
-       }
-
-       /**
-        *
-        * Adds new attribute
-        * @param DOMNode $node
-        * @param string $namespace
-        * @param string $name
-        * @param string $value
-        * @return DOMNode
-        */
-       public function append_new_attribute_ns(DOMNode &$node, $namespace, $name, $value = null) {
-           return $node->appendChild($this->create_attribute_ns($namespace, $name, $value));
-       }
-
-       public function fileName() {return $this->filename;}
-       public function filePath() {return $this->filepath;}
-
-       protected function on_load() {return $this->isloaded;}
-       protected function on_save() {return true;}
-       protected function on_create() {return true;}
-
-       public function resetXpath() {
-               $this->dxpath = null;
-               $this->chkxpath();
-       }
-
-       private function chkxpath() {
-               if (!isset($this->dxpath) || is_null($this->dxpath)){
-                       $this->dxpath = new DOMXPath($this->doc);
-                       foreach ($this->arrayPrefixNS as $nskey => $nsuri) {
-                               $this->dxpath->registerNamespace($nskey,$nsuri);
-                       }
-               }
-       }
-
-       protected function processPath(){
-               $path_parts = pathinfo($this->filename);
-               $this->filepath = array_key_exists('dirname',$path_parts) ? $path_parts['dirname']."/" : '';
-       }
+    public function save() {
+        $this->saveTo($this->filename);
+    }
+
+    public function saveTo($fname) {
+        $status = false;
+        if ($this->on_save()) {
+            if ($this->is_html) {
+                $this->doc->saveHTMLFile($fname);
+            } else {
+                $this->doc->save($fname);
+            }
+            $this->filename = $fname;
+            $this->processPath();
+            $status = true;
+        }
+        return $status;
+    }
+
+    public function validate() {
+        return $this->doc->validate();
+    }
+
+    public function attributeValue($path,$attrname,$node=null) {
+        $this->chkxpath();
+        $result = null;
+        $resultlist = null;
+        if (is_null($node)) {
+            $resultlist = $this->dxpath->query($path);
+        } else {
+            $resultlist = $this->dxpath->query($path,$node);
+        }
+        if ( is_object($resultlist) &&
+        ($resultlist->length > 0) &&
+        $resultlist->item(0)->hasAttribute($attrname)){
+            $result = $resultlist->item(0)->getAttribute($attrname);
+        }
+        return $result;
+    }
+
+    /**
+     *
+     * Get's text value of the node based on xpath query
+     * @param string $path
+     * @param DOMNode $node
+     * @param int $count
+     * @return string
+     */
+    public function nodeValue($path, $node = null, $count = 1){
+        $nd = $this->node($path, $node, $count);
+        return $this->nodeTextValue($nd);
+    }
+
+    /**
+     *
+     * Get's text value of the node
+     * @param DOMNode $node
+     * @return string
+     */
+    public function nodeTextValue($node){
+        $result = '';
+        if (is_object($node)) {
+            if ($node->hasChildNodes()) {
+                $chnodesList = $node->childNodes;
+                $types = array(XML_TEXT_NODE, XML_CDATA_SECTION_NODE);
+                foreach ($chnodesList as $chnode) {
+                    if (in_array($chnode->nodeType, $types)){
+                           $result .= $chnode->wholeText;
+                      }
+                  }
+            }
+        }
+        return $result;
+    }
+
+    /**
+     *
+     * Enter description here ...
+     * @param string $path
+     * @param DOMNode $nd
+     * @param int $count
+     * @return DOMNode
+     */
+    public function node($path, $nd = null, $count = 1) {
+        $result = null;
+        $resultlist = $this->nodeList($path,$nd);
+        if ( is_object($resultlist) &&
+        ($resultlist->length > 0) ){
+            $result = $resultlist->item($count -1);
+        }
+        return $result;
+    }
+
+    /**
+     *
+     * Enter description here ...
+     * @param string $path
+     * @param DOMNode $node
+     * @return DOMNodeList
+     */
+    public function nodeList($path,$node=null){
+
+        $this->chkxpath();
+
+        $resultlist = null;
+        if (is_null($node)) {
+            $resultlist = $this->dxpath->query($path);
+        } else {
+            $resultlist = $this->dxpath->query($path,$node);
+        }
+        return $resultlist;
+    }
+
+    /**
+     *
+     * Create new attribute
+     * @param string $namespace
+     * @param string $name
+     * @param string $value
+     * @return DOMAttr
+     */
+    public function create_attribute_ns($namespace, $name, $value = null) {
+        $result = $this->doc->createAttributeNS($namespace, $name);
+        if (!is_null($value)) {
+            $result->nodeValue = $value;
+        }
+        return $result;
+    }
+
+    /**
+     *
+     * Create new attribute
+     * @param string $name
+     * @param string $value
+     * @return DOMAttr
+     */
+    public function create_attribute($name, $value = null) {
+        $result = $this->doc->createAttribute($name);
+        if (!is_null($value)) {
+            $result->nodeValue = $value;
+        }
+        return $result;
+    }
+
+    /**
+     *
+     * Adds new node
+     * @param DOMNode $parentnode
+     * @param string $namespace
+     * @param string $name
+     * @param string $value
+     * @return DOMNode
+     */
+    public function append_new_element_ns(DOMNode &$parentnode, $namespace, $name, $value = null) {
+        $newnode = null;
+        if (is_null($value)) {
+            $newnode = $this->doc->createElementNS($namespace, $name);
+        } else {
+            $newnode = $this->doc->createElementNS($namespace, $name, $value);
+        }
+        return $parentnode->appendChild($newnode);
+    }
+
+    /**
+     *
+     * New node with CDATA content
+     * @param DOMNode $parentnode
+     * @param string $namespace
+     * @param string $name
+     * @param string $value
+     */
+    public function append_new_element_ns_cdata(DOMNode &$parentnode, $namespace, $name, $value = null) {
+        $newnode = $this->doc->createElementNS($namespace, $name);
+        if (!is_null($value)) {
+            $cdata = $this->doc->createCDATASection($value);
+            $newnode->appendChild($cdata);
+        }
+        return $parentnode->appendChild($newnode);
+    }
+
+    /**
+     *
+     * Adds new node
+     * @param DOMNode $parentnode
+     * @param string $name
+     * @param string $value
+     * @return DOMNode
+     */
+    public function append_new_element(DOMNode &$parentnode, $name, $value = null) {
+        $newnode = null;
+        if (is_null($value)) {
+            $newnode = $this->doc->createElement($name);
+        } else {
+            $newnode = $this->doc->createElement($name, $value);
+        }
+        return $parentnode->appendChild($newnode);
+    }
+
+    /**
+     *
+     * Adds new attribute
+     * @param DOMNode $node
+     * @param string $name
+     * @param string $value
+     * @return DOMNode
+     */
+    public function append_new_attribute(DOMNode &$node, $name, $value = null) {
+        return $node->appendChild($this->create_attribute($name, $value));
+    }
+
+    /**
+     *
+     * Adds new attribute
+     * @param DOMNode $node
+     * @param string $namespace
+     * @param string $name
+     * @param string $value
+     * @return DOMNode
+     */
+    public function append_new_attribute_ns(DOMNode &$node, $namespace, $name, $value = null) {
+        return $node->appendChild($this->create_attribute_ns($namespace, $name, $value));
+    }
+
+    public function fileName() {return $this->filename;}
+    public function filePath() {return $this->filepath;}
+
+    protected function on_load() {return $this->isloaded;}
+    protected function on_save() {return true;}
+    protected function on_create() {return true;}
+
+    public function resetXpath() {
+        $this->dxpath = null;
+        $this->chkxpath();
+    }
+
+    private function chkxpath() {
+        if (!isset($this->dxpath) || is_null($this->dxpath)){
+            $this->dxpath = new DOMXPath($this->doc);
+            foreach ($this->arrayPrefixNS as $nskey => $nsuri) {
+                $this->dxpath->registerNamespace($nskey,$nsuri);
+            }
+        }
+    }
+
+    protected function processPath(){
+        $path_parts = pathinfo($this->filename);
+        $this->filepath = array_key_exists('dirname',$path_parts) ? $path_parts['dirname']."/" : '';
+    }
 }
index 7fad712..0c90ca7 100644 (file)
@@ -54,7 +54,7 @@ class cc11_lti extends entities11 {
                                '[#mod_basiclti_timec#]'  ,
                                '[#mod_basiclti_timem#]'  ,
                                '[#mod_basiclti_toolurl#]',
-                                          '[#mod_basiclti_icon#]'
+                               '[#mod_basiclti_icon#]'
                                );
 
             $replace_values = array($instance['instance'],
index d8da41d..0b1da62 100644 (file)
@@ -1,19 +1,19 @@
       <MOD>
         <ID>[#mod_instance#]</ID>
         <MODTYPE>lti</MODTYPE>
-           <NAME>[#mod_basiclti_name#]</NAME>
-           <INTRO>[#mod_basiclti_intro#]</INTRO>
-           <INTROFORMAT>1</INTROFORMAT>
-           <TIMECREATED>[#mod_basiclti_timec#]</TIMECREATED>
-           <TIMEMODIFIED>[#mod_basiclti_timem#]</TIMEMODIFIED>
-           <TYPEID>1</TYPEID>
-           <TOOLURL>[#mod_basiclti_toolurl#]</TOOLURL>
-           <INSTRUCTORCHOICESENDEMAILADDR>1</INSTRUCTORCHOICESENDEMAILADDR>
-           <DEBUGLAUNCH>0</DEBUGLAUNCH>
-           <INSTRUCTORCHOICEACCEPTGRADES>1</INSTRUCTORCHOICEACCEPTGRADES>
-           <INSTRUCTORCHOICEALLOWROSTER>1</INSTRUCTORCHOICEALLOWROSTER>
-           <INSTRUCTORCHOICEALLOWSETTING>$@NULL@$</INSTRUCTORCHOICEALLOWSETTING>
-           <GRADE>100.00000</GRADE>
-           <INSTRUCTORCUSTOMPARAMETERS>0</INSTRUCTORCUSTOMPARAMETERS>
+        <NAME>[#mod_basiclti_name#]</NAME>
+        <INTRO>[#mod_basiclti_intro#]</INTRO>
+        <INTROFORMAT>1</INTROFORMAT>
+        <TIMECREATED>[#mod_basiclti_timec#]</TIMECREATED>
+        <TIMEMODIFIED>[#mod_basiclti_timem#]</TIMEMODIFIED>
+        <TYPEID>1</TYPEID>
+        <TOOLURL>[#mod_basiclti_toolurl#]</TOOLURL>
+        <INSTRUCTORCHOICESENDEMAILADDR>1</INSTRUCTORCHOICESENDEMAILADDR>
+        <DEBUGLAUNCH>0</DEBUGLAUNCH>
+        <INSTRUCTORCHOICEACCEPTGRADES>1</INSTRUCTORCHOICEACCEPTGRADES>
+        <INSTRUCTORCHOICEALLOWROSTER>1</INSTRUCTORCHOICEALLOWROSTER>
+        <INSTRUCTORCHOICEALLOWSETTING>$@NULL@$</INSTRUCTORCHOICEALLOWSETTING>
+        <GRADE>100.00000</GRADE>
+        <INSTRUCTORCUSTOMPARAMETERS>0</INSTRUCTORCUSTOMPARAMETERS>
         <ICON>[#mod_basiclti_icon#]</ICON>
-      </MOD>
\ No newline at end of file
+      </MOD>