public function __construct() { $this->type = HttpNotificationPlugin::getApiValue(HttpNotificationTemplateType::HTTP); }
public function getSyncKey($sub_type, $version = null) { self::validateFileSyncSubType($sub_type); if (!$version) { $version = $this->getFileSyncVersion($sub_type); } $key = new FileSyncKey(); $key->object_type = HttpNotificationPlugin::getHttpNotificationFileSyncObjectTypeCoreValue(HttpNotificationFileSyncObjectType::HTTP_NOTIFICATION_TEMPLATE); $key->object_sub_type = $sub_type; $key->object_id = $this->getId(); $key->version = $version; $key->partner_id = $this->getPartnerId(); return $key; }