[svn r16209] Added method to set index terms at the learning path level

skala
Yannick Warnier 17 years ago
parent 4942bb72df
commit e2247a6ff8
  1. 14
      main/newscorm/learnpath.class.php

@ -3567,7 +3567,19 @@ class learnpath {
return true;
}
/**
* Set index terms for all items in this path
* @param string Comma-separated list of terms
* @return boolean False on error, true otherwise
*/
function set_terms($terms) {
if ( empty($terms) ) return false;
foreach ( $this->items as $item ) {
$item->set_terms($terms);
}
return true;
}
/**
* Sets the theme of the LP (local/remote) (and save)
* @param string Optional string giving the new theme of this learnpath

Loading…
Cancel
Save