From: <ok...@us...> - 2003-01-05 18:25:22
|
Update of /cvsroot/xoops/xoops2/kernel/config/manager In directory sc8-pr-cvs1:/tmp/cvs-serv17192/kernel/config/manager Modified Files: config.php configcategory.php configoption.php Log Message: added assignvar() and assignVars() to XoopsObject and its child classes Index: config.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/config/manager/config.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** config.php 5 Jan 2003 13:55:47 -0000 1.2 --- config.php 5 Jan 2003 18:25:18 -0000 1.3 *************** *** 82,86 **** $myrow = $this->db->fetchArray($result); $config = new XoopsConfig(); ! $config->setVars($myrow); return $config; } --- 82,86 ---- $myrow = $this->db->fetchArray($result); $config = new XoopsConfig(); ! $config->assignVars($myrow); return $config; } *************** *** 147,151 **** while ($myrow = $this->db->fetchArray($result)) { $config = new XoopsConfig(); ! $config->setVars($myrow); $ret[] =& $config; unset($config); --- 147,151 ---- while ($myrow = $this->db->fetchArray($result)) { $config = new XoopsConfig(); ! $config->assignVars($myrow); $ret[] =& $config; unset($config); Index: configcategory.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/config/manager/configcategory.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** configcategory.php 5 Jan 2003 13:55:47 -0000 1.2 --- configcategory.php 5 Jan 2003 18:25:18 -0000 1.3 *************** *** 80,84 **** if ($numrows == 1) { $confcat = new XoopsConfigCategory(); ! $confcat->setVars($this->db->fetchArray($result), false); return $confcat; } --- 80,84 ---- if ($numrows == 1) { $confcat = new XoopsConfigCategory(); ! $confcat->assignVars($this->db->fetchArray($result), false); return $confcat; } *************** *** 146,150 **** while ($myrow = $this->db->fetchArray($result)) { $confcat = new XoopsConfigCategory(); ! $confcat->setVars($myrow, false); $ret[] =& $confcat; unset($confcat); --- 146,150 ---- while ($myrow = $this->db->fetchArray($result)) { $confcat = new XoopsConfigCategory(); ! $confcat->assignVars($myrow, false); $ret[] =& $confcat; unset($confcat); Index: configoption.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/config/manager/configoption.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** configoption.php 5 Jan 2003 13:55:47 -0000 1.2 --- configoption.php 5 Jan 2003 18:25:18 -0000 1.3 *************** *** 79,83 **** if ($numrows == 1) { $confoption = new XoopsConfigOption(); ! $confoption->setVars($this->db->fetchArray($result), false); return $confoption; } --- 79,83 ---- if ($numrows == 1) { $confoption = new XoopsConfigOption(); ! $confoption->assignVars($this->db->fetchArray($result)); return $confoption; } *************** *** 145,149 **** while ($myrow = $this->db->fetchArray($result)) { $confoption = new XoopsConfigOption(); ! $confoption->setVars($myrow, false); $ret[] =& $confoption; unset($confoption); --- 145,149 ---- while ($myrow = $this->db->fetchArray($result)) { $confoption = new XoopsConfigOption(); ! $confoption->assignVars($myrow); $ret[] =& $confoption; unset($confoption); |