public function removeField($fieldName) { $fieldIndex = array_search($fieldName, self::$tableFields); if ($fieldIndex !== false) { unset(self::$tableFields[$fieldIndex]); self::$tableFields = array_values(self::$tableFields); } }
public function save($app = null) { if ($this->Id == '') { $id = Infusionsoft_InvoiceService::addRecurringOrder($this->ContactId, true, $this->SubscriptionPlanId, $this->Qty, $this->BillingAmt, true, $this->MerchantAccountId, $this->CC1, $this->AffiliateId, 0); $this->Id = $id; } $result = parent::save($app); Infusionsoft_InvoiceService::updateJobRecurringNextBillDate($this->Id, $this->NextBillDate); Infusionsoft_InvoiceService::createInvoiceForRecurring($this->Id); return $result; }
public function __construct($id = null, $app = null) { parent::__construct($id, $app); }