Permalink
Browse files

MDL-38147 Created class coursecat, added cache definition and lang st…

…rings
  • Loading branch information...
marinaglancy committed Feb 20, 2013
1 parent 373a8e0 commit b33389d22884fb65d811e6075915ff8be8513405
Showing with 1,314 additions and 3 deletions.
  1. +1 −1 cohort/lib.php
  2. +1 −0 lang/en/cache.php
  3. +3 −0 lang/en/error.php
  4. +1,298 −0 lib/coursecatlib.php
  5. +3 −0 lib/datalib.php
  6. +6 −0 lib/db/caches.php
  7. +2 −2 lib/questionlib.php
View
@@ -102,7 +102,7 @@ function cohort_delete_cohort($cohort) {
* Somehow deal with cohorts when deleting course category,
* we can not just delete them because they might be used in enrol
* plugins or referenced in external systems.
- * @param stdClass $category
+ * @param stdClass|coursecat $category
* @return void
*/
function cohort_delete_category($category) {
View
@@ -36,6 +36,7 @@
$string['cacheconfig'] = 'Configuration';
$string['cachedef_calendar_subscriptions'] = 'Calendar subscriptions';
$string['cachedef_config'] = 'Config settings';
+$string['cachedef_coursecat'] = 'Course categories';
$string['cachedef_databasemeta'] = 'Database meta information';
$string['cachedef_eventinvalidation'] = 'Event invalidation';
$string['cachedef_groupdata'] = 'Course group information';
View
@@ -105,6 +105,7 @@
$string['cannotmigratedatacomments'] = 'Cannot migrate data module comments';
$string['cannotmodulename'] = 'Cannot get the module name in build navigation';
$string['cannotmoduletype'] = 'Cannot get the module type in build navigation';
+$string['cannotmovecategory'] = 'Cannot move category';
$string['cannotmoverolewithid'] = 'Cannot move role with ID {$a}';
$string['cannotopencsv'] = 'Cannot open CSV file';
$string['cannotopenfile'] = 'Cannot open file ({$a})';
@@ -159,7 +160,9 @@
$string['cannotviewreport'] = 'You cannot view this report';
$string['cannotwritefile'] = 'Cannot write to file ({$a})';
$string['categoryerror'] = 'Category error';
+$string['categorynamerequired'] = 'Category name is required';
$string['categorytoolong'] = 'Category name too long';
+$string['categoryidnumbertaken'] = 'ID number is already used for another category';
$string['commentmisconf'] = 'Comment ID is misconfigured';
$string['componentisuptodate'] = 'Component is up-to-date';
$string['confirmsesskeybad'] = 'Sorry, but your session key could not be confirmed to carry out this action. This security feature prevents against accidental or malicious execution of important functions in your name. Please make sure you really wanted to execute this function.';
Oops, something went wrong.

0 comments on commit b33389d

Please sign in to comment.