Api for classes to modify the wiki
—
!!1!
!
>API for classes to modify the wiki
—
!!2!
!
—
!!3!
!
There is a very simple API for classes to modify the wiki.
!
!4!
!
—
!!5!
!
Any class can register to be notified of changes to the wiki by:
!
!6!
!
—
!!7!
!
>
—
!!8!
!
!
!9!
!
!
!10!
!
!
!11!
!
!
!12!
!
!
!13!
!
!
!14!
!
!
!15!
!
!
!16!
!
!
!17!
!
!
!18!
!
!
!19!
!
!
!20!
!
!
!21!
!
!
!22!
!
!
!23!
!
!
!24!
!
!
!25!
!
!
!26!
!
!
!27!
!
!
!28!
!
!
!29!
!
!
!30!
!
!
!31!
!
—
!!32!
!
—
!!33!
!
These notifications are sent by a separate low priority thread from the one that is interacting with the user.
Using these notifications a class can make changes to the wiki by calling:
!
!34!
!
!
!35!
!
!
!36!
!
—
!!37!
!
The normal place for these classes to be initialized is from the start.rb file.
The normal place for these classes to be stored is in the soks/lib/helpers directory.
!
!38!
!
Examples of helpers that use this api:
—
!!39!
!
>
—
!!40!
!
!
!41!
!
(which in turn are used by the SiteIndex and RecentChanges classes.
!
!42!
!
!
!43!
!
AutomaticCalendar and AutomaticUpcomingEvents
—
!!44!
!
!
!45!
!
rss2wiki
—
!!46!
!
!
!47!
!
mail2wiki
—
!!48!
!
!
!49!
!
wiki2html
—
!!50!
!
—
!!51!
!
—
!!52!
!
Tag: Include this page in the distribution !
!53!
!