Extends
lithium\core\StaticObjectSource
public static function save($data = array()) {
static::find('all');
$file = static::$path;
$fp = !file_exists($file) ? fopen($file, 'x+') : fopen($file, 'a+');
$result = false;
$data = array_diff($data, static::$_tells);
foreach ($data as $key => $value) {
$result = fwrite($fp, "{$key}=\"{$value}\"\n");
static::$_tells[$key] = $value;
}
fclose($fp);
if ($result) {
return true;
}
return false;
}