public function load()
	{
		$filename = $this->getFile();
		if (!file_exists($filename))
			return;

		$json = file_get_contents($filename);
		if (strlen($json) == 0)
			return;

		$data = $this->decode($json);
		if ($data === null)
			throw new Exception('Error while trying to decode ' . $filename . '.');

		$this->data = $data;

		if (!$this->verify())
			throw new Exception($filename . ' failed checksum validation.');
	}
public function load()
	{
		$filename = $this->getFile();
		if (!file_exists($filename))
			return;

		$json = file_get_contents($filename);
		if (strlen($json) == 0)
			return;

		$data = $this->decode($json);
		if ($data === null)
			throw new Exception('Error while trying to decode ' . $filename . '.');

		$this->data = $data;

		if (!$this->verify())
			throw new Exception($filename . ' failed checksum validation.');
	}
public function load ( ) { $ filename = $ this -> getFile ( ) ; if ( ! file_exists ( $ filename ) ) return ; $ json = file_get_contents ( $ filename ) ; if ( strlen ( $ json ) == 0 ) return ; $ data = $ this -> decode ( $ json ) ; if ( $ data === null ) throw new Exception ( 'Error while trying to decode ' . $ filename . '.' ) ; $ this -> data = $ data ; if ( ! $ this -> verify ( ) ) throw new Exception ( $ filename . ' failed checksum validation.' ) ; }
Loads registry data into memory
@throws Exception
Loads registry data into memory