示例#1
0
 function __construct($table = "")
 {
     $this->classname = $table;
     $this->data_table = $table;
     $this->display_field_name = $table . "ID";
     $this->key_field = $table . "ID";
     $this->data_fields = array($table . "Seq", $table . "Active");
     if ($table == "taskStatus") {
         $this->data_fields[] = "taskStatusLabel";
         $this->data_fields[] = "taskStatusColour";
     } else {
         if ($table == "currencyType") {
             $this->data_fields[] = "currencyTypeLabel";
             $this->data_fields[] = "currencyTypeName";
             $this->data_fields[] = "numberToBasic";
         }
     }
     $this->t = $table;
     // for internal use
     return parent::__construct();
 }