$showOrder = $this->parameters['data']['showOrder'];
unset($this->parameters['data']['showOrder']);
}
-
+
$subscription = parent::create();
$editor = new PaidSubscriptionEditor($subscription);
$editor->setShowOrder($showOrder);
-
+
return new PaidSubscription($subscription->subscriptionID);
}
*/
public function update() {
parent::update();
-
+
if (count($this->objects) == 1 && isset($this->parameters['data']['showOrder']) && $this->parameters['data']['showOrder'] != reset($this->objects)->showOrder) {
reset($this->objects)->setShowOrder($this->parameters['data']['showOrder']);
}