My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
// An augmentor that uses a store's augment service to derive more information about a resource
require_once MORIARTY_DIR . 'store.class.php';

class PAGET_StoreAugmentor {
var $_config = array();
var $_storename;

function __construct(&$config, &$params) {
$this->_config = $config;
$this->_storename = $params['store'];
}

function process(&$desc, $request) {

$store = new Store($this->_storename);
$mb = $store->get_metabox();
$response = $mb->describe($desc->uri);
if ($response->is_success()) {
$desc->add_rdfxml($response->body);
}
}

}

Change log

r12 by m...@iandavis.com on Oct 5, 2008   Diff
Improved html output
Added SimplePropertyLabeller augmentor
Started work on StoreAugmentor - needs
moriarty changes to complete
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 602 bytes, 24 lines
Powered by Google Project Hosting