From: <ok...@us...> - 2003-01-05 18:25:22
|
Update of /cvsroot/xoops/xoops2/kernel/image/manager In directory sc8-pr-cvs1:/tmp/cvs-serv17192/kernel/image/manager Modified Files: image.php imgcat.php Log Message: added assignvar() and assignVars() to XoopsObject and its child classes Index: image.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/image/manager/image.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** image.php 5 Jan 2003 13:55:47 -0000 1.2 --- image.php 5 Jan 2003 18:25:18 -0000 1.3 *************** *** 79,83 **** if ($numrows == 1) { $image = new XoopsImage(); ! $image->setVars($this->db->fetchArray($result), false); return $image; } --- 79,83 ---- if ($numrows == 1) { $image = new XoopsImage(); ! $image->assignVars($this->db->fetchArray($result)); return $image; } *************** *** 169,173 **** while ($myrow = $this->db->fetchArray($result)) { $image = new XoopsImage(); ! $image->setVars($myrow, false); $ret[] =& $image; unset($image); --- 169,173 ---- while ($myrow = $this->db->fetchArray($result)) { $image = new XoopsImage(); ! $image->assignVars($myrow); $ret[] =& $image; unset($image); Index: imgcat.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/image/manager/imgcat.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** imgcat.php 5 Jan 2003 13:55:47 -0000 1.2 --- imgcat.php 5 Jan 2003 18:25:18 -0000 1.3 *************** *** 77,81 **** if ($numrows == 1) { $imgcat = new XoopsImageCategory(); ! $imgcat->setVars($this->db->fetchArray($result), false); return $imgcat; } --- 77,81 ---- if ($numrows == 1) { $imgcat = new XoopsImageCategory(); ! $imgcat->assignVars($this->db->fetchArray($result)); return $imgcat; } *************** *** 141,145 **** while ($myrow = $this->db->fetchArray($result)) { $imgcat = new XoopsImageCategory(); ! $imgcat->setVars($myrow, false); $ret[] =& $imgcat; unset($imgcat); --- 141,145 ---- while ($myrow = $this->db->fetchArray($result)) { $imgcat = new XoopsImageCategory(); ! $imgcat->assignVars($myrow); $ret[] =& $imgcat; unset($imgcat); |