Inheritance: extends Infusionsoft_Generated_Base
 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 == '') {
         $invoiceId = Infusionsoft_InvoiceService::createBlankOrder($this->ContactId, $this->JobNotes, date('Ymd\\TH:i:s', strtotime($this->StartDate)), 0, 0, $app);
         $invoice = new Infusionsoft_Invoice($invoiceId);
         $this->Id = $invoice->JobId;
     }
     $result = parent::save($app);
     return $result;
 }
Exemple #3
0
 public function save($app = null)
 {
     if ($this->Id == '') {
         $invoiceId = Infusionsoft_InvoiceService::createBlankOrder($this->ContactId, $this->JobNotes, $this->DateCreated);
         $invoice = new Infusionsoft_Invoice($invoiceId);
         $this->Id = $invoice->JobId;
     }
     $result = parent::save($app);
     return $result;
 }
 public function __construct($id = null, $app = null)
 {
     parent::__construct($id, $app);
 }