public function __set($name, $value) { if ($name == 'OrderId') { $invoices = Infusionsoft_DataService::query(new Infusionsoft_Invoice(), array('JobId' => $value)); $invoice = array_shift($invoices); $this->InvoiceId = $invoice->Id; } else { parent::__set($name, $value); } }
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 __construct($id = null, $app = null) { parent::__construct($id, $app); }