uri = $uri; $this->properties = array(); $this->file_path = str_replace( VOSPACE_ROOT, FILE_SYSTEM_ROOT, $uri ); $this->endpoint = str_replace( VOSPACE_ROOT, HTTP_ROOT, $uri ); } function populateProperties($detail = "min"){ // Tells the node to fill in it's properties values. // File or directory had better exist! global $provided_properties; $f_stats = stat($this->file_path); $this->properties = $provided_properties; $this->properties[0]["_"] = $f_stats["size"]; $this->properties[1]["_"] = DATA_OWNER; $this->properties[2]["_"] = $f_stats["mtime"]; $this->properties[3]["_"] = $f_stats["ctime"]; } function exists(){ if( file_exists( $this->file_path ) ) return True; return False; } function getView(){ return array('uri' => 'ivo://net.ivoa.vospace/views#identity', 'original'=>True); } function getProtocols(){ return array('endpoint' => $this->endpoint, 'uri' => 'ivo://net.ivoa.vospace/protocols#http-client'); } } ?>