owncloud add own filestorage
<p>I'm trying to hook owncloud into my cms. But I experience issues with the filestorage mounting. Does anyone have an example on how to create your own filestorage in an OwnCloud App.</p>

<p>I currently have the code below in a custom, active app (a different part allows to log CMS users to log in, which works):</p>

<pre><code>class OC_Filestorage_HYN extends OC_Filestorage_Local {
    public function __construct($arguments) {
        global $SiteVisitor,$MultiSite;
        if( $SiteVisitor -&gt; loggedin() &amp;&amp; $SiteVisitor -&gt; get_right( "owner" ) &amp;&amp; defined("HYN_MS_DIR") &amp;&amp; is_dir(HYN_MS_DIR) ) {
            $this -&gt; datadir = HYN_MS_DIR;
        }
        return false;

    }
    public function mkdir($path){
        return false;
    }
    public function rmdir($path){
        return false;
    }
}

OC_Filesystem::clearMounts();
/**
*   @param 1: Class to handle Filestorage requests
*   @param 2: array of options
*   @param 3: mountpoint eg how to enter this storage in the view
*/
OC_Filesystem::mount( "OC_Filestorage_HYN" , array() , "/" );
</code></pre>

<p>Ps couldn't create an owncloud tag..</p>
