Update of /cvsroot/xoops/xoops2/modules/xoopspartners/class
In directory sc8-pr-cvs1:/tmp/cvs-serv17192/modules/xoopspartners/class
Modified Files:
partners.php
Log Message:
added assignvar() and assignVars() to XoopsObject and its child classes
Index: partners.php
===================================================================
RCS file: /cvsroot/xoops/xoops2/modules/xoopspartners/class/partners.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** partners.php 2 Jan 2003 19:45:54 -0000 1.1
--- partners.php 5 Jan 2003 18:25:20 -0000 1.2
***************
*** 48,52 ****
if ( !empty($id) ) {
if ( is_array($id) ) {
! $this->setVars($id, false);
} else {
$this->load(intval($id));
--- 48,52 ----
if ( !empty($id) ) {
if ( is_array($id) ) {
! $this->assignVars($id);
} else {
$this->load(intval($id));
***************
*** 59,63 ****
$sql = "SELECT * FROM ".$this->db->prefix("partners")." WHERE id=$id and status=1";
$myrow = $this->db->fetchArray($this->db->query($sql));
! $this->setVars($myrow, false);
}
--- 59,63 ----
$sql = "SELECT * FROM ".$this->db->prefix("partners")." WHERE id=$id and status=1";
$myrow = $this->db->fetchArray($this->db->query($sql));
! $this->assignVars($myrow);
}
|