WIKINDX API 6.6.8

Documentation

Table of Contents

Packages

wikindx

Namespaces

BIB
BIBCITE
CITE
CITELOC
EXPORTFILTER
LOADSTYLE
STYLELOC
AJAX
COMPONENT
FILE
FORM
HTML
LOCALES
RTF
TEMPSTORAGE
URL
UTF8
UTILS
LISTSESSION
UPDATE

Classes

BIBCITEGATEWAY
BIBCITEGATEWAY class.
PARSESTYLE
Parse the bibliographic style
PARSEXML
Parse the bibliographic style's XML
STYLEMAP
Define style mapping
BIBLIOGRAPHYCOMMON
Common methods for user bibliographies
BROWSECOMMON
Common methods for user bibliographies
CATEGORY
Common methods for categories
COLLECTION
Common methods for collections
COLLECTIONDEFAULTMAP
Collection mapping for the collectionDefault column in the collections table
COLLECTIONMAP
Collection mapping
CREATOR
Common functions for creators
BIBTEXCONFIG
BibTeX Configuration class -- map characters between bibtex and other formats
BIBTEXCREATORPARSE
Parse BibTeX authors
BIBTEXMAP
Map BibTeX fields
BIBTEXMONTHPARSE
BibTeX MONTH import class
BIBTEXPAGEPARSE
BibTeX PAGE import class
BIBTEXPARSE
BibTeX PARSE
COINSMAP
Provides COINS mappings
ENDNOTEMAP
Endnote Map class.
EXPORTBIBTEX
Export BibTeX
EXPORTCOINS
Export COINS
EXPORTCOMMON
EXPORT COMMON class
EXPORTER
EXPORTER
EXPORTGOOGLESCHOLAR
Make WIKINDX resources available to Google Scholar
GOOGLESCHOLARMAP
Provides mappings for Google Scholar
RISMAP
RIS Map class.
KEYWORD
KEYWORD common routines
CLOSE
Close WIKINDX tidily and print footer.
CLOSENOMENU
Close WIKINDX tidily (no menu - used for initial logon screen).
CLOSEPOPUP
Close WIKINDX tidily. Used for javascript pop-ups such as citation that don't require header, images, menus etc.
CLOSERAW
Close WIKINDX by simply printing GLOBALS::buildTplVarString('content') without any more content. Typically used with AJAX to print strings to a DIV within the WIKINDX page
FILETOTEXT
Convert files of various types to text ready for searching.
FRONT
Front page of the system.
ImageServer
ImageServer
FileManager
FileManager
FileServer
FileServer
Location
Location
EncodeExplorer
EncodeExplorer
LOADICONS
Load image icons used throughout WIKINDX
MAIL
MAIL
RecursiveDOMIterator
Recursive Iterator class for the DOM class
SESSION
SESSION
SQLSTATEMENTS
SQLSTATEMENTS
STORE
STORE
TEMPLATE
Load the WIKINDX display template system
HIGHLIGHT
HIGHLIGHT class.
LISTCOMMON
LISTCOMMON common functions for listing, searching, selecting etc. resources
PAGING
PAGING Numeric paging of lists
PAGINGALPHA
PAGING Alphabetic paging of lists -- only used when ordering by creator or title or attachment file name
PAGINGDICT
PAGING Dictionary paging of lists -- only used when ordering by creator or title or attachment file name
PARSEPHRASE
PARSEPHRASE -- break up a search phrase into component parts such as 'exact phrase', AND, OR and NOT
METADATA
METADATA
ATTACHMENT
ATTACHMENT
GATEKEEP
GATEKEEP
STATISTICS
STATISTICS
TAG
TAG
BADINPUT
BADINPUT
MENU
MENU
NAVIGATE
NAVIGATE
PASSWORD
PASSWORD class.
PUBLISHER
PUBLISHER
PUBLISHERMAP
PUBLISHERMAP
RESOURCECOMMON
RESOURCECOMMON class
RESOURCEMAP
RESOURCEMAP
AUTHORIZE
AUTHORIZE
BROWSERTABID
BROWSERTABID
CONFIGDBSTRUCTURE
CONFIGDBSTRUCTURE
FACTORY_BROWSERTABID
FACTORY_BROWSERTABID
FACTORY_HOUSEKEEPING
FACTORY_HOUSEKEEPING
FACTORY_PASSWORD
FACTORY_PASSWORD
FACTORY_CONFIGDBSTRUCTURE
FACTORY_CONFIGDBSTRUCTURE
FACTORY_LOADCONFIG
FACTORY_LOADCONFIG
FACTORY_SESSION
FACTORY_SESSION
FACTORY_AUTHORIZE
FACTORY_AUTHORIZE
FACTORY_DB
FACTORY_DB
FACTORY_SQLSTATEMENTS
FACTORY_SQLSTATEMENTS
FACTORY_TEMPLATE
FACTORY_TEMPLATE
FACTORY_USER
FACTORY_USER
FACTORY_CLOSE
FACTORY_CLOSE
FACTORY_FRONT
FACTORY_FRONT
FACTORY_QUARANTINE
FACTORY_QUARANTINE
FACTORY_CLOSENOMENU
FACTORY_CLOSENOMENU
FACTORY_CLOSEPOPUP
FACTORY_CLOSEPOPUP
FACTORY_CLOSERAW
FACTORY_CLOSERAW
FACTORY_STATISTICS
FACTORY_STATISTICS
FACTORY_LOADICONS
FACTORY_LOADICONS
FACTORY_EXPORTCOMMON
FACTORY_EXPORTCOMMON
FACTORY_EXPORTCOINS
FACTORY_EXPORTCOINS
FACTORY_EXPORTGOOGLESCHOLAR
FACTORY_EXPORTGOOGLESCHOLAR
FACTORY_BIBTEXPARSE
FACTORY_BIBTEXPARSE
FACTORY_COINSMAP
FACTORY_COINSMAP
FACTORY_BIBTEXCONFIG
FACTORY_BIBTEXCONFIG
FACTORY_BIBTEXMAP
FACTORY_BIBTEXMAP
FACTORY_BIBTEXCREATORPARSE
FACTORY_BIBTEXCREATORPARSE
FACTORY_BIBTEXMONTHPARSE
FACTORY_BIBTEXMONTHPARSE
FACTORY_BIBTEXPAGEPARSE
FACTORY_BIBTEXPAGEPARSE
FACTORY_EXPORTBIBTEX
FACTORY_EXPORTBIBTEX
FACTORY_PARSEXML
FACTORY_PARSEXML
FACTORY_STYLEMAP
FACTORY_STYLEMAP
FACTORY_BROWSECOMMON
FACTORY_BROWSECOMMON
FACTORY_BIBCITEGATEWAY
FACTORY_BIBCITEGATEWAY
FACTORY_LISTCOMMON
FACTORY_LISTCOMMON
FACTORY_LISTSESSION
FACTORY_LISTSESSION
FACTORY_HIGHLIGHT
FACTORY_LISTCOMMON
FACTORY_STORE
FACTORY_STORE
FACTORY_METADATA
FACTORY_METADATA
FACTORY_TYPE
FACTORY_TYPE
FACTORY_CATEGORY
FACTORY_CATEGORY
FACTORY_TAG
FACTORY_TAG
FACTORY_USERTAGS
FACTORY_USERTAGS
FACTORY_KEYWORD
FACTORY_KEYWORD
FACTORY_RESOURCEMAP
FACTORY_RESOURCEMAP
FACTORY_CREATOR
FACTORY_CREATOR
FACTORY_PUBLISHER
FACTORY_PUBLISHER
FACTORY_PUBLISHERMAP
FACTORY_PUBLISHERMAP
FACTORY_COLLECTION
FACTORY_COLLECTION
FACTORY_COLLECTIONMAP
FACTORY_COLLECTIONMAP
FACTORY_MENU
FACTORY_MENU
FACTORY_BADINPUT
FACTORY_BADINPUT
FACTORY_NAVIGATE
FACTORY_NAVIGATE
FACTORY_BIBLIOGRAPHYCOMMON
FACTORY_BIBLIOGRAPHYCOMMON
FACTORY_GATEKEEP
FACTORY_GATEKEEP
FACTORY_RESOURCECOMMON
FACTORY_RESOURCECOMMON
FACTORY_MAIL
FACTORY_MAIL
FACTORY_PAGING
FACTORY_PAGING
FACTORY_PAGINGALPHA
FACTORY_PAGINGALPHA
FACTORY_PAGINGDICT
FACTORY_PAGINGDICT
FACTORY_PARSESTYLE
FACTORY_PARSESTYLE
FACTORY_EXPORTER
FACTORY_EXPORTER
FACTORY_TINYMCE
FACTORY_TINYMCE
FACTORY_PARSEPHRASE
FACTORY_PARSEPHRASE
FACTORY_ATTACHMENT
FACTORY_ATTACHMENT
FACTORY_DATE
FACTORY_DATE
GLOBALS
GLOBALS
HOUSEKEEPING
HOUSEKEEPING
LOADCONFIG
LOADCONFIG
LOADPLUGINS
LOADPLUGINS class for third-party plug-in modules in the WIKINDX_DIR_COMPONENT_PLUGINS directory
UPDATEDATABASE
UPDATEDATABASE
TINYMCE
TINYMCE
TYPE
RESOURCE TYPE
USER
USER
USERTAGS
USERTAGS

