Example #1
0
 public static function getActiveListingsByUserSID($user_sid, $count = false)
 {
     $active_listings_sid = SJB_ListingDBManager::getActiveListingsSIDByUserSID($user_sid);
     if ($count) {
         return count($active_listings_sid);
     }
     $active_listings = array();
     foreach ($active_listings_sid as $active_listing_sid) {
         $active_listings[] = SJB_ListingManager::getObjectBySID($active_listing_sid);
     }
     return $active_listings;
 }