Example #1
0
 /**
  * Retrieve a particular user's subscriptions
  * @param $user
  * @return array|bool
  */
 function getUserSubscriptions($user)
 {
     if ($user instanceof User) {
         $user = $user->getUUID();
     }
     if (empty($user)) {
         return false;
     }
     return Subscription::get(array('owner' => $user));
 }
Example #2
0
 /**
  * Get a user's subscriptions
  * @param $user
  * @return array
  */
 static function getByUser($user)
 {
     return Subscription::get(array('owner' => $user->getUUID()));
 }