Beispiel #1
0
 public function posts_of_user($orderby = 'ORDER BY post_on DESC', $limit = 0)
 {
     if ($this->is_admin()) {
         $post = new post($this->db);
         $post->posts_of_user(array('user_id' => $this->user_id), 0, $orderby, $limit);
         if (mysqli_num_rows($post->r) > 0) {
             $this->post = $post->r;
             return true;
         } else {
             return false;
         }
     } else {
         return false;
     }
 }