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