本文整理匯總了PHP中myNotificationMgr::getDataAsArray方法的典型用法代碼示例。如果您正苦於以下問題:PHP myNotificationMgr::getDataAsArray方法的具體用法?PHP myNotificationMgr::getDataAsArray怎麽用?PHP myNotificationMgr::getDataAsArray使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類myNotificationMgr
的用法示例。
在下文中一共展示了myNotificationMgr::getDataAsArray方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: prepareNotificationData
public static function prepareNotificationData($url, $signature_key, BatchJob $job, $prefix = null)
{
$type = $job->getData()->getType();
$params = array("notification_id" => $job->getId(), "notification_type" => $job->getData()->getTypeAsString(), "puser_id" => $job->getData()->getUserId(), "partner_id" => $job->getPartnerId());
if (kNotificationJobData::isEntryNotification($type)) {
$params["entry_id"] = $job->getData()->getObjectId();
}
//$params["entryId"] = $not->getObjectId();
if (kNotificationJobData::isKshowNotification($type)) {
$params["kshow_id"] = $job->getData()->getObjectId();
}
// $params["kshowId"] = $not->getObjectId();
$object_data_params = myNotificationMgr::getDataAsArray($job->getData()->getData());
if ($object_data_params) {
$params = array_merge($params, $object_data_params);
}
$params = self::fixParams($params, $prefix);
$params['signed_fields'] = '';
foreach ($params as $key => $value) {
$params['signed_fields'] .= $key . ',';
}
return self::signParams($signature_key, $params);
}
示例2: getObjectInfo
public function getObjectInfo()
{
$res = myNotificationMgr::getDataAsArray($this->getNotificationData());
return $res;
}