[ Index ]

PHP Cross Reference of phool

title

Body

[close]

/Phool/ -> Persistent.php (summary)

(no description)

Copyright: Francois Laupretre <phool@tekwire.net>
License: http://www.apache.org/licenses/LICENSE-2.0 Apache License, V 2.0
File Size: 199 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 5 functions

  __construct()
  setPath()
  load()
  save()
  saveIfModified()

Functions
Functions that are not part of a class:

__construct($magic,$path=null)   X-Ref
Class constructor

param: string $magic The magic string to use when writing/reading a file
param: string|null $path A file to load if not null
return: void

setPath($path)   X-Ref
Records a path

param: string $path
return: void

load($path)   X-Ref
Restore data from a save()d file

param: string $path Path of the file to load
return: void

save($path=null)   X-Ref
Save data to a file on disk

param: string|null $path Path to save or null if same as load()
return: void

saveIfModified($path=null)   X-Ref
Save object to a file if it was modified since last load() or save()

param: string|null $path Path to save or null if same as load()
return: void



Generated: Thu Jun 4 19:17:11 2015 Cross-referenced by PHPXref 0.7.1