id = ""; //attributes which are handled by external datasources $this->name = ""; $this->title = ""; $this->resources = array(); $this->author = ""; $this->author_email = ""; $this->maintainer = ""; $this->maintainer_email = ""; $this->licence_id = ""; $this->tags = "";//list $this->notes = ""; $this->extras = "";//{ Name-String: String, ... } } } public function toSomething ($xml) { return $xml; } } class ckanGroup { var $id; var $name; var $title; var $packages; function __construct() { //initialize empty ckanGroup object //attributes which are handled by ckan itself //$this->id = ""; //attributes which are handled by external datasources $this->name = ""; $this->title = ""; $this->packages = "";//list of datasets(packages) } public function toSomething ($xml) { return $xml; } } ?>