Can you explain the layout of the code?

Asked by Chris Beer

Question information

Language:
English Edit question
Status:
Answered
For:
bVault Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Chris Beer (chris-beer) said :
#1

The bvault code adopts the MVC structure provided by the Zend Framework, with one notable exception. Library classes are kept in ./library, rather than as an ./application/model. This reflects the loosely joined nature of the libraries and the interface, which heavily uses Zend Framework methodology.

------------------
./application
------------------

This is the heart of the MVC framework. The bootstrap.php file is the entry point to the application.

------------------
./html
------------------

This is the htdocs root of the application and holds all the static files (css, js, etc) of the application. The .htaccess file here provides mod_rewrite rules to direct all requests to index.php (except when a file actually exists at that url)

------------------
./library
------------------

There are four distinct libraries that make up the core of bvault: Fedora/, which provides access to the fedora repository APIs (and distributed/federated capabilities); Graph/ offers a force-directed layout library; Vault/ is the core of bVault libraries and provides some classes for Annotations, Tags, Nodes (records), Searching, and Users.

------------------
./tools
------------------

These are some misc. tools built to help with the site. Some of the scripts here are waiting to be refactored into the application or libraries, while others are provided for general interest. Most are directed towards ingest-time use, but some (such as graph/json.php) are actively being used.

Revision history for this message
Chris Beer (chris-beer) said :
#2

Can you help with this problem?

Provide an answer of your own, or ask Chris Beer for more information if necessary.

To post a message you must log in.