function activeSubscriptionsByUserID($userID)
 {
     return array('result' => eZSubscription::fetchListByUserID($userID));
 }
 function fetchSubscriptionByUserID($userID)
 {
     $subscriptionListArray = array();
     foreach (eZSubscription::fetchListByUserID($userID) as $subscription) {
         $subscriptionListArray[] = $subscription;
     }
     return $subscriptionListArray;
 }