예제 #1
0
 /**
  * Get TableDescriptor Singleton instance
  *
  * @return TableDescriptor
  * @author Wilker
  **/
 public static function get_instance()
 {
     if (!self::$instance) {
         self::$instance = new TableDescriptor();
     }
     return self::$instance;
 }
예제 #2
0
 public function fields()
 {
     $descriptor = TableDescriptor::get_instance();
     $table = $this->table();
     return $descriptor->{$table};
 }