public function create($path, $label, $content, $params = array())
{
$full_path = $this->configuration['basepath'] . $path . '/' . $label;
if (false !== @file_put_contents($full_path, $content)) {
@chmod($full_path, 0644);
$r = array('basename' => $label, 'is_collection' => '0', 'size' => @filesize($full_path), 'date_created' => @filectime($full_path), 'content_type' => amy_mime_content_type($full_path), 'version' => 1);
$r['date_modified'] = $r['date_created'];
return $r;
}
return false;
}