+ public function commit ()
+ {
+ return XDB::execute('REPLACE INTO profile_medals
+ VALUES ({?}, {?}, {?})',
+ $this->profile->id(), $this->mid,
+ is_null($this->gid) ? 0 : $this->gid);
+ }
+
+ // }}}
+ // {{{ function get_request($medal)
+
+ static public function get_request($pid, $type)