本文整理汇总了PHP中Infusionsoft_Generated_Base::loadFromArray方法的典型用法代码示例。如果您正苦于以下问题:PHP Infusionsoft_Generated_Base::loadFromArray方法的具体用法?PHP Infusionsoft_Generated_Base::loadFromArray怎么用?PHP Infusionsoft_Generated_Base::loadFromArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Infusionsoft_Generated_Base
的用法示例。
在下文中一共展示了Infusionsoft_Generated_Base::loadFromArray方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loadFromArray
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'];
}
示例2: loadFromArray
public function loadFromArray($data)
{
parent::loadFromArray($data, true);
$this->Id = $data['EmailSentId'];
}
示例3: loadFromArray
public function loadFromArray($data)
{
parent::loadFromArray($data, true);
$this->Id = $data['ContactId'] * 100000000000 + $this->actionToId($data['Type']) * 10000000000 + strtotime($data['Date']);
}
示例4: loadFromArray
public function loadFromArray($data)
{
parent::loadFromArray($data, true);
$this->Id = $data['Date'] . '-' . $data['ContactId'];
}