public function codeDigest($content) { $formula = $this->getAndCheckFolder(com_wiris_plugin_api_ConfigurationKeys::$FORMULA_FOLDER); $digest = com_wiris_system_Md5Tools::encodeString($content); $store = com_wiris_util_sys_Store::newStoreWithParent(com_wiris_util_sys_Store::newStore($formula), $digest . ".ini"); $store->write($content); return $digest; }
public function getFileStoreWithParent($parent, $digest, $extension) { return com_wiris_util_sys_Store::newStoreWithParent($parent, _hx_substr($digest, 4, null) . "." . $extension); }