Functions

loadStaticConfig()  : array<string|int, mixed>
Load configuration from config.php
wkx_session_set_db_handler()  : mixed
Set a db handler for session storage in session table
wkx_session_set_file_handler()  : mixed
Set the default file handler for session storage
wkx_session_open()  : bool
The open callback works like a constructor in classes and is executed when the session is being opened.
wkx_session_close()  : bool
The close callback works like a destructor in classes and is executed after the session write callback has been called.
wkx_session_read()  : string
The read callback must always return a session encoded (serialized) string, or an empty string if there is no data to read.
wkx_session_write()  : bool
The write callback is called when the session needs to be saved and closed.
wkx_session_destroy()  : bool
This callback is executed when a session is destroyed with session_destroy() or with session_regenerate_id() with the destroy parameter set to true.
wkx_session_gc()  : bool
The garbage collector callback is invoked internally by PHP periodically in order to purge old session data.

Functions

loadStaticConfig()

Load configuration from config.php

loadStaticConfig() : array<string|int, mixed>

This function die() if a config parameter is wrong.

Return values
array<string|int, mixed>

Array of error messages

wkx_session_set_file_handler()

Set the default file handler for session storage

wkx_session_set_file_handler() : mixed

wkx_session_open()

The open callback works like a constructor in classes and is executed when the session is being opened.

