Main Page | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

Document_type Class Reference


Public Member Functions

 document_type ($p_cn)
 constructor
 get ()
 Get all the data for this dt_id.

Detailed Description

Definition at line 29 of file class_document_type.php.


Member Function Documentation

Document_type::document_type p_cn  ) 
 

constructor

document_type

Parameters:
$p_cn database connx

Definition at line 35 of file class_document_type.php.

References dt_id.

00036     {
00037       $this->db=$p_cn;
00038       $this->dt_id=-1;
00039     }

Document_type::get  ) 
 

Get all the data for this dt_id.

Definition at line 43 of file class_document_type.php.

References $r, $sql, dt_id, and ExecSql().

00044     {
00045       $sql="select * from document_type where dt_id=".$this->dt_id;
00046       $R=ExecSql($this->db,$sql);
00047       $r=pg_fetch_array($R,0);
00048       $this->dt_id=$r['dt_id'];
00049       $this->dt_value=$r['dt_value'];
00050     }


The documentation for this class was generated from the following file: