This site is a static archive of the Aegir community site. Documentation has moved to http://docs.aegirproject.org. Other community resources can be found on the Contacting the community page.
Skip navigation

Revision of Services from Mon, 02/07/2011 - 20:57

Help

Services

Services are the way in which new properties are added to contexts, in fact if you wish to store information in a context, this must be done by a service. There is no other way to store data in a context. One might assume that you can just ask provision to save an additional value on a context, but this will not work, and you'll probably get very frustrated indeed!

A service may also define properties on the context as actually representing another context, so that you may access that sub context directly. For example the backup storage service stores the server to store backups on for a particular site by adding a property to that site whose value is the name of the context of the server. This means that whilst in the the site context, one can write:

<?php
d
()->backup_server; // this is the context for the backups
?>

Need help?

Documentation

The notebook section provides a way for you to store and share information with your group members. With the book feature you can:

  • Add book pages and organize them hierarchically into different books.
  • Attach files to pages to share them with others.
  • Track changes that others have made and revert changes as necessary.
  • Archive books that are no longer of interest to the group. Archived books can be reactivated later if needed.

The revisions let you track differences between multiple versions of a post.