<?php

class RootRegistry {

	var $Name = '';
	var $Templates = array();
	var $Properties = array();

	function __construct($name,$type=1) { 
		$this->setName($name);
		$this->loadRegistry($type);
	}

	function getName() {
		return $this->Name;
	}

	function setName($name) {
		$this->Name = $name;
	}

	function loadRegistry($type=1) {
		$Registry = loadObjectRegistry($this->Name,$type);
		$this->Templates = isset($Registry['Templates'])? $Registry['Templates'] : '';
		$this->Properties = isset($Registry['Properties'])? $Registry['Properties'] : '';
	}
}
?>