protected static function getObjectOrDefaultAppIfNull(Infusionsoft_App $app = null, Infusionsoft_Generated_Base $object = null) { //If an app is explicitly set, skip this... if ($app == null) { //If the object has an app key, return it's app if ($object != null && $object->getAppPoolAppKey() != null) { $app = Infusionsoft_AppPool::getApp($object->getAppPoolAppKey()); } else { $app = Infusionsoft_AppPool::getApp(); } } return $app; }
static function clearObjectCaches(Infusionsoft_Generated_Base $object = null) { $path = dirname(__FILE__) . '/cache/'; $glob_base = 'objects_'; if ($object == null) { $glob_base .= $object->getTable() . '_'; } $files = glob($path . $glob_base . '*'); foreach ($files as $file) { if (is_file($file)) { unlink($file); } } }
public function __set($name, $value) { if ($name == 'expirationMonth') { $value = str_pad($value, 2, "0", STR_PAD_LEFT); } parent::__set($name, $value); }
public function loadFromArray($data) { parent::loadFromArray($data, true); foreach ($data as $key => $value) { if ($key == 'funnel.goalachieved.goal.name') { $this->GoalName = $value; } elseif ($key == 'funnel.goalachieved.funnel.name') { $this->CampaignName = $value; } elseif ($key == 'funnel.goalachieved.date.achieved') { $this->GoalCompletionDate = $value; } } $this->Id = $data['ContactId'] . '-' . $data['funnel.goalachieved.goal.name'] . '-' . $data['funnel.goalachieved.date.achieved']; }
public function __construct($id = null, $app = null) { parent::__construct('Referral', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('GroupAssign', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('CProgram', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('FileBox', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('TicketType', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('Status', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('LeadSourceRecurringExpense', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('Expense', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('RecurringOrder', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('ProductInterestBundle', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('ActionSequence', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('CCharge', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('LeadSource', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('Affiliate', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('Campaign', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('ProductCategoryAssign', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('PayPlan', $id, $app); }
public function loadFromArray($data) { parent::loadFromArray($data, true); $this->Id = $data['EmailSentId']; }
public function __construct($id = null, $app = null) { parent::__construct('CreditCard', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('JobRecurringInstance', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('InvoiceItem', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('OrderItem', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('ContactGroup', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('DataFormTab', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('SavedFilter', $id, $app); }
public function __construct($id = null, $app = null) { parent::__construct('ProductOptValue', $id, $app); }