00001 <?php 00024 class NewsDatabaseWrapper extends BaseDatabaseWrapper { 00025 // Constants for database table names 00026 const DB_TABLE_NEWS = "news"; 00027 00033 protected function __construct() { 00034 // Call parent constructor 00035 parent::__construct(__CLASS__); 00036 } 00037 00043 public final static function createNewsDatabaseWrapper () { 00044 // Get a new instance 00045 $wrapperInstance = new NewsDatabaseWrapper(); 00046 00047 // Set (primary!) table name 00048 $wrapperInstance->setTableName(self::DB_TABLE_NEWS); 00049 00050 // Return the instance 00051 return $wrapperInstance; 00052 } 00053 } 00054 00055 // [EOF] 00056 ?>
1.5.6