/** * Creates a subscription object of the appropriate class to the product * * @return cbpaidUsersubscriptionRecord */ public function & newSubscription() { global $_CB_database; $sub = new cbpaidUsersubscriptionRecord( $_CB_database ); $sub->set( 'plan_id', $this->get( 'id' ) ); return $sub; }