if (!$raw_daata === false) {
$data = @unserialize($raw_data);
if ($data !== false) {
- $this->_data = $data;
+ $this->data = $data;
} else {
$error = error_get_last();
Horde::logMessage(sprintf('Horde_Kolab_Server_file failed to read the database from %s. Error was: %s',
$this->_file, $error['message']), __FILE__,
__LINE__, PEAR_LOG_WARNING);
- $this->_data = array();
+ $this->data = array();
}
}
}
*/
protected function store()
{
- $raw_data = serialize($this->_data);
+ $raw_data = serialize($this->data);
$result = @file_put_contents($this->_file, $raw_data);
if ($result === false) {
$error = error_get_last();
public function clean()
{
unlink($this->_file);
- $this->_data = array();
- $this->store();
+ $this->data = array();
+ $this->store();
}
/**