Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
FileHandler Class Reference
Collaboration diagram for FileHandler:
Collaboration graph

Public Member Functions

 FileHandler ($file_name="chat_data", $file_path="@")
 store (&$what, $key)
 restore (&$what, $key)
 halt ($msg)

Data Fields

 $file_path
 $file_name
 $debug = true

Member Function Documentation

FileHandler (   $file_name = "chat_data",
  $file_path = "@" 
)

constructor

does nothing special, just acquires handles for a memory segment and a semaphore to it

public

Parameters
integer$keymust be unique on this machine
integer$sizein bytes
halt (   $msg)

print error message and exit script

private

Parameters
string$msgthe message to print

Here is the caller graph for this function:

restore ( $what,
  $key 
)

restores a variable from shared memory

public

Parameters
mixed&$whatvariable to restore (call by reference)
integer$keythe key from which to store

Here is the call graph for this function:

store ( $what,
  $key 
)

stores a variable in shared memory

public

Parameters
mixed&$whatvariable to store (call by reference)
integer$keythe key under which to store

Here is the call graph for this function:

Field Documentation

$debug = true
$file_name
$file_path

The documentation for this class was generated from the following file: