PHP Classes

File: config.example.php

Recommend this page to a friend!
  Classes of Omar Andrés Barbosa Ortiz   Papyrus   config.example.php   Download  
File: config.example.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Papyrus
Store and retrieve database data in files
Author: By
Last change:
Date: 7 years ago
Size: 739 bytes
 

Contents

Class file image Download
<?php

/**
 * Papyrus
 * Config file
 *
 * Permissions: chmod 706 fileName.ext
 */

return [

   
/**
     *
     * Set the extension to database files
     * Example:
     * 'extension' => '.some'
     *
     */

   
'extension' => '.data',
   
   
/**
     * Set the primary key each file
     * Primary Key: Auto increment integer(int++),
     * unique integer (int#),
     * unique string (str#)
     * Example: [
     * 'fileName' => ['name(str#)', 'lastName', 'email'],
     * 'otherFileName' => ['id(int++)', 'description'],
     * 'otherFileName' => ['dni(int#)', 'name', 'lastname']
     * ]
     *
     */

   
'files' => [
                   
'users' => ['dni(int#)', 'name', 'lastName'],
                   
'logs' => ['id(int++)', 'action', 'date']
                ]
    ];