class AdministrationContactList extends Administration
{
private $table_name;
private $base_system_level;
private $object_fields = array();
private $keys = array();
function AdministrationContactList()
{
parent::Administration();
$this->table_name = "administration_contactlist";
//defines minimum rights user level allowed to access info
$this->base_system_level = "oper";
//object_fields mirrors the fields in the contact_list table in MySQL
$this->object_fields=array(
"id"=>array("type"=>"MEDIUMINT(20)","level"=>""),
"name_of_contact"=>array("type"=>"VARCHAR(255)","level"=>""),
"institution"=>array("type"=>"VARCHAR(255)","level"=>""),
"job_title"=>array("type"=>"VARCHAR(255)","level"=>""),
"phone_number"=>array("type"=>"VARCHAR(255)","level"=>""),
"email"=>array("type"=>"VARCHAR(255)","level"=>""),
"fax"=>array("type"=>"VARCHAR(255)","level"=>""),
"other"=>array("type"=>"LONGTEXT","level"=>""),
"send_trade_info"=>array("type"=>"VARCHAR(255)","level"=>""),
"date"=>array("type"=>"DATE","level"=>""),
"statuss"=>array("type"=>"TINYINT(4)","level"=>"")
);
//define keys
$this->keys=array(
"primary"=>"id",
"unique"=>array("name_of_contact")
);
}
}
Edited by rhossis, 13 February 2011 - 11:24 AM.


Sign In
Create Account


Back to top









