﻿Linkview 2: a Sample Web Application
Authored by: Nick Nagel
and Dated:   2010.09.23

RATIONALE AND OVERVIEW

I created this Web app to provide sample code in support of an application for employment as Web Developer. The requirements of the application were given as follows:

"The example code should be a file or files from a project that involves (but not limited to) retrieving data from a source (DB, file...etc.), manipulating that data, and then presenting that data as an interface (web page, XML file...etc.)."

The present application retrieves XML formatted data from a REST-style web-service, parses the XML using the DOM and presents the data in list format.

This document provides overview documentation and developer notes for the app. Additional documentation is available on request. Please note that I've deployed the application to my server where it can be tested and further evaluated. The application is accessable at:

  http://nicknagel.com/linkview3/index.php

FILES

The application comprises a small set of PHP pages and classes. This listing provides an overview of the key files.

- index.php ~~ The application launch page. Comprises a form to launch the service.

- LinkView.php ~~ The application view page. Purely procedural, the page contains the view logic and invokes the request dispatcher.

- RequestDispatcher.php ~~ Defines a PHP object responsible for bundling and issuing requests and requesting caching of results.

- RequestCache.php ~~ A simple PHP caching object for performance optimization and security.

- PHP_HTTP_Proxy.php ~~ this is a simple proxy encapsulating PHP HTTP requests (I designed it for cross-domain AJAX apps but re-use it here).

Further documentation on each of these pages and classes can be found in the associated source code files. PHP class files are bundled in the 'classes' directory.

Documentation on the Yahoo! Site search service is available here:

  http://developer.yahoo.com/search/siteexplorer/V1/inlinkData.html

