Difference between revisions of "Developer Manual"

From ARK
Jump to: navigation, search
(API Documentation)
(API Documentation)
Line 71: Line 71:
  
 
[[describeFrags]] - this provides a list of all the different types of data available within the ARK instance (it lists the different 'types' of dataclass available
 
[[describeFrags]] - this provides a list of all the different types of data available within the ARK instance (it lists the different 'types' of dataclass available
 +
 +
[[describeFilters]] - this provides a list of all available filters
  
 
[[getItems]] - this returns an array of items of a specified module
 
[[getItems]] - this returns an array of items of a specified module

Revision as of 15:16, 15 November 2013

The developer manual is aimed at people who will be contributing to the project and to a certain extent to those who intend to hack ARK to use it for their own ends. As a general rule, if you find yourself doing extensive hacking, please let us know as we would be happy to consider adding new code to the project.

If you don't know why you are reading this documentation, you are probably looking in the wrong part of the manual. For information on installation and administration see the administrator section of the manual.

Work to create developer documentation including migration of old documentation (Ticket #122) is ongoing (as of 11th Feb 2009) but in the meantime please contact a member of the ARK Development Team if you can't find what you are looking for within these pages.

Background Reading

ARK model

An incomplete guide to the overall structure of ARK, its file structures etc.

ARK Data Storage

An overview of the ARK data storage model

Filters

An overview of filters and how they work (theoretical)

Standards and Guidance

Coding standards are simple and follow the PEAR system rigidly without exception. See the page blow for further detail. Some further guidance is given below to try to help you build new code in a way that fits into the overall ARK style. This material is incomplete at this stage.

Coding Standards

An overview of the coding standards with a link to PEAR.

Adding a New Page

How to add a new page to the system

Data Entry Pages

How the data entry pages fit together. Possibly needs to be re-written as something more generic

Page Header Block

example code for a page header block. Possibly needs to be made into a more generic code snippets page

Developing Subforms

A brief guide to developing new subforms

Accessing User Information

How to get access to the logged in user's information which is held in the SESSION

ARK log

An overview of the log system with detailed notes (note that this system is currently not fully working)

Markup and Aliases

An overview and guide

Error and Message Handling

An overview and guide

Configuration Settings for Developers

An overview for developers of the config system

Developer Documentation

The code is documented in detail within the header blocks for each file and the documentation blocks for each function. This doucmentation is in the process of being categorised and grouped for easier reading, but can be consulted at:

[PhpDocumenter Output]

Detailed reference material for every function and script in the system - NB this is for ARK v0.7, and has not yet been updated for the latest release(s).

[PhpDocumenter]

Some info on the software used to create the documentation from the header blocks

API Documentation

As of v1.1 it is possible to access ARK using an API via a URL - which currently responds with a JSON object.

The following methods can be used:

describeItems - this provides a list of all the types of modules available

describeFrags - this provides a list of all the different types of data available within the ARK instance (it lists the different 'types' of dataclass available

describeFilters - this provides a list of all available filters

getItems - this returns an array of items of a specified module

getFrags - this returns an array of data frags attached to a specified item

getFilter - this returns the result of a saved filter or a free-text search

transcludeFilter - this returns a fully rendered HTML representation of a filter result

XMLParser - this is mainly used internally by the spatial elements of ARK to retrieve and present GML data