wkx_session_open(string $savePath, string $sessionName) : bool

It is the first callback function executed when the session is started automatically or manually with session_start(). Return value is true for success, false for failure.

Parameters
$savePath : string
$sessionName : string
Return values
bool

wkx_session_close()

The close callback works like a destructor in classes and is executed after the session write callback has been called.

wkx_session_close() : bool

It is also invoked when session_write_close() is called. Return value should be true for success, false for failure.

Return values
bool

wkx_session_read()

The read callback must always return a session encoded (serialized) string, or an empty string if there is no data to read.

wkx_session_read(string $sessionId) : string

This callback is called internally by PHP when the session starts or when session_start() is called. Before this callback is invoked PHP will invoke the open callback.

The value this callback returns must be in exactly the same serialized format that was originally passed for storage to the write callback. The value returned will be unserialized automatically by PHP and used to populate the $_SESSION superglobal. While the data looks similar to serialize() please note it is a different format which is specified in the session.serialize_handler ini setting.

Parameters
$sessionId : string
Return values
string

wkx_session_write()

The write callback is called when the session needs to be saved and closed.

wkx_session_write(string $sessionId, string $sessionData) : bool

This callback receives the current session ID a serialized version the $_SESSION superglobal. The serialization method used internally by PHP is specified in the session.serialize_handler ini setting.

The serialized session data passed to this callback should be stored against the passed session ID. When retrieving this data, the read callback must return the exact value that was originally passed to the write callback.

This callback is invoked when PHP shuts down or explicitly when session_write_close() is called. Note that after executing this function PHP will internally execute the close callback.

Parameters
$sessionId : string
$sessionData : string
Return values
bool

wkx_session_destroy()

This callback is executed when a session is destroyed with session_destroy() or with session_regenerate_id() with the destroy parameter set to true.

wkx_session_destroy(string $sessionId) : bool

Return value should be true for success, false for failure.

Parameters
$sessionId : string
Return values
bool

wkx_session_gc()

The garbage collector callback is invoked internally by PHP periodically in order to purge old session data.

wkx_session_gc(int $maxSessionLifetime) : bool

The frequency is controlled by WIKINDX_SESSION_GC_FREQUENCY. The value of lifetime which is passed to this callback is a fallback set in session.gc_maxlifetime.

The real value of lifetime is:

  • WIKINDX_SESSION_AUTH_MAXLIFETIME for sessions which have been authenticated at least once.
  • WIKINDX_SESSION_AUTH_REMEMBERME_MAXLIFETIME for sessions which have been authenticated at least once with a "Remember Me" flag.
  • WIKINDX_SESSION_NOTAUTH_MAXLIFETIME for sessions which have never been authenticated.

Return value should be true for success, false for failure.

Parameters
$maxSessionLifetime : int

(in seconds)

Return values
bool

Search results