From: <ok...@us...> - 2003-01-05 18:25:23
|
Update of /cvsroot/xoops/xoops2/kernel/themeset/manager In directory sc8-pr-cvs1:/tmp/cvs-serv17192/kernel/themeset/manager Modified Files: themeset.php tplfile.php Log Message: added assignvar() and assignVars() to XoopsObject and its child classes Index: themeset.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/themeset/manager/themeset.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** themeset.php 5 Jan 2003 13:55:48 -0000 1.2 --- themeset.php 5 Jan 2003 18:25:20 -0000 1.3 *************** *** 78,82 **** if ($numrows == 1) { $themeset = new XoopsThemeset(); ! $themeset->setVars($this->db->fetchArray($result), false); return $themeset; } --- 78,82 ---- if ($numrows == 1) { $themeset = new XoopsThemeset(); ! $themeset->assignVars($this->db->fetchArray($result)); return $themeset; } *************** *** 96,100 **** if ($numrows == 1) { $themeset = new XoopsThemeset(); ! $themeset->setVars($this->db->fetchArray($result), false); return $themeset; } --- 96,100 ---- if ($numrows == 1) { $themeset = new XoopsThemeset(); ! $themeset->assignVars($this->db->fetchArray($result)); return $themeset; } *************** *** 162,166 **** while ($myrow = $this->db->fetchArray($result)) { $themeset = new XoopsThemeset(); ! $themeset->setVars($myrow, false); $ret[] =& $themeset; unset($themeset); --- 162,166 ---- while ($myrow = $this->db->fetchArray($result)) { $themeset = new XoopsThemeset(); ! $themeset->assignVars($myrow); $ret[] =& $themeset; unset($themeset); Index: tplfile.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/themeset/manager/tplfile.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** tplfile.php 5 Jan 2003 13:55:48 -0000 1.2 --- tplfile.php 5 Jan 2003 18:25:20 -0000 1.3 *************** *** 82,86 **** if ($numrows == 1) { $tplfile = new XoopsTplfile(); ! $tplfile->setVars($this->db->fetchArray($result), false); return $tplfile; } --- 82,86 ---- if ($numrows == 1) { $tplfile = new XoopsTplfile(); ! $tplfile->assignVars($this->db->fetchArray($result)); return $tplfile; } *************** *** 100,104 **** } $myrow = $this->db->fetchArray($result); ! $tplfile->setVar('tpl_source', $myrow['tpl_source']); } } --- 100,104 ---- } $myrow = $this->db->fetchArray($result); ! $tplfile->assignVar('tpl_source'); } } *************** *** 185,189 **** while ($myrow = $this->db->fetchArray($result)) { $tplfile = new XoopsTplfile(); ! $tplfile->setVars($myrow, false); $ret[] =& $tplfile; unset($tplfile); --- 185,189 ---- while ($myrow = $this->db->fetchArray($result)) { $tplfile = new XoopsTplfile(); ! $tplfile->assignVars($myrow); $ret[] =& $tplfile; unset($tplfile); |