Bienvenue

Nov/2020

xuServer est un Framework ORM français, écrit en PHP pour des bases de données MySQL.

Objectifs & Caractéristiques :

  • Encapsulation des concepts de Programmation Orientée Objet
  • Syntaxe POO chainable
  • Facilitation du développement de fontionnalités métier par les utilisateurs finaux
  • Namespacing et Modularité (gestion de droits, fonctionnalités métier ...)
  • Génération automatique des interfaces utilisateurs
  • Cet environnement de développement léger se fonde sur l'emploi de :

  • PHP 7.x
  • MySQL 5.x
  • jQuery 3.4
  • Bootstrap 4
  • Page de Démonstration

    L'accès au service dépend de vos droits d'utilisateur.

    Merci de bien vouloir créer un compte et vous y connecter

    Documentation

    La documentation de l'API est disponible ici (version béta)

    Open Source GPAO

    Contact

    A propos du webmaster




    model


    ORM Model class

    Common public methods of model object

    @author gael jaunin

    INHERITANCE

    private $_title

    model::$_title

    Title of a Model instance

    @see \xuserver\v5\model\title($set)




    private $_titleArray

    model::$_titleArray

    Array used to define a model::$_title when model has no text property

    @see \xuserver\v5\model\title($set)



    public $auth_applyed

    model::$auth_applyed

    is the model controled by auth module
    if true relations and foreign keys models are build with auth()
    if false relations and foreign keys models are build with full CRUD access
    @var boolean





    modelEvents


    ORM Model Event class

    Events are fired on model public method execution :
    - create()
    - read()
    - update()
    - delete()

    They can be overwritten in descendant class files.


    INHERITANCE



    modelStructure


    ORM MODEL STRUCTURE CLASS

    The modelStructure class is an iteratorItem child that olds Methods :
    - to launch PHP overloading Functions over a model (set, get, call, invoke)
    - to access and traverse Model structure (properties, methods, relations, iterator (to be renamed))
    - to access database and sql classes
    - to describe the Model : __module()

    INHERITANCE

    private $sql

    modelStructure::$sql

    sql class attached to the model
    @todo rename to private var
    @var sql



    public $ui

    modelStructure::$ui

    user interface attached to the model
    @var model_ui



    private $Model

    modelStructure::$Model

    point to the model itself (= $this) or to the owner model is case of a relation
    @var \xuserver\v5\model



    protected $db

    modelStructure::$db

    database class attached to the model
    @var database



    private $db_tablename

    modelStructure::$db_tablename

    name of the table that store model instances in database
    @var string



    protected $db_index

    modelStructure::$db_index

    name of the primary key that identifies instances in the table
    @var string



    protected $db_id

    modelStructure::$db_id

    value of the primary key that identifies instances using primary key
    @var string



    private $_properties

    modelStructure::$_properties

    iterator that stores model properties
    @var properties



    private $_relations

    modelStructure::$_relations

    iterator that stores model relations
    @var relations



    private $_methods

    modelStructure::$_methods

    iterator that stores model methods
    @var methods



    private $_iterator

    modelStructure::$_iterator

    iterator that stores model instances
    @var mixed (model or stdClass)



    private $_state

    modelStructure::$_state

    state of the model is
    @todo - is_init : the model doesnt map anything
    @todo - is_virgin : the model only maps the table
    @todo - is_model : the model maps its table and foreign keys
    - is_instance : the model maps a table and is an instance
    - is_selection : the model maps a table and is set of instances
    @var string



    private $_module

    modelStructure::$_module

    Pseudo namespace the Model belongs to






    iteratorItem


    standard item in iterator


    INHERITANCE