Home       Servicebereich  Projekte  Kontakt  

Methoden


### SPAF class methods ###

  SPAF($chld='',$params='')     constructor


  run()                         run application

  setAccess($level)             set access (level) to level

  setName($name)                set ->NAME

  param($param)                 fetch value of ->PARAMS[$param]

  setParam($param,$value)       set value of ->PARAMS[$param] = $value

  setParams($p_ary[])           set all $param => $value pairs in ->PARAMS[]

  setCA($value)                 set ->PARAMS['CA'] and ->CA

  setCP($value)                 set ->PARAMS['CP'] and ->CP

  destroySession()              destroys session
                                  (calls ->SESSION->destroySession())

  setError($errorNumber)        sets ->error to $errorNumber,
                                  tpl: errorMSG and tpl: MESSAGE

  setMessage($number)           sets tpl: MESSAGE to the message
                                  assigne to message number

  DIR()                         returns the path to the directory of
                                  the called script

  FILE()                        returns the filename of the called
                                  script

  removeParam($param)           removes the parameter $param from
                                  session

  errorPage()                   sends a 404 Not Found header, returns
                                  the text: "Page <CP> cannot be found."

  pageError()                   sends a 403 Forbidden header, appends
                                  to ->output: "Page <CP> cannot be found."

  HOMEDIR()                     returns ->HOMEDIR

  CONFDIR()                     returns ->CONFDIR

  TPLDIR()                      returns ->TPLDIR


### standalone functions (not assigned to class) ###

  dieError($msg,$logmsg='')     dies with message $msg, $logmsg will
                                write to error_log if set.


< zurück  | weiter >