Code: Select all
Warning: rewind(): supplied argument is not a valid stream resource in /home/www/Class.php on line 50Moderator: General Moderators
Code: Select all
Warning: rewind(): supplied argument is not a valid stream resource in /home/www/Class.php on line 50Code: Select all
foreach ( $obj as $var => $val )
echo "{$var}: {$val}\n";Code: Select all
public function current ( ) { echo "\nDB_Object::current()";
$key = key( $this->obj );
if ( array_key_exists($key,$this->new) )
return $this->new->$key;
return current( $this->obj );
}
public function next ( ) { echo "\nDB_Object::next()";
next( $this->obj );
return $this->current();
}
public function key ( ) { echo "\nDB_Object::key()";
return key( $this->obj );
}
public function valid ( ) { echo "\nDB_Object::valid()";
$key = key( $this->obj );
return array_key_exists( $key, $this->obj );
}
public function rewind ( ) { echo "\nDB_Object::rewind()";
reset( $this->obj );
}Code: Select all
public function current ( ) { echo "\nFW_Object::current()";
return current( $this->dbo );
}
public function next ( ) { echo "\nFW_Object::next()";
return next( $this->dbo );
}
public function key ( ) { echo "\nFW_Object::key()";
return key( $this->dbo );
}
public function valid ( ) { echo "\nFW_Object::valid()";
return valid( $this->dbo );
}
public function rewind ( ) { echo "\nFW_Object::rewind()";
return rewind( $this->dbo );
}