Inheritance: extends Infusionsoft_Generated_Base
Exemplo n.º 1
0
 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 4
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct($id, $app);
 }