MetaFox

MetaFoxConstant
in package

Class MetaFoxConstant.

Table of Contents

Constants

BACKEND_WRAP_NAME  = 'backend'
BLANK_SPACE  = ' '
CACHE_TIME  = 3000
CENTER  = 'center'
CHARACTER_LIMIT  = 155
CONTENT_PARSING_REGEX  = '/\\[%s=(\\d+)\\](.+?)\\[\\/%s\\]/u'
DEFAULT_API_VERSION  = 'v1'
DEFAULT_CURRENCY_ID  = 'USD'
DEFAULT_CURRENCY_SYMBOL  = '$'
DEFAULT_LIMIT_FRIEND_REQUEST  = 10
DEFAULT_MAX_CATEGORY_TITLE_LENGTH  = 255
DEFAULT_MAX_SHORT_DESCRIPTION_LENGTH  = 255
DEFAULT_MAX_TITLE_LENGTH  = 255
DEFAULT_MIN_TITLE_LENGTH  = 1
DISPLAY_FORMAT_TIME  = 'DD/MM/YYYY'
DISPLAY_FORMAT_TIME_12  = 'DD/MM/YYYY - hh:mm A'
DISPLAY_FORMAT_TIME_24  = 'DD/MM/YYYY - HH:mm'
EMAIL_REGEX  = '^([a-zA-Z0-9_\\.\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$'
EMPTY_STRING  = ''
FILE_CREATE_STATUS  = 'create'
FILE_NEW_STATUS  = 'new'
FILE_REMOVE_STATUS  = 'remove'
FILE_UPDATE_STATUS  = 'update'
FRONTEND_WRAP_NAME  = 'frontend'
GENDER_FEMALE  = 2
GENDER_MALE  = 1
GENDER_OTHERS  = 127
GUEST_USER_ID  = 0
HTML_ENTITIES_GREATER_THAN  = '>'
HTML_ENTITIES_LESSER_THAN  = '<'
IS_ACTIVE  = 1
IS_INACTIVE  = 0
IS_NOT_PUBLIC  = 0
IS_PUBLIC  = 1
ITEM_STATUS_APPROVED  = 'approved'
ITEM_STATUS_DENIED  = 'denied'
ITEM_STATUS_PENDING  = 'pending'
ITEM_STATUS_REMOVED  = 'removed'
LEFT  = 'left'
LIVESTREAMING_SERVICE_TYPE  = 'livestreaming-service'
MAX_CATEGORY_LEVEL  = 3
MAX_NUMBER_OF_FILES  = 5
NESTED_ARRAY_SEPARATOR  = '=>'
ONE_WAY_FRIENDSHIPS  = 1
PACKAGE_PRIORITY_DEFAULT  = 100
PAYMENT_STATUS_CANCELED  = 'canceled'
PAYMENT_STATUS_EXPIRED  = 'expired'
PAYMENT_STATUS_PENDING  = 'pending'
PAYMENT_STATUS_SUCCESS  = 'success'
PHONE_NUMBER_REGEX  = '(^[\\+]?[(]?[0-9]{3}[)]?[-\\s\\.]?[0-9]{3}[-\\s\\.]?[0-9]{4,6}$)|(\\+(9[976]\\d|8[987530]\\d|6[987]\\d|5[90]\\d|42\\d|3[875]\\d|2[98654321]\\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)\\W*\\d\\W*\\d\\W*\\d\\W*\\d\\W*\\d\\W*\\d\\W*\\d\\W*\\d\\W*(\\d{1,2}))$'
PRIVACY_ICON  = 'privacy_icon'
PRODUCT_BUILD  = '9'
RELATION_COMPLICATED  = 5
RELATION_DIVORCED  = 9
RELATION_ENGAGED  = 3
RELATION_IN_A_OPEN_RELATIONSHIP  = 6
RELATION_IN_A_RELATIONSHIP  = 10
RELATION_MARRIED  = 4
RELATION_SEPARATED  = 8
RELATION_SINGLE  = 2
RELATION_UNKNOWN  = 1
RELATION_WIDOWED  = 7
RESOLUTION_ADMIN  = 'admin'
RESOLUTION_MOBILE  = 'mobile'
RESOLUTION_WEB  = 'web'
RESOURCE_IDENTIFIER_REGEX  = '^[a-z][a-z0-9_]*[a-z0-9]$'
|-------------------------------------------------------------------------- | Application Regex |-------------------------------------------------------------------------- | For global regex declaration |.
RIGHT  = 'right'
SEPARATION_PERM  = ':'
SLUGIFY_FILTERS  = ['/', ' ', '!', '@', '#', '$', '%', '^', '&', '*', '?', ',', '.', ':', ';', '`', '~', '(', ')', '{', '}', '[', ']', '=', '+', '\\', '|', '"', '<', '>']
SLUGIFY_FILTERS_REPLACE  = '-'
SLUGIFY_REGEX  = '^[a-z0-9]+(?:-[a-z0-9]+)*$'
SORT_ASC  = 'asc'
SORT_DESC  = 'desc'
STATUS_APPROVED  = 'approved'
STATUS_FEATURED  = 'featured'
STATUS_NOT_APPROVED  = 'not_approved'
STATUS_ONLINE  = 'online'
STATUS_PENDING_APPROVAL  = 'pending_approval'
STATUS_PENDING_VERIFICATION_EMAIL  = 'pending_verification_email'
STATUS_PENDING_VERIFICATION_PHONE_NUMBER  = 'pending_verification_phone_number'
STORY_SERVICE_TYPE  = 'story-service'
TIME_Y_M_D  = 'Y-m-d H:i:s'
TWO_WAY_FRIENDSHIPS  = 2
VERSION  = '5.1.8'
VIDEO_SERVICE_DEFAULT  = 'ffmpeg'
VIDEO_SERVICE_TYPE  = 'video-service'
VIEW_10_NEAREST  = 10
VIEW_15_NEAREST  = 15
VIEW_20_NEAREST  = 20
VIEW_5_NEAREST  = 5
VIEW_FOLLOWER  = 'follower'
VIEW_FOLLOWING  = 'following'

