<?php
use Sabre\DAV;

/**
 * Tine 2.0
 *
 * @package     Felamimail
 * @subpackage  Frontend
 * @license     http://www.gnu.org/licenses/agpl.html AGPL Version 3
 * @author      Philipp Schüle <p.schuele@metaways.de>
 * @copyright   Copyright (c) 2012 Metaways Infosystems GmbH (http://www.metaways.de)
 *
 */

/**
 * class to handle containers in WebDAV tree
 *
 * @package     Felamimail
 * @subpackage  Frontend
 */
class Felamimail_Frontend_WebDAV_Container extends Tinebase_Frontend_WebDAV_Container
{
    protected $_applicationName = 'Felamimail';
    
    /**
    * webdav file class
    *
    * @var string
    */
    protected $_fileClass = 'Felamimail_Frontend_WebDAV_File';
    
    /**
     * webdav directory class
     *
     * @var string
     */
    protected $_directoryClass = 'Felamimail_Frontend_WebDAV_Directory';
    
    /**
    * Creates a new subdirectory
    *
    * @param string $name
    * @throws Sabre\DAV\Exception\Forbidden
    * @return void
    */
    public function createDirectory($name)
    {
        throw new DAV\Exception\Forbidden('Forbidden to create folders here');
    }
}
