[Logicampus-cvs] logicampus/src/logicreate/lib lc_lob.php, 1.28, 1.29 lc_lob_class.php, 1.5, 1.6 lc
Brought to you by:
trilexcom
From: Mark K <har...@us...> - 2007-10-05 22:38:01
|
Update of /cvsroot/logicampus/logicampus/src/logicreate/lib In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv9236/lib Modified Files: lc_lob.php lc_lob_class.php lc_lob_test.php Log Message: Fixes to copy a test down to your classroom and see it in the classroom viewer. Index: lc_lob_test.php =================================================================== RCS file: /cvsroot/logicampus/logicampus/src/logicreate/lib/lc_lob_test.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** lc_lob_test.php 5 Oct 2007 21:35:48 -0000 1.2 --- lc_lob_test.php 5 Oct 2007 22:37:38 -0000 1.3 *************** *** 15,18 **** --- 15,21 ---- if ($id < 1) { $this->repoObj = new LobRepoEntry(); + $this->repoObj->lobMime = $this->mime; + $this->repoObj->lobType = $this->type; + $this->repoObj->lobSubType = $this->type; $this->lobSub = new LobTest(); $this->lobMetaObj = new LobMetadata(); Index: lc_lob_class.php =================================================================== RCS file: /cvsroot/logicampus/logicampus/src/logicreate/lib/lc_lob_class.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** lc_lob_class.php 2 Oct 2007 17:06:36 -0000 1.5 --- lc_lob_class.php 5 Oct 2007 22:37:38 -0000 1.6 *************** *** 62,65 **** --- 62,73 ---- case 'test': + if ($this->repoObj->getPrimaryKey() > 0) { + $results = $this->repoObj->getLobClassTestsByLobClassRepoId(); + $this->lobSub = $results[0]; + } + if (! is_object($this->lobSub)) { + $this->lobSub = new LobClassTest(); + } + /* $results = $this->getLobTestsByLobRepoEntryId(); *************** *** 71,77 **** include_once(LIB_PATH.'lc_lob_class.php'); $classLob = new Lc_Lob_ClassTest(); - */ - trigger_error('un-implemented'); break; } --- 79,84 ---- include_once(LIB_PATH.'lc_lob_class.php'); $classLob = new Lc_Lob_ClassTest(); trigger_error('un-implemented'); + */ break; } Index: lc_lob.php =================================================================== RCS file: /cvsroot/logicampus/logicampus/src/logicreate/lib/lc_lob.php,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** lc_lob.php 5 Oct 2007 19:27:37 -0000 1.28 --- lc_lob.php 5 Oct 2007 22:37:38 -0000 1.29 *************** *** 4,7 **** --- 4,9 ---- include_once(LIB_PATH.'PBDO/LobMetadata.php'); include_once(LIB_PATH.'PBDO/LobContent.php'); + //sub types + include_once(LIB_PATH.'PBDO/LobTest.php'); include_once(LIB_PATH.'PBDO/LobActivity.php'); *************** *** 298,302 **** case 'test': ! $results = $rep->getLobTestsByLobRepoEntryId(); if (! count($results) ) { trigger_error('learning object missing internal data.'); --- 300,305 ---- case 'test': ! include_once(LIB_PATH.'lc_lob_test.php'); ! $results = $repo->getLobTestsByLobRepoEntryId(); if (! count($results) ) { trigger_error('learning object missing internal data.'); *************** *** 305,308 **** --- 308,312 ---- $subLob = $results[0]; include_once(LIB_PATH.'lc_lob_class.php'); + include_once(LIB_PATH.'lc_lob_class_test.php'); $classLob = new Lc_Lob_ClassTest(); break; |