Beispiel #1
0
 public function __construct($contest_id, $user_id)
 {
     $this->ids = array('cmeta_contest_id' => (int) $contest_id, 'cmeta_user_id' => (int) $user_id);
     $this->key_name = 'cmeta_key';
     $this->value_name = 'cmeta_value';
     $this->table_name = DB_TABLE_CONTESTMETA;
     parent::initialize();
 }
Beispiel #2
0
 public function __construct($prob_id)
 {
     $this->ids = array('pmeta_prob_id' => (int) $prob_id);
     $this->key_name = 'pmeta_key';
     $this->value_name = 'pmeta_value';
     $this->table_name = DB_TABLE_PROBMETA;
     parent::initialize();
 }
Beispiel #3
0
 public function getVar($key)
 {
     $preference = BFL_Register::getVar('user_preference');
     if (isset($preference['key'])) {
         return $preference['key'];
     }
     return parent::getVar($key);
 }
Beispiel #4
0
 public function __construct($record_id)
 {
     $this->ids = array('rmeta_record_id' => (int) $record_id);
     $this->key_name = 'rmeta_key';
     $this->value_name = 'rmeta_value';
     $this->table_name = DB_TABLE_RECORDMETA;
     parent::initialize();
 }
Beispiel #5
0
 public function __construct($user_id)
 {
     $this->ids = array('umeta_user_id' => (int) $user_id);
     $this->key_name = 'umeta_key';
     $this->value_name = 'umeta_value';
     $this->table_name = DB_TABLE_USERMETA;
     parent::initialize();
 }