This repository has been archived by the owner on May 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathProfileConstant.php
63 lines (51 loc) · 1.67 KB
/
ProfileConstant.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
declare(strict_types=1);
/*
* This file is part of the Zikula package.
*
* Copyright Zikula - https://ziku.la/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Zikula\ProfileModule;
class ProfileConstant
{
/**
* Event called when creating the choices array for profile properties
* Subject is instance of \Zikula\ProfileModule\FormTypesChoices
*/
public const GET_FORM_TYPES_EVENT = 'profile_get_form_types';
/**
* The form data prefix
*/
public const FORM_BLOCK_PREFIX = 'zikulaprofilemodule_editprofile';
/**
* The name of the attribute to obtain a realname. requires prefix + ':'
*/
public const ATTRIBUTE_NAME_DISPLAY_NAME = 'realname';
/**
* Module variable key for the avatar image path.
*/
public const MODVAR_AVATAR_IMAGE_PATH = 'avatarpath';
/**
* Default value for the avatar image path.
*/
public const DEFAULT_AVATAR_IMAGE_PATH = 'public/uploads/avatar';
/**
* Module variable key for the flag indicating whether gravatars are allowed or not.
*/
public const MODVAR_GRAVATARS_ENABLED = 'allowgravatars';
/**
* Default value for the flag indicating whether gravatars are allowed or not.
*/
public const DEFAULT_GRAVATARS_ENABLED = true;
/**
* Module variable key for the file name containing the generic gravatar image.
*/
public const MODVAR_GRAVATAR_IMAGE = 'gravatarimage';
/**
* Default value for the file name containing the generic gravatar image.
*/
public const DEFAULT_GRAVATAR_IMAGE = 'gravatar.jpg';
}