Esempio n. 1
0
 /**
  * A singleton method to create or return a single instance
  * of the {@link OA_DB_Table_Priority} object.
  *
  * @static
  * @return OA_DB_Table_Priority The created {@link OA_DB_Table_Priority} object.
  */
 function &singleton()
 {
     $static =& $GLOBALS['_OA']['TABLES'][__CLASS__];
     if (!isset($static)) {
         $static = new OA_DB_Table_Priority();
         // Don't use a reference here!
         $static->init(MAX_PATH . '/etc/tables_temp_priority.xml');
     }
     return $static;
 }