The NO-SOD Framework 2.0.2 Developer Manual

Stephane Van de Putte

The NO-SOD Project

2004


Table of Contents

1. Basic rules for module development
INTRODUCTION
MODULE CODE
DATABASE
File naming convention
Variables naming convention
SESSION VARIABLE - REGISTERED
RECEPT DATA FROM HTML
OUTPUT GENERATION
SOURCE CODE CALLING
CERTIFICATE
2. FLY.PHP - RUNTIME EXECUTION WORKFLOW
STEP 1: Set up environment variables
STEP 2: Including external files
STEP 3: Get the client IP addresss
STEP 4: Check the current client browser window
STEP 5: Start a new session if necessary
STEP 6: Fo non new sessions: take back session flow
STEP 7: Source code extraction and execution
STEP 8: Output by merging html template.
STEP 9: Serializing objects
STEP 10: Output error if any.
3. COMMONLY USED VARIABLES
4. HTMLGEN - Generating an html table dynamically
5. HTMLGENTABLE - Generating an html table dynamically with row effect
6. The User Object definition - class nsdUser
Object properties
Object methods
get([$load=1])
add([$load=1],[$reason="ownership"])
delete([$load=1],[$reason="ownership"])
undelete([$load=1],[$reason="ownership"])
update([$load=1],[$passupdate=false],[$unlock=false],[$reason="ownership"])
getuname($uid)
tsig($user,$password,[$userstorage=1])
login($user,$password,[$module="NSD"],[$userstorage=1])
7. The Group Object definition - class nsdGroup
Linking users to groups.
Object properties
Object methods
add($gname,$module,$type,[$gdesc=""],[$reason="ownership"])
getgid($gname,$module,$type)
getgname($gid)
update($oldname,$gname,$module,$type,[$gdesc=""])
adduser($uname,$gname,$module,$type,[$reason="ownership"])
deluser($uname,$gname,$module,$type,[$reason="ownership"])
listusersofgroup($gname,$module,$type)
listgroupsofuser($uname,$module,$type)
listgroupsofmodule($module,$type)
userbelong2group($uname,$gname,$module,$type)
addgroup($ngname,$nmodule,$ntype,$gname,$module,$type,[$reason="ownership"])
delgroup($ngname,$nmodule,$ntype,$gname,$module,$type,$reason="ownership")
listsubgroupsofgroup($gname,$module,$type,$nmodule,$ntype)
listgroupsmanagedbyuser($uname,$module)
listmastergidofuser($uname)
8. HOW LIBRARY (.LIB) FILES ARE WORKING ?

List of Tables

3.1. Variables list