|
On this page:
- ClassMethod new ($session)
- ObjectMethod finish ()
- ObjectMethod readTopic ($user,$web,$topic,$version) -> ($metaObject,$text)
- ObjectMethod _findAttachments ($session,$web,$topic,$knownAttachments) -> @attachmentsFoundInPub
- ObjectMethod readTopicRaw ($user,$web,$topic,$version) -> $topicText
- ObjectMethod moveAttachment ($oldWeb,$oldTopic,$oldAttachment,$newWeb,$newTopic,$newAttachment,$user)
- ObjectMethod getAttachmentStream ($user,$web,$topic,$attName) -> \*STREAM
- ObjectMethod getAttachmentList ($web,$topic)
- ObjectMethod attachmentExists ($web,$topic,$att) -> $boolean
- ObjectMethod _removeAutoAttachmentsFromMeta
- ObjectMethod moveTopic ($oldWeb,$oldTopic,$newWeb,$newTopic,$user)
- ObjectMethod moveWeb ($oldWeb,$newWeb,$user)
- ObjectMethod readAttachment ($user,$web,$topic,$attachment,$theRev) -> $text
- ObjectMethod getRevisionNumber ($web,$topic,$attachment) -> $integer
- ObjectMethod getWorkArea ($key) -> $directorypath
- ObjectMethod getRevisionDiff ($user,$web,$topic,$rev1,$rev2,$contextLines) -> \@diffArray
- ObjectMethod getRevisionInfo ($web,$topic,$rev,$attachment) -> ($date,$user,$rev,$comment)
- StaticMethod dataEncode ($uncoded) -> $coded
- StaticMethod dataDecode ($encoded) -> $decoded
- ObjectMethod saveTopic ($user,$web,$topic,$text,$meta,$options)
- ObjectMethod saveAttachment ($web,$topic,$attachment,$user,$opts)
- ObjectMethod repRev ($user,$web,$topic,$text,$meta,$options)
- ObjectMethod delRev ($user,$web,$topic,$text,$meta,$options)
- ObjectMethod lockTopic ($web,$topic)
- ObjectMethod unlockTopic ($user,$web,$topic)
- ObjectMethod webExists ($web) -> $boolean
- ObjectMethod topicExists ($web,$topic) -> $boolean
- ObjectMethod getTopicParent ($web,$topic) -> $string
- ObjectMethod getTopicLatestRevTime ($web,$topic) -> $epochSecs
- ObjectMethod eachChange ($web,$time) -> $iterator
- ObjectMethod getTopicNames ($web) -> @topics
- ObjectMethod getListOfWebs ($filter) -> @webNames
- ObjectMethod createWeb ($user,$newWeb,$baseWeb,$opts)
- ObjectMethod removeWeb ($user,$web)
- ObjectMethod getDebugText ($meta,$text) -> $text
- ObjectMethod cleanUpRevID ($rev) -> $integer
- ObjectMethod copyTopic ($user,$fromweb,$fromtopic,$toweb,$totopic)
- ObjectMethod searchMetaData ($params) -> $text
- ObjectMethod searchInWebMetaData ($query,$web,\@topics) -> \%matches
- ObjectMethod searchInWebContent ($searchString,$web,\@topics,\%options) -> \%map
- ObjectMethod getRevisionAtTime ($web,$topic,$time) -> $rev
- ObjectMethod getLease ($web,$topic) -> $lease
- ObjectMethod setLease ($web,$topic,$user,$length)
- ObjectMethod clearLease ($web,$topic)
- ObjectMethod removeSpuriousLeases ($web)
|
|
< < | |
> > | |
|
Construct a Store module, linking in the chosen sub-implementation.
|
|
< < |
Complete processing after the client's HTTP request has been responded
to.
- breaking circular references to allow garbage collection in persistent environments
|
> > |
Break circular references. |
| |
| ObjectMethod getRevisionDiff ($user,$web,$topic,$rev1,$rev2,$contextLines) -> \@diffArray
Return reference to an array of [ diffType, $right, $left ] |
|
< < |
-
$user - the user object, or undef to suppress access control checks
|
> > |
-
$user - the user id, or undef to suppress access control checks
|
|
-
$web - the web
-
$topic - the topic
-
$rev1 Integer revision number
|
|
-
$topic Topic name, required, e.g. 'TokyoOffice'
-
$rev revision number. If 0, undef, or out-of-range, will get info about the most recent revision.
-
$attachment attachment filename; undef for a topic
|
|
< < | Return list with: ( last update date, last user object, = |
> > | Return list with: ( last update date, last user id, = |
|
$date |
in epochSec |
$user |
user object |
$rev |
the revision number |
|
|
filepath |
Client path to file |
filesize |
Size of uploaded data |
filedate |
Date |
|
|
> > |
tmpFilename |
Pathname of the server file the stream is attached to. Required if stream is set. |
|
|
Saves a new revision of the attachment, invoking plugin handlers as
appropriate. |
| Test if web exists
-
$web - Web name, required, e.g. 'Sandbox'
|
|
< < | A web has to have a home topic to be a web. |
> > | A web has to have a preferences topic to be a web. |
| |
| |
|
< < | ObjectMethod readMetaData ($web,$name) -> $text
Read a named meta-data string. If web is given the meta-data
is stored alongside a web.
ObjectMethod saveMetaData ($web,$name) -> $text |
> > | ObjectMethod eachChange ($web,$time) -> $iterator |
| |
|
< < | Write a named meta-data string. If web is given the meta-data
is stored alongside a web. |
> > | Get an iterator over the list of all the changes in the given web between
$time and now. $time is a time in seconds since 1st Jan 1970, and is not
guaranteed to return any changes that occurred before (now -
{Store}{RememberChangesFor}). Changes are returned in most-recent-first
order. |
| |
|
title |
Title prepended to the returned search results |
default |
defualt value if there are no results |
web |
web to search in, default is all webs |
|
|
> > |
format |
string for custom formatting results |
|
| The idea is that people can search for meta-data values without having to be
aware of how or where meta-data is stored. |
| |
|
> > | ObjectMethod searchInWebMetaData ($query,$web,\@topics) -> \%matches
Search for a meta-data expression in the content of a web. $query must be a TWiki::Query object.
Returns a reference to a hash that maps the names of topics that all matched
to the result of the query expression (e.g. if the query expression is
'TOPICPARENT.name' then you will get back a hash that maps topic names
to their parent.
|
| ObjectMethod searchInWebContent ($searchString,$web,\@topics,\%options) -> \%map
Search for a string in the content of a web. The search must be over all |