public static function buildTree(core_kernel_classes_Resource $resource, core_kernel_classes_Property $property) {
		$tree = new self($resource, $property);
		
		$range = $property->getRange();
		$tree->setData('rootNode',		$range->getUri());
		$tree->setData('dataUrl',		_url('getData', 'GenerisTree', 'tao'));
		$tree->setData('saveUrl',		_url('setValues', 'GenerisTree', 'tao'));
		
		$values = $resource->getPropertyValues($property);
		$tree->setData('values', $values);
		$openNodeUris = TreeHelper::getNodesToOpen($values, $range);
		$tree->setData('openNodes',		$openNodeUris);
		return $tree;
	}
public static function buildTree(core_kernel_classes_Resource $resource, core_kernel_classes_Property $property) {
		$tree = new self($resource, $property);
		
		$range = $property->getRange();
		$tree->setData('rootNode',		$range->getUri());
		$tree->setData('dataUrl',		_url('getData', 'GenerisTree', 'tao'));
		$tree->setData('saveUrl',		_url('setValues', 'GenerisTree', 'tao'));
		
		$values = $resource->getPropertyValues($property);
		$tree->setData('values', $values);
		$openNodeUris = TreeHelper::getNodesToOpen($values, $range);
		$tree->setData('openNodes',		$openNodeUris);
		return $tree;
	}
public static function buildTree ( core_kernel_classes_Resource $ resource , core_kernel_classes_Property $ property ) { $ tree = new self ( $ resource , $ property ) ; $ range = $ property -> getRange ( ) ; $ tree -> setData ( 'rootNode' , $ range -> getUri ( ) ) ; $ tree -> setData ( 'dataUrl' , _url ( 'getData' , 'GenerisTree' , 'tao' ) ) ; $ tree -> setData ( 'saveUrl' , _url ( 'setValues' , 'GenerisTree' , 'tao' ) ) ; $ values = $ resource -> getPropertyValues ( $ property ) ; $ tree -> setData ( 'values' , $ values ) ; $ openNodeUris = TreeHelper :: getNodesToOpen ( $ values , $ range ) ; $ tree -> setData ( 'openNodes' , $ openNodeUris ) ; return $ tree ; }
Generates a form to define the values of a specific property for a resource

@param core_kernel_classes_Resource $resource
@param core_kernel_classes_Property $property
@return tao_helpers_form_GenerisTreeForm
Generates a form to define the values of a specific property for a resource