たとえば、これで、たとえば次の$name = pulic $wherever;
ように呼び出すことができますwherever->wherever;
変数を追加するたびにこの名前を入力する必要がないように
// If it's going to need the database, then it's
// probably smart to require it before we start.
require_once('database.php');
class Logs extends DatabaseObject {
protected static $table_name="logs";
protected static $db_fields = array('id', 'username', 'ip', 'time', 'page');
public $id;
public $username;
public $ip;
public $time;
public $page;