/ModelClass.php

Description

ModelClass.php - S2 Hierarchical Data Model It provides the tools to build hierarchical and dynamic structures and to manage data that is stored in a static structure of tables on a database.

Proporciona las herramientas necesarias para construir estructuras jerárquicas y dinámicas de datos que se almacenan en una estructura estática de tablas sobre una base de datos.

Classes
Class Description
Model This class contains the functions to manage the data model based in Nested Set Model. This file contains the constants to config the model.
TablesParameters This class is for use with function initializateDB.
Includes
require_once ("structHandlerClass.php") (line 55)
require_once ("elementHandlerClass.php") (line 54)
require_once ("dataHandlerClass.php") (line 53)
require_once ("xmllib.php") (line 57)
require_once ("relationHandlerClass.php") (line 56)
Constants
DATA_TABLENAME = "data" (line 115)

DATA_TABLENAME: Defines the name of the data table.

DEFDATABASE_HOST = "_YourHost_" (line 82)

Default Data Base Host (for web interface)

DEFDATABASE_NAME = "_YorDBName_" (line 97)

Default Data Base Name (for web interface)

DEFDATABASE_PASSWORD = "_YourDBPassword_" (line 92)

Default Data Base Password (for web interface)

DEFDATABASE_USERNAME = "_YourDBUsername_" (line 87)

Default Data Base User (for web interface)

ELEMENTS_NAME_REGEX = '/^([-a-z0-9_-])+$/i' (line 150)

ELEMENTS_NAME_REGEX: Regular expression to validate the name of the elements.

ELEMENTS_TABLENAME = "elements" (line 125)

ELEMENTS_TABLENAME: Defines the name of the elements table.

ELEMENT_NODES_TYPE_NAME = "ELEMENT" (line 135)

ELEMENT_NODES_TYPE_NAME: Defines the name of the elements nodes (and relations).

ID_SEPARATOR = '-' (line 110)

ID_SEPARATOR: Character used to separate type and id of an element.

INTERNAL_NODES_TYPE_NAME = "NODE" (line 130)

INTERNAL_NODES_TYPE_NAME: Defines the name of the internal nodes.

NODES_NAME_REGEX = '/^[a-zd_-]{1,80}[0-9]{0,10}$/i' (line 145)

NODES_NAME_REGEX: Regular expression to validate the name of the nodes.

PREFIX = "" (line 72)

PREFIX: Defines the prefix for the tables.

ROOT_NAME = '/SYSTEM' (line 66)

ROOT_NAME: Defines the name of the internal root.

SEPARATOR = '/' (line 105)

SEPARATOR: Character used to separate levels of a path.

STRUCT_TABLENAME = "structure" (line 120)

STRUCT_TABLENAME: Defines the name of the structure table.

VALUE_TYPES = "INTEGER,STRING,DATE,REAL,BOOLEAN" (line 140)

VALUE_TYPES: Defines the data types allowed.

Documentation generated by phpDocumentor 1.4.3
Modified by Sergio Barja for S2 - Hierarchical Data Model documentation.