You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
richdocuments/lib/filter.php

38 lines
707 B
PHP

<?php
/**
* ownCloud - Documents App
*
* @author Victor Dubiniuk
* @copyright 2013 Victor Dubiniuk victor.dubiniuk@gmail.com
*
* This file is licensed under the Affero General Public License version 3 or
* later.
*/
namespace OCA\Documents;
class Filter {
public static function read($content, $mimetype){
$data = array(
'mimetype' => $mimetype,
'content' => $content
);
\OCP\Util::emitHook('\OCA\Documents\Filter', 'read', $data);
return $data;
}
public static function write($content, $mimetype){
$data = array(
'mimetype' => $mimetype,
'content' => $content
);
\OCP\Util::emitHook('\OCA\Documents\Filter', 'write', $data);
return $data;
}
}