Accueil Features Demos Download Installation User Manual Developer Manual Relation function Credits

blabla

site/current folder

Once a page has been read from the revision file, the wiki object is serialized and saved to the current folder. The filename is a hash of the URL name of the page.

The advantage to have a current version are

  • We do not have to parse the file completely. Fields are already parsed.
  • We do not need the index to find the page. Most pages, also the linked pages, can be found directly by checking the current folder.

The swRecord object is responsible for maintaining the current folder. It must update to the last version, when a page has a new version and it must remove the file when it has been deleted.

As the entire object is serialized, there is a risk that a part of the properties are saved not from the revision file but from the context. This must be avoided. As a prevention, the revision file is always used when the page is edited.

Serialize seems to be the optimal data structure. It takes care of all special character problems and it can also be assigned locally to an object, which is not possible with saving as PHP code like the indexes.

File structure site folder