config.php
Table of Contents
-
ACCEPTED_FORMAT_OUTPUT
= ['json', 'html', 'xml', 'text']
-
ACL_TABLE
= '_acl'
-
APP_MODULES_PATH
= \realpath(__DIR__ . '/plugins') . '/'
-
APP_NAME
= 'demo'
-
CONFIG_TABLE
= '_config'
-
CONTACT_TABLE
= '_contact'
-
CREATION_DATE
= 'creation_date'
-
DB_HOST
= 'localhost'
-
DB_NAME
= 'dressapi-test'
-
DB_PASSWORD
= 'drapi22'
-
DB_PORT
= 3306
-
DB_USERNAME
= 'root'
-
DBMS_TYPE
= 'MySql'
-
DEFAULT_CHARSET
= 'UTF-8'
-
DEFAULT_CSS_FOLDER
= 'default'
-
DEFAULT_FORMAT_OUTPUT
= 'json'
-
DEFAULT_HTML_FOLDER
= 'default'
-
DEFAULT_ITEMS_PER_REQUEST
= 20
-
DEFAULT_LANGUAGE
= 'IT'
-
DEFAULT_ORDER
= 'DESC'
-
DEFAULT_PAGE_DESCRIPTION
= 'Demo of dressapi'
-
DEFAULT_PAGE_TITLE
= 'dressapi.com - DEMO'
-
DOMAIN_NAME
= 'dressapi.com'
-
FRAMEWORK
= '/frameworks/bootstrap/'
-
HOME_PATH
= __DIR__ . '/www/'
-
IMAGES_EXT_ACCEPTED
= ['jpeg', 'jpg', 'png', 'webp', 'gif']
-
ITEM_ID
= 'id'
-
LANGUAGE_LEARN
= \true
-
LANGUAGES
= ['IT', 'EN']
-
LOG_LEVEL_MIN
= 1
-
LOG_TRACE_REQUESTS
= \false
-
MAIL_DEBUG
= 0
-
MAIL_ENCRYPTION
= 'tls'
-
MAIL_HOST
= 'smtp.gmail.com'
-
MAIL_PASSWORD
= '<YOUR EMAIL PASSWORD>'
-
MAIL_PORT
= 465
-
MAIL_SMTP_PROTOCOL
= \false
-
MAIL_TO_REPLY
= '<YOUR EMAIL>'
-
MAIL_USERNAME
= '<YOUR EMAIL USERNAME'
-
MAX_ELEMENTS_PER_RELATED_TABLE
= 50
-
MAX_FILE_SIZE
= 1048576 * 128
-
MAX_ITEMS_PER_REQUEST
= 200
-
MODULE_TABLE
= '_module'
-
PUBLIC_FILE_URL
= 'public-files/'
-
PWD_CRYPT
= '@AShHK#Dfjdx45'
-
RELATED_FIELD_NAMES
= ['_role' => 'name', '_module' => 'name', 'article' => 'title', '*' => 'name']
-
RELATED_ID_POSTFIX
= ''
-
RELATED_ID_PREFIX
= 'id_'
-
RELATED_MODULE_ID
= \RELATED_ID_PREFIX . \MODULE_TABLE . \RELATED_ID_POSTFIX
-
RELATED_PARENT_ID
= \RELATED_ID_PREFIX . \SAME_TABLE . \RELATED_ID_POSTFIX
-
RELATED_ROLE_ID
= \RELATED_ID_PREFIX . \ROLE_TABLE . \RELATED_ID_POSTFIX
-
RELATED_TABLE_ID
= \RELATED_ID_PREFIX . '[related_table]' . \RELATED_ID_POSTFIX
-
RELATED_USER_ID
= \RELATED_ID_PREFIX . \USER_TABLE . \RELATED_ID_POSTFIX
-
REQUIRED_ITEMS
= []
-
ROLE_TABLE
= '_role'
-
ROUTE_TABLE
= '_route'
-
SAME_TABLE
= 'parent'
-
TOKEN_DURATION
= '2 months'
-
TOKEN_SECRET_KEY
= 'bGS6lzFqvvSQ8ALbOxatm7/Vk7mLQyzqaS34Q4oR1ew='
-
TRANSLATION_TABLE
= '_translation'
-
TWITTER_SITE
= '@dressapi'
-
UPLOAD_EXT_ACCEPTED
= ['doc', 'docx', 'pdf', 'odf', 'pptx', 'jpeg', 'jpg', 'png', 'webp', 'gif']
-
UPLOAD_FILE_PATH
= \UPLOAD_PUBLIC_FILE_PATH
-
UPLOAD_PRIVATE_FILE_PATH
= \realpath(\HOME_PATH . '../private-files/') . '/'
-
UPLOAD_PUBLIC_FILE_PATH
= \realpath(\HOME_PATH . \PUBLIC_FILE_URL) . '/'
-
USER_INIT_ROLES
= [103]
-
USER_ITEM_ID
= 'id'
-
USER_ITEM_NAME
= 'name'
-
USER_ITEM_PASSWORD
= 'pwd'
-
USER_ITEM_USERNAME
= 'username'
-
USER_ROLE_TABLE
= '_user_role'
-
USER_TABLE
= '_user'
public
mixed
ACCEPTED_FORMAT_OUTPUT
= ['json', 'html', 'xml', 'text']
ACL_TABLE
public
mixed
ACL_TABLE
= '_acl'
APP_MODULES_PATH
public
mixed
APP_MODULES_PATH
= \realpath(__DIR__ . '/plugins') . '/'
APP_NAME
public
mixed
APP_NAME
= 'demo'
CONFIG_TABLE
public
mixed
CONFIG_TABLE
= '_config'
public
mixed
CONTACT_TABLE
= '_contact'
CREATION_DATE
public
mixed
CREATION_DATE
= 'creation_date'
DB_HOST
public
mixed
DB_HOST
= 'localhost'
DB_NAME
public
mixed
DB_NAME
= 'dressapi-test'
DB_PASSWORD
public
mixed
DB_PASSWORD
= 'drapi22'
DB_PORT
public
mixed
DB_PORT
= 3306
DB_USERNAME
public
mixed
DB_USERNAME
= 'root'
DBMS_TYPE
public
mixed
DBMS_TYPE
= 'MySql'
DEFAULT_CHARSET
public
mixed
DEFAULT_CHARSET
= 'UTF-8'
DEFAULT_CSS_FOLDER
public
mixed
DEFAULT_CSS_FOLDER
= 'default'
public
mixed
DEFAULT_FORMAT_OUTPUT
= 'json'
DEFAULT_HTML_FOLDER
public
mixed
DEFAULT_HTML_FOLDER
= 'default'
DEFAULT_ITEMS_PER_REQUEST
public
mixed
DEFAULT_ITEMS_PER_REQUEST
= 20
DEFAULT_LANGUAGE
public
mixed
DEFAULT_LANGUAGE
= 'IT'
DEFAULT_ORDER
public
mixed
DEFAULT_ORDER
= 'DESC'
DEFAULT_PAGE_DESCRIPTION
public
mixed
DEFAULT_PAGE_DESCRIPTION
= 'Demo of dressapi'
DEFAULT_PAGE_TITLE
public
mixed
DEFAULT_PAGE_TITLE
= 'dressapi.com - DEMO'
DOMAIN_NAME
public
mixed
DOMAIN_NAME
= 'dressapi.com'
FRAMEWORK
public
mixed
FRAMEWORK
= '/frameworks/bootstrap/'
HOME_PATH
public
mixed
HOME_PATH
= __DIR__ . '/www/'
IMAGES_EXT_ACCEPTED
public
mixed
IMAGES_EXT_ACCEPTED
= ['jpeg', 'jpg', 'png', 'webp', 'gif']
ITEM_ID
public
mixed
ITEM_ID
= 'id'
LANGUAGE_LEARN
public
mixed
LANGUAGE_LEARN
= \true
LANGUAGES
public
mixed
LANGUAGES
= ['IT', 'EN']
LOG_LEVEL_MIN
public
mixed
LOG_LEVEL_MIN
= 1
LOG_TRACE_REQUESTS
public
mixed
LOG_TRACE_REQUESTS
= \false
MAIL_DEBUG
public
mixed
MAIL_DEBUG
= 0
MAIL_ENCRYPTION
public
mixed
MAIL_ENCRYPTION
= 'tls'
MAIL_HOST
public
mixed
MAIL_HOST
= 'smtp.gmail.com'
MAIL_PASSWORD
public
mixed
MAIL_PASSWORD
= '<YOUR EMAIL PASSWORD>'
MAIL_PORT
public
mixed
MAIL_PORT
= 465
MAIL_SMTP_PROTOCOL
public
mixed
MAIL_SMTP_PROTOCOL
= \false
MAIL_TO_REPLY
public
mixed
MAIL_TO_REPLY
= '<YOUR EMAIL>'
MAIL_USERNAME
public
mixed
MAIL_USERNAME
= '<YOUR EMAIL USERNAME'
public
mixed
MAX_ELEMENTS_PER_RELATED_TABLE
= 50
MAX_FILE_SIZE
public
mixed
MAX_FILE_SIZE
= 1048576 * 128
MAX_ITEMS_PER_REQUEST
public
mixed
MAX_ITEMS_PER_REQUEST
= 200
MODULE_TABLE
public
mixed
MODULE_TABLE
= '_module'
PUBLIC_FILE_URL
public
mixed
PUBLIC_FILE_URL
= 'public-files/'
PWD_CRYPT
public
mixed
PWD_CRYPT
= '@AShHK#Dfjdx45'
public
mixed
RELATED_FIELD_NAMES
= ['_role' => 'name', '_module' => 'name', 'article' => 'title', '*' => 'name']
RELATED_ID_POSTFIX
public
mixed
RELATED_ID_POSTFIX
= ''
public
mixed
RELATED_ID_PREFIX
= 'id_'
public
mixed
RELATED_MODULE_ID
= \RELATED_ID_PREFIX . \MODULE_TABLE . \RELATED_ID_POSTFIX
public
mixed
RELATED_PARENT_ID
= \RELATED_ID_PREFIX . \SAME_TABLE . \RELATED_ID_POSTFIX
public
mixed
RELATED_ROLE_ID
= \RELATED_ID_PREFIX . \ROLE_TABLE . \RELATED_ID_POSTFIX
public
mixed
RELATED_TABLE_ID
= \RELATED_ID_PREFIX . '[related_table]' . \RELATED_ID_POSTFIX
public
mixed
RELATED_USER_ID
= \RELATED_ID_PREFIX . \USER_TABLE . \RELATED_ID_POSTFIX
REQUIRED_ITEMS
public
mixed
REQUIRED_ITEMS
= []
ROLE_TABLE
public
mixed
ROLE_TABLE
= '_role'
ROUTE_TABLE
public
mixed
ROUTE_TABLE
= '_route'
SAME_TABLE
public
mixed
SAME_TABLE
= 'parent'
TOKEN_DURATION
public
mixed
TOKEN_DURATION
= '2 months'
TOKEN_SECRET_KEY
public
mixed
TOKEN_SECRET_KEY
= 'bGS6lzFqvvSQ8ALbOxatm7/Vk7mLQyzqaS34Q4oR1ew='
TRANSLATION_TABLE
public
mixed
TRANSLATION_TABLE
= '_translation'
public
mixed
TWITTER_SITE
= '@dressapi'
UPLOAD_EXT_ACCEPTED
public
mixed
UPLOAD_EXT_ACCEPTED
= ['doc', 'docx', 'pdf', 'odf', 'pptx', 'jpeg', 'jpg', 'png', 'webp', 'gif']
UPLOAD_FILE_PATH
public
mixed
UPLOAD_FILE_PATH
= \UPLOAD_PUBLIC_FILE_PATH
UPLOAD_PRIVATE_FILE_PATH
public
mixed
UPLOAD_PRIVATE_FILE_PATH
= \realpath(\HOME_PATH . '../private-files/') . '/'
UPLOAD_PUBLIC_FILE_PATH
public
mixed
UPLOAD_PUBLIC_FILE_PATH
= \realpath(\HOME_PATH . \PUBLIC_FILE_URL) . '/'
USER_INIT_ROLES
public
mixed
USER_INIT_ROLES
= [103]
USER_ITEM_ID
public
mixed
USER_ITEM_ID
= 'id'
USER_ITEM_NAME
public
mixed
USER_ITEM_NAME
= 'name'
USER_ITEM_PASSWORD
public
mixed
USER_ITEM_PASSWORD
= 'pwd'
USER_ITEM_USERNAME
public
mixed
USER_ITEM_USERNAME
= 'username'
USER_ROLE_TABLE
public
mixed
USER_ROLE_TABLE
= '_user_role'
USER_TABLE
public
mixed
USER_TABLE
= '_user'