public function getDataPath()
	{
		// make sure we have file
		if (!$file = $this->get('file'))
		{
			throw new Exception(__METHOD__ . '(); ' . Lang::txt('Missing required data file.'));
		}

		// build path to file
		$filePath = $this->fileSpacePath() . DS . $file;

		// make sure file exists
		if (!file_exists($filePath))
		{
			throw new Exception(__METHOD__ . '(); ' . Lang::txt('Data file does not exist at path: %s.', $filePath));
		}

		// make sure we can read the file
		if (!is_readable($filePath))
		{
			throw new Exception(__METHOD__ . '(); ' . Lang::txt('Data file not readable.'));
		}

		return $filePath;
	}
public function getDataPath()
	{
		// make sure we have file
		if (!$file = $this->get('file'))
		{
			throw new Exception(__METHOD__ . '(); ' . Lang::txt('Missing required data file.'));
		}

		// build path to file
		$filePath = $this->fileSpacePath() . DS . $file;

		// make sure file exists
		if (!file_exists($filePath))
		{
			throw new Exception(__METHOD__ . '(); ' . Lang::txt('Data file does not exist at path: %s.', $filePath));
		}

		// make sure we can read the file
		if (!is_readable($filePath))
		{
			throw new Exception(__METHOD__ . '(); ' . Lang::txt('Data file not readable.'));
		}

		return $filePath;
	}
public function getDataPath ( ) { // make sure we have file if ( ! $ file = $ this -> get ( 'file' ) ) { throw new Exception ( __METHOD__ . '(); ' . Lang :: txt ( 'Missing required data file.' ) ) ; } // build path to file $ filePath = $ this -> fileSpacePath ( ) . DS . $ file ; // make sure file exists if ( ! file_exists ( $ filePath ) ) { throw new Exception ( __METHOD__ . '(); ' . Lang :: txt ( 'Data file does not exist at path: %s.' , $ filePath ) ) ; } // make sure we can read the file if ( ! is_readable ( $ filePath ) ) { throw new Exception ( __METHOD__ . '(); ' . Lang :: txt ( 'Data file not readable.' ) ) ; } return $ filePath ; }
Return path to imports data file

@return  string
Return path to imports data file