xuServer  4.2
xuServer est un Framework ORM écrit en PHP pour des bases de données MySQL.
Public Member Functions | Data Fields | Protected Member Functions
xsConcept Class Reference

This Class holds the Common and Basic ORM and CRUD attributes and functionalities for derived child classes (module, concept, db_id, includeFile, privilegeKey ...) More...

Inheritance diagram for xsConcept:
xsModel xsComponent xsClass xsCollection xsProperty

Public Member Functions

 mciparse ($string="")
 this method parses the given string parameter to determine the module name the concept name and the id of the object More...
 
 privilege ($key="")
 
 foldername ($autocreate=false)
 
 design_readclass ()
 
 design_constructor ()
 

Data Fields

 $mci =""
 identification of the class concatenation of module_concept_dbid More...
 
 $module ="xam"
 name of the module that deals with the object held by xsClass (convention : word before the first "_" in tablename) More...
 
 $concept ="user"
 name of the class beeing held by xsClass. concept is the name of the php class that extends metaclass xsClass More...
 
 $includeFile =""
 path to the business class file if exists More...
 
 $logoPath =""
 path to the logo of current class More...
 
 $privilegeKey =""
 privilege name defined on child classes More...
 
 $db_id =0
 unique identifyer of primary key, instance number of the class More...
 

Protected Member Functions

 mciSet ()
 

Detailed Description

This Class holds the Common and Basic ORM and CRUD attributes and functionalities for derived child classes (module, concept, db_id, includeFile, privilegeKey ...)

The main attributes defined at this level are :

Author
Gael

Member Function Documentation

◆ design_constructor()

design_constructor ( )

◆ design_readclass()

design_readclass ( )

◆ foldername()

foldername (   $autocreate = false)

Returns the name the folder that contains all buisness documents, images, files, folders associated with xsClass instance object if folder doesn't exist, and instance exists, it is created on the fly

Parameters
setto true if you wish to create the folder on the fly
Returns
string path on disk or false if forlder doens't exist or cant be created

◆ mciparse()

mciparse (   $string = "")

this method parses the given string parameter to determine the module name the concept name and the id of the object

It determines the includePath for business rules class and the key for the corresponding privilege

Parameters
string$string

◆ mciSet()

mciSet ( )
protected

recalculate xsConcept::$mci value

◆ privilege()

privilege (   $key = "")

Field Documentation

◆ $concept

$concept ="user"

name of the class beeing held by xsClass. concept is the name of the php class that extends metaclass xsClass

◆ $db_id

$db_id =0

unique identifyer of primary key, instance number of the class

See also
xsConcept::mci

◆ $includeFile

$includeFile =""

path to the business class file if exists

◆ $logoPath

$logoPath =""

path to the logo of current class

◆ $mci

$mci =""

identification of the class concatenation of module_concept_dbid

◆ $module

$module ="xam"

name of the module that deals with the object held by xsClass (convention : word before the first "_" in tablename)

◆ $privilegeKey

$privilegeKey =""