public function read($type, $uuid)
    {
        switch ($type) {
            case 'contact':
                $type = 'contacts';
                break;
            case 'flow':
                $type = 'flows';
                break;
            case 'flow_property':
                $type = 'flowproperties';
                break;
            case 'process':
                $type = 'processes';
                break;
            case 'source':
                $type = 'sources';
                break;
            case 'unit_group':
                $type = 'unitgroups';
                break;
        }
        $this->setXml(file_get_contents($this->dataRootDir.$type.'/'.$uuid.'?format=xml'));
    }
public function read($type, $uuid)
    {
        switch ($type) {
            case 'contact':
                $type = 'contacts';
                break;
            case 'flow':
                $type = 'flows';
                break;
            case 'flow_property':
                $type = 'flowproperties';
                break;
            case 'process':
                $type = 'processes';
                break;
            case 'source':
                $type = 'sources';
                break;
            case 'unit_group':
                $type = 'unitgroups';
                break;
        }
        $this->setXml(file_get_contents($this->dataRootDir.$type.'/'.$uuid.'?format=xml'));
    }
public function read ( $ type , $ uuid ) { switch ( $ type ) { case 'contact' : $ type = 'contacts' ; break ; case 'flow' : $ type = 'flows' ; break ; case 'flow_property' : $ type = 'flowproperties' ; break ; case 'process' : $ type = 'processes' ; break ; case 'source' : $ type = 'sources' ; break ; case 'unit_group' : $ type = 'unitgroups' ; break ; } $ this -> setXml ( file_get_contents ( $ this -> dataRootDir . $ type . '/' . $ uuid . '?format=xml' ) ) ; }
Read the file and provide the content

@param string $type
@param string $uuid
Read the file and provide the content