Documentation

config.php

Table of Contents

CACHE_PATH  = '/dev/shm/'
CREATION_DATE  = 'creation_date'
DB_HOST  = 'localhost'
DB_NAME  = 'dressapi-test'
DB_PASSWORD  = ''
DB_PORT  = 3306
DB_USERNAME  = 'root'
DBMS_TYPE  = 'MySql'
DEFAULT_FORMAT_OUTPUT  = 'json'
DEFAULT_ITEMS_PER_PAGE  = 2
DEFAULT_ORDER  = 'DESC'
DOMAIN_NAME  = 'DressApi.com'
ITEM_ID  = 'id'
LOG_LEVEL_MIN  = 'info'
MAX_ITEMS_PER_PAGE  = 200
PASSWORD_ENC_ALGORITHM  = 'tiger192,4'
PWD_CRYPT  = '@AShHK#Dfjdx45'
RELATED_FIELD_NAMES  = [ 'page' => ['title', 'creation_date'], // the value can be an array of strings 'contact' => ['email', 'city'], '*' => 'name', ]
RELATED_TABLE_ID  = 'id_[related_table]'
REQUIRED_ITEMS  = ['student' => [ // item=>rules ['periodicy' => '/[daily|weekly|monthly]/'], ['name' => 'age', 'min' => 17], ['name' => 'vote', 'min' => 18, 'max' => 30], ]]
SAME_TABLE_ID  = 'parent'
SECRET_KEY  = 'bGS6lzFqvvSQ8ALbOxatm7/Vk7mLQyzqaS34Q4oR1ew='
TOKEN_DURATION  = '2 months'
TOKEN_ENC_ALGORITHM  = 'HS512'
USER_ITEM_ID  = 'id'
USER_ITEM_PASSWORD  = 'pwd'
USER_ITEM_USERNAME  = 'username'
USER_TABLE  = 'user'

Constants

CACHE_PATH

public mixed CACHE_PATH = '/dev/shm/'

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 = ''

DB_PORT

public mixed DB_PORT = 3306

DB_USERNAME

public mixed DB_USERNAME = 'root'

DBMS_TYPE

public mixed DBMS_TYPE = 'MySql'

DEFAULT_FORMAT_OUTPUT

public mixed DEFAULT_FORMAT_OUTPUT = 'json'

DEFAULT_ITEMS_PER_PAGE

public mixed DEFAULT_ITEMS_PER_PAGE = 2

DEFAULT_ORDER

public mixed DEFAULT_ORDER = 'DESC'

DOMAIN_NAME

public mixed DOMAIN_NAME = 'DressApi.com'

ITEM_ID

public mixed ITEM_ID = 'id'

LOG_LEVEL_MIN

public mixed LOG_LEVEL_MIN = 'info'

MAX_ITEMS_PER_PAGE

public mixed MAX_ITEMS_PER_PAGE = 200

PASSWORD_ENC_ALGORITHM

public mixed PASSWORD_ENC_ALGORITHM = 'tiger192,4'

PWD_CRYPT

public mixed PWD_CRYPT = '@AShHK#Dfjdx45'
public mixed RELATED_FIELD_NAMES = [ 'page' => ['title', 'creation_date'], // the value can be an array of strings 'contact' => ['email', 'city'], '*' => 'name', ]
public mixed RELATED_TABLE_ID = 'id_[related_table]'

REQUIRED_ITEMS

public mixed REQUIRED_ITEMS = ['student' => [ // item=>rules ['periodicy' => '/[daily|weekly|monthly]/'], ['name' => 'age', 'min' => 17], ['name' => 'vote', 'min' => 18, 'max' => 30], ]]

SAME_TABLE_ID

public mixed SAME_TABLE_ID = 'parent'

SECRET_KEY

public mixed SECRET_KEY = 'bGS6lzFqvvSQ8ALbOxatm7/Vk7mLQyzqaS34Q4oR1ew='

TOKEN_DURATION

public mixed TOKEN_DURATION = '2 months'

TOKEN_ENC_ALGORITHM

public mixed TOKEN_ENC_ALGORITHM = 'HS512'

USER_ITEM_ID

public mixed USER_ITEM_ID = 'id'

USER_ITEM_PASSWORD

public mixed USER_ITEM_PASSWORD = 'pwd'

USER_ITEM_USERNAME

public mixed USER_ITEM_USERNAME = 'username'

USER_TABLE

public mixed USER_TABLE = 'user'

Search results