MDL-53700 competency: Migrating comment related APIs to core

This commit is contained in:
Frederic Massart 2016-04-06 17:52:41 +08:00
parent 7160fb19d7
commit 4aa6acb22a
8 changed files with 261 additions and 258 deletions

View file

@ -200,7 +200,7 @@ class plan extends persistent {
$comment = new comment((object) array(
'client_id' => 'plancommentarea' . $this->get_id(),
'context' => $this->get_context(),
'component' => 'tool_lp',
'component' => 'competency', // This cannot be named 'core_competency'.
'itemid' => $this->get_id(),
'area' => 'plan',
'showcount' => true,

View file

@ -195,7 +195,7 @@ class user_competency extends persistent {
$comment = new comment((object) array(
'context' => $this->get_context(),
'component' => 'tool_lp',
'component' => 'competency', // This cannot be named 'core_competency'.
'itemid' => $this->get_id(),
'area' => 'user_competency',
'showcount' => true,