ultimix
table.php
Go to the documentation of this file.
1 <?php
2 
3  /*
4  * This source code is a part of the Ultimix Project.
5  * It is distributed under BSD license. All other third side source code (like tinyMCE) is distributed under
6  * it's own license wich could be found from the corresponding files or sources.
7  * This source code is provided "as is" without any warranties or garanties.
8  *
9  * Have a nice day!
10  *
11  * @url http://ultimix.sorceforge.net
12  *
13  * @author Alexey "gdever" Dodonov
14  */
15 
26  class table_1_0_0{
27 
42  function __construct()
43  {
44  try
45  {
46  }
47  catch( Exception $e )
48  {
49  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
50  }
51  }
52 
71  function drop( $Table )
72  {
73  try
74  {
75  $this->QueryCounter++;
76  $DBO = $this->get_object();
77  $DBO->drop( $Table );
78  }
79  catch( Exception $e )
80  {
81  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
82  }
83  }
84 
115  function add_column( $Table , $ColumnName , $Type , $Mode = 'NOT NULL AFTER `id`' )
116  {
117  try
118  {
119  $this->QueryCounter++;
120  $DBO = $this->get_object();
121  $DBO->add_column( $Table , $ColumnName , $Type , $Mode = 'NOT NULL AFTER `id`' );
122  }
123  catch( Exception $e )
124  {
125  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
126  }
127  }
128 
151  function drop_column( $Table , $ColumnName )
152  {
153  try
154  {
155  $this->QueryCounter++;
156  $DBO = $this->get_object();
157  $DBO->drop_column( $Table , $ColumnName );
158  }
159  catch( Exception $e )
160  {
161  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
162  }
163  }
164  }
165 
166 ?>