コード例 #1
0
 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;
 }
コード例 #2
0
 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);
         }
     }
 }
コード例 #3
0
 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'];
 }
コード例 #5
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('Referral', $id, $app);
 }
コード例 #6
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('GroupAssign', $id, $app);
 }
コード例 #7
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('CProgram', $id, $app);
 }
コード例 #8
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('FileBox', $id, $app);
 }
コード例 #9
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('TicketType', $id, $app);
 }
コード例 #10
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('Status', $id, $app);
 }
コード例 #11
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('LeadSourceRecurringExpense', $id, $app);
 }
コード例 #12
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('Expense', $id, $app);
 }
コード例 #13
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('RecurringOrder', $id, $app);
 }
コード例 #14
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('ProductInterestBundle', $id, $app);
 }
コード例 #15
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('ActionSequence', $id, $app);
 }
コード例 #16
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('CCharge', $id, $app);
 }
コード例 #17
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('LeadSource', $id, $app);
 }
コード例 #18
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('Affiliate', $id, $app);
 }
コード例 #19
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('Campaign', $id, $app);
 }
コード例 #20
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('ProductCategoryAssign', $id, $app);
 }
コード例 #21
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('PayPlan', $id, $app);
 }
コード例 #22
0
 public function loadFromArray($data)
 {
     parent::loadFromArray($data, true);
     $this->Id = $data['EmailSentId'];
 }
コード例 #23
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('CreditCard', $id, $app);
 }
コード例 #24
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('JobRecurringInstance', $id, $app);
 }
コード例 #25
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('InvoiceItem', $id, $app);
 }
コード例 #26
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('OrderItem', $id, $app);
 }
コード例 #27
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('ContactGroup', $id, $app);
 }
コード例 #28
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('DataFormTab', $id, $app);
 }
コード例 #29
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('SavedFilter', $id, $app);
 }
コード例 #30
0
 public function __construct($id = null, $app = null)
 {
     parent::__construct('ProductOptValue', $id, $app);
 }