This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ACME API | |
// bbPress database model | |
$this->load->library('acmebbuser'); | |
class ACME_bbPress extends Model { | |
function ACME_bbPress() { | |
parent::Model(); | |
} | |
function fetchUserData() { | |
$query = $this->db->get('bb_users'); | |
$query = $query->result_array(); | |
$user = $this->acmebbuser->getInstance(); | |
$user->id = $query['id']; | |
$user->posts = $query['postcount']; | |
// ...and so on | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment