addContents(
array(
'collection' => array(
'file.txt' => 'Some text content.',
'subdir' => array(
'file.html' => '
Test
',
'file.xml' => "\n",
),
),
'secure_collection' => array(
'file.txt' => 'Some text content.',
'subdir' => array(
'file.html' => 'Test
',
'file.xml' => "\n",
),
),
'file.xml' => "\n",
'file.bin' => "\0ยง\"$%&",
)
);
$backend->setProperty(
'/collection/file.txt',
new ezcWebdavGetContentTypeProperty(
'text/plain', 'utf-8'
)
);
$backend->setProperty(
'/collection/subdir/file.html',
new ezcWebdavGetContentTypeProperty(
'text/html', 'utf-8'
)
);
$backend->setProperty(
'/collection/subdir/file.xml',
new ezcWebdavGetContentTypeProperty(
'text/xml', 'utf-8'
)
);
$backend->setProperty(
'/file.xml',
new ezcWebdavGetContentTypeProperty(
'text/xml', 'utf-8'
)
);
$backend->setProperty(
'/file.bin',
new ezcWebdavGetContentTypeProperty(
'application/octet-stream', 'utf-8'
)
);
$backend->setProperty(
'/secure_collection/file.txt',
new ezcWebdavGetContentTypeProperty(
'text/plain', 'utf-8'
)
);
$backend->setProperty(
'/secure_collection/subdir/file.html',
new ezcWebdavGetContentTypeProperty(
'text/html', 'utf-8'
)
);
$backend->setProperty(
'/secure_collection/subdir/file.xml',
new ezcWebdavGetContentTypeProperty(
'text/xml', 'utf-8'
)
);
return $backend;
?>