芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/public_html/cepali/analytics/lib.php
. /** * The interface library between the core and the subsystem. * * @package core_analytics * @copyright 2019 David Mudrák
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); /** * Implements the inplace editable feature. * * @param string $itemtype Type if the inplace editable element * @param int $itemid Identifier of the element * @param string $newvalue New value for the element * @return \core\output\inplace_editable */ function core_analytics_inplace_editable($itemtype, $itemid, $newvalue) { if ($itemtype === 'modelname') { \external_api::validate_context(context_system::instance()); require_capability('moodle/analytics:managemodels', \context_system::instance()); $model = new \core_analytics\model($itemid); $model->rename(clean_param($newvalue, PARAM_NOTAGS)); return $model->inplace_editable_name(); } }