You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PlexShare/fuel/core/classes/lang/ini.php

36 lines
714 B

7 years ago
<?php
namespace Fuel\Core;
/**
* INI Lang file parser
*/
class Lang_Ini extends \Lang_File
{
protected $ext = '.ini';
/**
* Loads in the given file and parses it.
*
* @param string $file File to load
* @return array
*/
protected function load_file($file)
{
$contents = $this->parse_vars(file_get_contents($file));
return parse_ini_string($contents, true);
}
/**
* Returns the formatted language file contents.
*
* @param array $contents language array
* @return string formatted language file contents
* @throws \LangException
*/
protected function export_format($contents)
{
throw new \LangException('Saving lang to ini is not supported at this time');
}
}