Constants

CONTENT_PARSING_REGEX

public mixed CONTENT_PARSING_REGEX = '/\\[%s=(\\d+)\\](.+?)\\[\\/%s\\]/u'

DEFAULT_LIMIT_FRIEND_REQUEST

public mixed DEFAULT_LIMIT_FRIEND_REQUEST = 10

DEFAULT_MAX_CATEGORY_TITLE_LENGTH

public mixed DEFAULT_MAX_CATEGORY_TITLE_LENGTH = 255

DEFAULT_MAX_SHORT_DESCRIPTION_LENGTH

public mixed DEFAULT_MAX_SHORT_DESCRIPTION_LENGTH = 255

DEFAULT_MAX_TITLE_LENGTH

public mixed DEFAULT_MAX_TITLE_LENGTH = 255

DISPLAY_FORMAT_TIME_12

public mixed DISPLAY_FORMAT_TIME_12 = 'DD/MM/YYYY - hh:mm A'

DISPLAY_FORMAT_TIME_24

public mixed DISPLAY_FORMAT_TIME_24 = 'DD/MM/YYYY - HH:mm'

EMAIL_REGEX

public mixed EMAIL_REGEX = '^([a-zA-Z0-9_\\.\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$'

HTML_ENTITIES_GREATER_THAN

public mixed HTML_ENTITIES_GREATER_THAN = '&gt;'

HTML_ENTITIES_LESSER_THAN

public mixed HTML_ENTITIES_LESSER_THAN = '&lt;'

LIVESTREAMING_SERVICE_TYPE

public mixed LIVESTREAMING_SERVICE_TYPE = 'livestreaming-service'

PACKAGE_PRIORITY_DEFAULT

public mixed PACKAGE_PRIORITY_DEFAULT = 100

PAYMENT_STATUS_CANCELED

public mixed PAYMENT_STATUS_CANCELED = 'canceled'

PAYMENT_STATUS_EXPIRED

public mixed PAYMENT_STATUS_EXPIRED = 'expired'

PAYMENT_STATUS_PENDING

public mixed PAYMENT_STATUS_PENDING = 'pending'

PAYMENT_STATUS_SUCCESS

public mixed PAYMENT_STATUS_SUCCESS = 'success'

PHONE_NUMBER_REGEX

public mixed PHONE_NUMBER_REGEX = '(^[\\+]?[(]?[0-9]{3}[)]?[-\\s\\.]?[0-9]{3}[-\\s\\.]?[0-9]{4,6}$)|(\\+(9[976]\\d|8[987530]\\d|6[987]\\d|5[90]\\d|42\\d|3[875]\\d|2[98654321]\\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)\\W*\\d\\W*\\d\\W*\\d\\W*\\d\\W*\\d\\W*\\d\\W*\\d\\W*\\d\\W*(\\d{1,2}))$'

RELATION_IN_A_OPEN_RELATIONSHIP

public mixed RELATION_IN_A_OPEN_RELATIONSHIP = 6

RELATION_IN_A_RELATIONSHIP

public mixed RELATION_IN_A_RELATIONSHIP = 10

RESOURCE_IDENTIFIER_REGEX

|-------------------------------------------------------------------------- | Application Regex |-------------------------------------------------------------------------- | For global regex declaration |.

public mixed RESOURCE_IDENTIFIER_REGEX = '^[a-z][a-z0-9_]*[a-z0-9]$'

SLUGIFY_FILTERS

public mixed SLUGIFY_FILTERS = ['/', ' ', '!', '@', '#', '$', '%', '^', '&', '*', '?', ',', '.', ':', ';', '`', '~', '(', ')', '{', '}', '[', ']', '=', '+', '\\', '|', '"', '<', '>']

SLUGIFY_REGEX

public mixed SLUGIFY_REGEX = '^[a-z0-9]+(?:-[a-z0-9]+)*$'

STATUS_NOT_APPROVED

public mixed STATUS_NOT_APPROVED = 'not_approved'

STATUS_PENDING_APPROVAL

public mixed STATUS_PENDING_APPROVAL = 'pending_approval'

STATUS_PENDING_VERIFICATION_EMAIL

public mixed STATUS_PENDING_VERIFICATION_EMAIL = 'pending_verification_email'

STATUS_PENDING_VERIFICATION_PHONE_NUMBER

public mixed STATUS_PENDING_VERIFICATION_PHONE_NUMBER = 'pending_verification_phone_number'

STORY_SERVICE_TYPE

public mixed STORY_SERVICE_TYPE = 'story-service'

VIDEO_SERVICE_DEFAULT

public mixed VIDEO_SERVICE_DEFAULT = 'ffmpeg'

VIDEO_SERVICE_TYPE

public mixed VIDEO_SERVICE_TYPE = 'video-service'

        
On this page

Search results