本文整理匯總了PHP中notification::NOTIFICATION_TYPE_MAP方法的典型用法代碼示例。如果您正苦於以下問題:PHP notification::NOTIFICATION_TYPE_MAP方法的具體用法?PHP notification::NOTIFICATION_TYPE_MAP怎麽用?PHP notification::NOTIFICATION_TYPE_MAP使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類notification
的用法示例。
在下文中一共展示了notification::NOTIFICATION_TYPE_MAP方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: initNotificationTypeMap
private static function initNotificationTypeMap()
{
if (self::$NOTIFICATION_TYPE_MAP == null) {
self::$NOTIFICATION_TYPE_MAP = array(self::NOTIFICATION_TYPE_ENTRY_ADD => "entry_add", self::NOTIFICATION_TYPE_ENTRY_UPDATE => "entry_update", self::NOTIFICATION_TYPE_ENTRY_UPDATE_PERMISSIONS => "entry_update_permissions", self::NOTIFICATION_TYPE_ENTRY_DELETE => "entry_delete", self::NOTIFICATION_TYPE_ENTRY_BLOCK => "entry_block", self::NOTIFICATION_TYPE_ENTRY_UPDATE_THUMBNAIL => "entry_update_thumbnail", self::NOTIFICATION_TYPE_ENTRY_UPDATE_MODERATION => "entry_update_moderation", self::NOTIFICATION_TYPE_ENTRY_REPORT => "entry_reported", self::NOTIFICATION_TYPE_KSHOW_ADD => "kshow_add", self::NOTIFICATION_TYPE_KSHOW_UPDATE_INFO => "kshow_update_info", self::NOTIFICATION_TYPE_KSHOW_UPDATE_PERMISSIONS => "kshow_update_permissions", self::NOTIFICATION_TYPE_KSHOW_DELETE => "kshow_delete", self::NOTIFICATION_TYPE_KSHOW_RANK => "kshow_rank", self::NOTIFICATION_TYPE_KSHOW_BLOCK => "kshow_block", self::NOTIFICATION_TYPE_USER_ADD => "user_add", self::NOTIFICATION_TYPE_USER_BANNED => "user_banned", self::NOTIFICATION_TYPE_BATCH_JOB_STARTED => "job_started", self::NOTIFICATION_TYPE_BATCH_JOB_SUCCEEDED => "job_succeeded", self::NOTIFICATION_TYPE_BATCH_JOB_FAILED => "job_failed", self::NOTIFICATION_TYPE_BATCH_JOB_SIMILAR_EXISTS => "job_similar_exists", self::NOTIFICATION_TYPE_TEST => "test");
}
}