Location: PHPKode > projects > KvCMS Content Management System > kvframework/kvframework/dbhandler/kvframework_db_object.class.php
<?php

class kvframework_db_object {

  private $DATA = array();
  public $appointments;
  public $appttypes;
  public $locations;
  public $metalocs;
  public $rescons;
  public $resconappts;
  public $resconhours;
  public $loczone;
  public $location;
  public $tm;
  public $tag;


  function __construct(){

  }

  public function __set($nm, $val){
    if(!in_array($nm, array_keys(get_object_vars($this)))){
      $this->DATA[$nm] = $val;
    } else {
      $this->$nm = $val;
    }
    kvframework_log::write_log("DB OBJECT: set called with (".serialize($nm).",".serialize($val).")", KVF_LOG_LDEBUG);
  }

  public function __get($nm){
    if(in_array($nm, array_keys(get_object_vars($this)))){
      return $this->$nm;
    } else {
      return (array_key_exists($nm, $this->DATA)) ? $this->DATA[$nm] : null;
    }
  }

  public function __isset($nm){
    return isset($this->DATA[$nm]);
  }

  public function __unset($nm){
    unset($this->DATA[$nm]);
  }
}
?>
Return current item: KvCMS Content Management System