bpModObjFlag

Flag Database Object.

Defined (1)

The class is defined in the following location(s).

/classes/bpModObjFlag.php  
  1. class bpModObjFlag extends bpModAbstractDBobj 
  2.  
  3. /** 
  4. * define proprierties and optionally get row 
  5. * @param bool|int $id id of the row to get from the db 
  6. */ 
  7. function __construct($id = false) 
  8. $this->__table = bpModeration::get_property('flags_table'); 
  9.  
  10. $this->__obj_name = 'bp_moderation_flag'; 
  11.  
  12. $this->__id_field = 'flag_id'; 
  13.  
  14. $this->__fields_format['content_id'] = '%d'; 
  15. $this->__fields_format['reporter_id'] = '%d'; 
  16. $this->__fields_format['date'] = '%s'; 
  17.  
  18. parent::__construct($id);