bpModObjContent

Content Database Object.

Defined (1)

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

/classes/bpModObjContent.php  
  1. class bpModObjContent 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('contents_table'); 
  9.  
  10. $this->__obj_name = 'bp_moderation_content'; 
  11.  
  12. $this->__id_field = 'content_id'; 
  13.  
  14. $this->__fields_format['item_type'] = '%s'; 
  15. $this->__fields_format['item_id'] = '%d'; 
  16. $this->__fields_format['item_id2'] = '%d'; 
  17. $this->__fields_format['item_author'] = '%d'; 
  18. $this->__fields_format['item_url'] = '%s'; 
  19. $this->__fields_format['item_date'] = '%s'; 
  20. $this->__fields_format['status'] = '%s'; 
  21.  
  22. parent::__construct($id);