public function has_section($sectionNumber) { foreach ($this->m_dbObject as $subscription) { $subscription = new MetaSubscription($subscription->getSubscriptionId()); if ($subscription->has_section($sectionNumber) && $subscription->is_active) { return $subscription; } } return false; }
public function has_section($sectionNumber) { foreach ($this->subscriptions as $subscription) { $subscription = new MetaSubscription($subscription['id']); if ($subscription->has_section($sectionNumber) && $subscription->is_active) { return $subscription; } } return false; }