本文整理汇总了PHP中Ess_M2ePro_Model_Component_Abstract::getDataSnapshot方法的典型用法代码示例。如果您正苦于以下问题:PHP Ess_M2ePro_Model_Component_Abstract::getDataSnapshot方法的具体用法?PHP Ess_M2ePro_Model_Component_Abstract::getDataSnapshot怎么用?PHP Ess_M2ePro_Model_Component_Abstract::getDataSnapshot使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ess_M2ePro_Model_Component_Abstract
的用法示例。
在下文中一共展示了Ess_M2ePro_Model_Component_Abstract::getDataSnapshot方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getDataSnapshot
public function getDataSnapshot()
{
$data = parent::getDataSnapshot();
$data['services'] = $this->getServices();
$data['calculated_shipping'] = $this->getCalculatedShipping() ? $this->getCalculatedShipping()->getData() : array();
foreach ($data['services'] as &$serviceData) {
foreach ($serviceData as &$value) {
!is_null($value) && !is_array($value) && ($value = (string) $value);
}
}
unset($value);
foreach ($data['calculated_shipping'] as &$value) {
!is_null($value) && !is_array($value) && ($value = (string) $value);
}
return $data;
}
示例2: getDataSnapshot
public function getDataSnapshot()
{
$data = parent::getDataSnapshot();
$data['specifics'] = $this->getSpecifics();
foreach ($data['specifics'] as &$specificData) {
foreach ($specificData as &$value) {
!is_null($value) && !is_array($value) && ($value = (string) $value);
}
}
return $data;
}
示例3: getDataSnapshot
/**
* @return array
*/
public function getDataSnapshot()
{
$data = parent::getDataSnapshot();
$data['services'] = $this->getServices();
foreach ($data['services'] as &$serviceData) {
foreach ($serviceData as &$value) {
!is_null($value) && !is_array($value) && ($value = (string) $value);
}
}
unset($value);
return $data;
}