Grand Central Core

4.1.0 Taormina

Introduction

Grand Central is a free, open source Clearly Magical Framework, with a unique write-less-do-more syntax. It's content agnostic, so you can develop a social network of humans, a blog of reviews or a bike shop. It's API-centered, so you can power a website, a mobile app or json services. It's pretty, so you want to use it. And it's made for devs too: you can chain your PHP just like in jQuery! It's social, so the content you're managing intertwines with the persons you're managing it with. It's user-abstract and event-based, so human can use it, but it also runs machine-to-machine businesses: you can have it connect your phone with your 3D printer.
Each release takes the name of a famous train station, handling passengers organically from their departure point to the end of their journey. 4.1.0 is called Taormina.

Classes

  • sentinel

    Error and exception handling. This class is a singleton.

  • registry

    The registry. A way to store global data. Lots of useful tool too.

    $apps = registry::get(registry::app_index);
    $classes = registry::get(registry::class_index);
    $constants = registry::get_constants();
    
    This class stores data in a global registry so they can be easily accessed through the current script.

  • database

    Database ressources. This class is a singleton. You need database::connect() to instantiate. Example:

    $db = database::connect('site');
    $param = array('key' => 'home');
    $home = $db->query('SELECT * FROM page WHERE `key` = :key', $param);
    

  • bunch

    Handles bunches of items This class will let you search, order, save, delete bunches in the database. For instance all the socks at once:

    // Fetch all the socks
    $bunch = new bunch('socks', all);
    
    Bunches parameters let you refine your selection with various values:
    // Fetch a bunch of socks
    $p = array(
    'title' => 'best-offer%',
    'size' => array('XL', 'L'),
    'codes' => array(2, 4),
    'tag' => 1,
    'order()' => 'color DESC, size ASC',
    'limit()' => 10,
    'instock' => true,
    );
    $bunch = new bunch('socks', $p);
    
    By calling several times the get() method, you'll be able to handle different types of items at the same time, like pairs of blue socks and XL jumpers:
    // Fetch socks and jumpers in one bunch
    $bunch = new bunch();
    $bunch-get('socks',
    array(
    'color' => 'blue',
    )
    );
    $bunch-get('jumpers',
    array(
    'size' => 'XL',
    )
    );
    
    F

  • event

    Event handling class Create, delete and activate events on an item or a bunch of items

  • Slug

    Slugify a string

  • count

    Get a count of items from the database

    // Count the red socks
    $param = array(
    'color' => 'red',
    );
    $count = count::get('socks', $param);
    

  • _apps

    The abstract class for app handling.

  • app

    App handling

  • _attrs

    Abstract class for handling attributes

  • attrString

    String formated attributes handling class

  • attrInt

    Integer formated attributes handling class

  • attrArray

    Array attribute handling class

  • attrBool

    Boolean attributes handling class

  • attrDecimal

    Decimal formatted attribute handling class

  • attrDate

    Date attribute handling class

  • attrRel

    String formated attributes handling class

  • attrId

    Autoincremented Id attribute handling class

  • attrKey

    String formated attributes handling class

  • attrPassword

    String formated attributes handling class

  • attrCreated

    Creation Date attribute handling class

  • attrUpdated

    Integer formated attributes handling class

  • attrStatus

    String formated attributes handling class

  • attrLive

    String formated attributes handling class

  • attrVersion

    Integer formated attributes handling class

  • attrList

    String formated attributes handling class

  • attrMedia

    String formated attributes handling class

  • attrUrl

    String formated attributes handling class

  • attrOwner

    Integer formated attributes handling class

  • attrItem

    Integer formated attributes handling class

  • attrI18n

    Internationalization attribute handling class. Work as a container of all other attributes

  • attrObject

    String formated attributes handling class

  • _items

    Handles data fetched in the database a data = one line in the database

  • item

    The generic item of Grand Central

  • itemItem

    The generic item of Grand Central

  • itemVersion

    The generic item of Grand Central

  • itemPage

    The generic item of Grand Central

  • itemHuman

    The generic item of Grand Central

  • itemGroup

    The generic item of Grand Central

  • itemConst

    The generic item of Grand Central

  • itemSection

    The generic item of Grand Central

  • file

    Classe de manipulation des images http://stackoverflow.com/questions/11061355/security-threats-with-uploads

  • dir

    Classe de manipulation des répertoires Pour créer, manipuler, déplacer, supprimer les répertoires

    $dir = new dir(directory);
    $dir->get();
    

Libraries