@ -726,11 +726,11 @@ class learnpath
/**
* Static admin function allowing addition of a learnpath to a course.
*
* @param string Course c ode
* @param string Learnpath name
* @param string Learnpath description string, if provided
* @param string Type of learnpath (default = 'guess', others = 'dokeos', 'aicc',...)
* @param string Type of files origin (default = 'zip', others = 'dir','web_dir',...)
* @param string $courseC ode
* @param string $ name
* @param string $description
* @param string $learnpath
* @param string $origin
* @param string $zipname Zip file containing the learnpath or directory containing the learnpath
* @param string $publicated_on
* @param string $expired_on
@ -2128,8 +2128,8 @@ class learnpath
* has been written to test a zip file. If not a zip, the function will return the
* default return value: ''
*
* @param string the path to the file
* @param string the original name of the file
* @param string $file_path the path to the file
* @param string $file_name the original name of the file
*
* @return string 'scorm','aicc','scorm2004','dokeos' or '' if the package cannot be recognized
*/
@ -2380,10 +2380,10 @@ class learnpath
* of its prerequisite is completed, considering the time availability and
* the LP visibility.
*
* @param int $lp_id
* @param int $student_id
* @param string Course code (optional)
* @param int $sessionId
* @param int $lp_id
* @param int $student_id
* @param null $courseCode
* @param int $sessionId
*
* @return bool
*/
@ -2774,7 +2774,7 @@ class learnpath
* Prefix all item IDs that end-up in the prerequisites string by "ITEM_" to use the
* same rule as the scorm_export() method.
*
* @param int Item ID
* @param int $item_id Item ID
*
* @return string Prerequisites string ready for the export as SCORM
*/
@ -2855,8 +2855,8 @@ class learnpath
/**
* Returns the XML DOM document's node.
*
* @param resource Reference to a list of objects to search for the given ITEM_*
* @param string The identifier to look for
* @param resource $children Reference to a list of objects to search for the given ITEM_*
* @param string $id The identifier to look for
*
* @return mixed The reference to the element found with that identifier. False if not found
*/
@ -2905,10 +2905,10 @@ class learnpath
* Return the number of interactions for the given learnpath Item View ID.
* This method can be used as static.
*
* @param int Item View ID
* @param int course id
* @param int $lp_iv_id Item View ID
* @param int $course_id course id
*
* @return int Number of interactions
* @return int
*/
public static function get_interactions_count_from_db($lp_iv_id, $course_id)
{
@ -2932,7 +2932,7 @@ class learnpath
* Return the interactions as an array for the given lp_iv_id.
* This method can be used as static.
*
* @param int Learnpath Item View ID
* @param int $lp_iv_id Learnpath Item View ID
*
* @return array
*
@ -2986,7 +2986,8 @@ class learnpath
* Return the number of objectives for the given learnpath Item View ID.
* This method can be used as static.
*
* @param int Item View ID
* @param int $lp_iv_id Item View ID
* @param int $course_id Course ID
*
* @return int Number of objectives
*/
@ -3116,7 +3117,7 @@ class learnpath
/**
* Gets the learning path type.
*
* @param bool Return the name? If false, return the ID. Default is false.
* @param bool $get_name Return the name? If false, return the ID. Default is false.
*
* @return mixed Type ID or name, depending on the parameter
*/
@ -3165,8 +3166,9 @@ class learnpath
* Gets a flat list of item IDs ordered for display (level by level ordered by order_display)
* This method can be used as abstract and is recursive.
*
* @param int Learnpath ID
* @param int Parent ID of the items to look for
* @param int $lp Learnpath ID
* @param int $parent Parent ID of the items to look for
* @param int $course_id
*
* @return array Ordered list of item IDs (empty array on error)
*/
@ -3220,7 +3222,9 @@ class learnpath
/**
* Uses the table generated by get_toc() and returns an HTML-formattedstring ready to display.
*
* @return string HTML TOC ready to display
* @param $tree
*
* @return array HTML TOC ready to display
*/
public function getParentToc($tree)
{
@ -3294,7 +3298,11 @@ class learnpath
/**
* Uses the table generated by get_toc() and returns an HTML-formattedstring ready to display.
*
* @return string HTML TOC ready to display
* @param array $tree
* @param int $id
* @param bool $parent
*
* @return array HTML TOC ready to display
*/
public function getChildrenToc($tree, $id, $parent = true)
{
@ -3364,7 +3372,7 @@ class learnpath
*
* @param array $toc_list
*
* @return string HTML TOC ready to display
* @return array HTML TOC ready to display
*/
public function getListArrayToc($toc_list = [])
{
@ -3513,8 +3521,9 @@ class learnpath
/**
* Gets a link to the resource from the present location, depending on item ID.
*
* @param string $type Type of link expected
* @param int $item_id Learnpath item ID
* @param string $type Type of link expected
* @param int $item_id Learnpath item ID
* @param bool $provided_toc
*
* @return string $provided_toc Link to the lp_item resource
*/
@ -3842,7 +3851,7 @@ class learnpath
/**
* Gets the latest usable view or generate a new one.
*
* @param int Optional attempt number. If none given, takes the highest from the lp_view table
* @param int $attempt_num Optional attempt number. If none given, takes the highest from the lp_view table
*
* @return int DB lp_view id
*/
@ -3961,10 +3970,10 @@ class learnpath
/**
* Moves an item up and down at its level.
*
* @param int Item to move up and down
* @param string Direction 'up' or 'down'
* @param int $id Item to move up and down
* @param string $direction Direction 'up' or 'down'
*
* @return int New display order, or false on error
* @return bool|int
*/
public function move_item($id, $direction)
{
@ -4125,7 +4134,7 @@ class learnpath
* Move a LP up (display_order).
*
* @param int $lp_id Learnpath ID
* @param int $categoryId
* @param int $categoryId Category ID
*
* @return bool
*/
@ -4186,7 +4195,7 @@ class learnpath
* Move a learnpath down (display_order).
*
* @param int $lp_id Learnpath ID
* @param int $categoryId
* @param int $categoryId Category ID
*
* @return bool
*/
@ -4279,7 +4288,7 @@ class learnpath
* Open a resource = initialise all local variables relative to this resource. Depending on the child
* class, this might be redefined to allow several behaviours depending on the document type.
*
* @param int Resource ID
* @param int $id Resource ID
*/
public function open($id)
{
@ -4304,8 +4313,8 @@ class learnpath
*
* @param int $itemId Optional item ID. If none given, uses the current open item.
*
* @return bool true if prerequisites are matched, false otherwise -
* Empty string if true returned, prerequisites string otherwise
* @return bool true if prerequisites are matched, false otherwise - Empty string if true returned, prerequisites
* string otherwise
*/
public function prerequisites_match($itemId = null)
{
@ -4397,8 +4406,8 @@ class learnpath
* to normal users.
* Can be used as abstract.
*
* @param int Learnpath ID
* @param int New visibility
* @param int $lp_id Learnpath ID
* @param int $set_visibility New visibility
*
* @return bool
*/
@ -4426,6 +4435,11 @@ class learnpath
* @param int $id
* @param int $visibility
*
* @throws \Doctrine\ORM\NonUniqueResultException
* @throws \Doctrine\ORM\ORMException
* @throws \Doctrine\ORM\OptimisticLockException
* @throws \Doctrine\ORM\TransactionRequiredException
*
* @return bool
*/
public static function toggleCategoryVisibility($id, $visibility = 1)
@ -4560,6 +4574,11 @@ class learnpath
* @param int $id
* @param int $setVisibility
*
* @throws \Doctrine\ORM\NonUniqueResultException
* @throws \Doctrine\ORM\ORMException
* @throws \Doctrine\ORM\OptimisticLockException
* @throws \Doctrine\ORM\TransactionRequiredException
*
* @return bool
*/
public static function toggleCategoryPublish($id, $setVisibility = 1)
@ -4759,8 +4778,7 @@ class learnpath
/**
* Restart the whole learnpath. Return the URL of the first element.
* Make sure the results are saved with anoter method. This method should probably be
* redefined in children classes.
* Make sure the results are saved with anoter method. This method should probably be redefined in children classes.
* To use a similar method statically, use the create_new_attempt() method.
*
* @return bool
@ -5003,10 +5021,11 @@ class learnpath
/**
* Sets the encoding.
*
* @param string New encoding
* @param string $enc New encoding
*
* @return bool
* TODO (as of Chamilo 1.8.8): Check in the future whether this method is needed.
*
* @todo (as of Chamilo 1.8.8): Check in the future whether this method is needed.
*/
public function set_encoding($enc = 'UTF-8')
{
@ -5037,7 +5056,7 @@ class learnpath
* Sets the JS lib setting in the database directly.
* This is the JavaScript library file this lp needs to load on startup.
*
* @param string Proximity setting
* @param string $lib Proximity setting
*
* @return bool True on update success. False otherwise.
*/
@ -5064,7 +5083,7 @@ class learnpath
/**
* Sets the name of the LP maker (publisher) (and save).
*
* @param string Optional string giving the new content_maker of this learnpath
* @param string $name Optional string giving the new content_maker of this learnpath
*
* @return bool True
*/
@ -5137,8 +5156,8 @@ class learnpath
/**
* Set index specified prefix terms for all items in this path.
*
* @param string Comma-separated list of terms
* @param string Xapian term prefix
* @param string $terms_string Comma-separated list of terms
* @param string $prefix Xapian term prefix
*
* @return bool False on error, true otherwise
*/
@ -5215,7 +5234,7 @@ class learnpath
/**
* Sets the theme of the LP (local/remote) (and save).
*
* @param string Optional string giving the new theme of this learnpath
* @param string $name Optional string giving the new theme of this learnpath
*
* @return bool Returns true if theme name is not empty
*/
@ -5241,7 +5260,7 @@ class learnpath
/**
* Sets the image of an LP (and save).
*
* @param string Optional string giving the new image of this learnpath
* @param string $name Optional string giving the new image of this learnpath
*
* @return bool Returns true if theme name is not empty
*/
@ -5268,7 +5287,7 @@ class learnpath
/**
* Sets the author of a LP (and save).
*
* @param string Optional string giving the new author of this learnpath
* @param string $name Optional string giving the new author of this learnpath
*
* @return bool Returns true if author's name is not empty
*/
@ -5293,7 +5312,7 @@ class learnpath
/**
* Sets the hide_toc_frame parameter of a LP (and save).
*
* @param int 1 if frame is hidden 0 then else
* @param int $hide 1 if frame is hidden 0 then else
*
* @return bool Returns true if author's name is not empty
*/
@ -5323,7 +5342,7 @@ class learnpath
/**
* Sets the prerequisite of a LP (and save).
*
* @param int integer giving the new prerequisite of this learnpath
* @param int $prerequisite integer giving the new prerequisite of this learnpath
*
* @return bool returns true if prerequisite is not empty
*/
@ -5348,7 +5367,7 @@ class learnpath
/**
* Sets the location/proximity of the LP (local/remote) (and save).
*
* @param string Optional string giving the new location of this learnpath
* @param string $name Optional string giving the new location of this learnpath
*
* @return bool True on success / False on error
*/
@ -5378,7 +5397,7 @@ class learnpath
/**
* Sets the previous item ID to a given ID. Generally, this should be set to the previous 'current' item.
*
* @param int DB ID of the item
* @param int $id DB ID of the item
*/
public function set_previous_item($id)
{
@ -5421,6 +5440,8 @@ class learnpath
*
* @param string $expired_on Optional string giving the new author of this learnpath
*
* @throws \Doctrine\ORM\OptimisticLockException
*
* @return bool Returns true if author's name is not empty
*/
public function set_expired_on($expired_on)
@ -5461,6 +5482,8 @@ class learnpath
*
* @param string $publicated_on Optional string giving the new author of this learnpath
*
* @throws \Doctrine\ORM\OptimisticLockException
*
* @return bool Returns true if author's name is not empty
*/
public function set_publicated_on($publicated_on)
@ -5521,7 +5544,7 @@ class learnpath
/**
* Sets the object's error message.
*
* @param string Error message. If empty, reinits the error string
* @param string $error Error message. If empty, reinits the error string
*/
public function set_error_msg($error = '')
{
@ -6143,8 +6166,8 @@ class learnpath
}
/**
* @param string string $update_audio
* @param bool $drop_element_here
* @param string $update_audio
* @param bool $drop_element_here
*
* @return string
*/
@ -6182,7 +6205,7 @@ class learnpath
}
$this->tree_array($arrLP);
$arrLP = isset($this->arrMenu) ? $this->arrMenu : null ;
$arrLP = isset($this->arrMenu) ? $this->arrMenu : [] ;
unset($this->arrMenu);
$default_data = null;
$default_content = null;
@ -7221,6 +7244,9 @@ class learnpath
*
* @param int $item_id
*
* @throws Exception
* @throws HTML_QuickForm_Error
*
* @return string
*/
public function display_edit_item($item_id)
@ -7345,6 +7371,9 @@ class learnpath
* Function that displays a list with al the resources that
* could be added to the learning path.
*
* @throws Exception
* @throws HTML_QuickForm_Error
*
* @return bool
*/
public function display_resources()
@ -7415,7 +7444,10 @@ class learnpath
/**
* Displays a document by id.
*
* @param int $id
* @param int $id
* @param bool $show_title
* @param bool $iframe
* @param bool $edit_link
*
* @return string
*/
@ -7448,6 +7480,8 @@ class learnpath
* @param int $id Item ID if already exists
* @param mixed $extra_info Extra information (quiz ID if integer)
*
* @throws Exception
*
* @return string HTML form
*/
public function display_quiz_form($action = 'add', $id = 0, $extra_info = '')
@ -7506,7 +7540,7 @@ class learnpath
}
$this->tree_array($arrLP);
$arrLP = isset($this->arrMenu) ? $this->arrMenu : null ;
$arrLP = isset($this->arrMenu) ? $this->arrMenu : [] ;
unset($this->arrMenu);
$form = new FormValidator(
@ -7663,9 +7697,9 @@ class learnpath
/**
* Addition of Hotpotatoes tests.
*
* @param string A ction
* @param int Internal ID of the item
* @param mixed Extra information - can be an array with title and description indexes
* @param string $a ction
* @param int $id Internal ID of the item
* @param string $extra_info
*
* @return string HTML structure to display the hotpotatoes addition formular
*/
@ -7858,9 +7892,11 @@ class learnpath
/**
* Return the form to display the forum edit/add option.
*
* @param string Action (add/edit)
* @param int ID of the lp_item if already exists
* @param mixed Forum ID or title
* @param string $action
* @param int $id ID of the lp_item if already exists
* @param string $extra_info
*
* @throws Exception
*
* @return string HTML form
*/
@ -7918,7 +7954,7 @@ class learnpath
}
$this->tree_array($arrLP);
$arrLP = isset($this->arrMenu) ? $this->arrMenu : null ;
$arrLP = isset($this->arrMenu) ? $this->arrMenu : [] ;
unset($this->arrMenu);
if ($action == 'add') {
@ -8074,9 +8110,11 @@ class learnpath
/**
* Return HTML form to add/edit forum threads.
*
* @param string Action (add/edit)
* @param int Item ID if already exists in learning path
* @param mixed Extra information (thread ID if integer)
* @param string $action
* @param int $id Item ID if already exists in learning path
* @param string $extra_info
*
* @throws Exception
*
* @return string HTML form
*/
@ -8135,7 +8173,7 @@ class learnpath
}
$this->tree_array($arrLP);
$arrLP = isset($this->arrMenu) ? $this->arrMenu : null ;
$arrLP = isset($this->arrMenu) ? $this->arrMenu : [] ;
unset($this->arrMenu);
$form = new FormValidator(
@ -8301,11 +8339,14 @@ class learnpath
/**
* Return the HTML form to display an item (generally a dir item).
*
* @param string Item type (dir)
* @param string Title (optional, only when creating)
* @param string Action ('add'/'edit')
* @param int lp_item ID
* @param mixed Extra info
* @param string $item_type
* @param string $title
* @param string $action
* @param int $id
* @param string $extra_info
*
* @throws Exception
* @throws HTML_QuickForm_Error
*
* @return string HTML form
*/
@ -8506,7 +8547,10 @@ class learnpath
);
}
$renderer = $form->defaultRenderer();
$renderer->setElementTemplate('< br / > {label}< br / > {element}', 'content_lp');
$renderer->setElementTemplate(
'< br / > {label}< br / > {element}',
'content_lp'
);
$relative_prefix = '';
@ -8554,6 +8598,9 @@ class learnpath
* @param int $id ID of the lp_item (if already exists)
* @param mixed $extra_info Integer if document ID, string if info ('new')
*
* @throws Exception
* @throws HTML_QuickForm_Error
*
* @return string HTML form
*/
public function display_document_form($action = 'add', $id = 0, $extra_info = 'new')
@ -8976,6 +9023,9 @@ class learnpath
* @param int $id Item ID if exists
* @param mixed $extra_info
*
* @throws Exception
* @throws HTML_QuickForm_Error
*
* @return string HTML form
*/
public function display_link_form($action = 'add', $id = 0, $extra_info = '')
@ -9039,7 +9089,7 @@ class learnpath
}
$this->tree_array($arrLP);
$arrLP = isset($this->arrMenu) ? $this->arrMenu : null ;
$arrLP = isset($this->arrMenu) ? $this->arrMenu : [] ;
unset($this->arrMenu);
if ($action == 'add') {
@ -9190,9 +9240,11 @@ class learnpath
/**
* Return HTML form to add/edit a student publication (work).
*
* @param string Action (add/edit)
* @param int Item ID if already exists
* @param mixed Extra info (work ID if integer)
* @param string $action
* @param int $id Item ID if already exists
* @param string $extra_info
*
* @throws Exception
*
* @return string HTML form
*/
@ -9252,7 +9304,7 @@ class learnpath
}
$this->tree_array($arrLP);
$arrLP = isset($this->arrMenu) ? $this->arrMenu : null ;
$arrLP = isset($this->arrMenu) ? $this->arrMenu : [] ;
unset($this->arrMenu);
$form = new FormValidator('frm_student_publication', 'post', '#');
@ -9400,7 +9452,7 @@ class learnpath
/**
* Displays the menu for manipulating a step.
*
* @param $item_id
* @param id $item_id
* @param string $item_type
*
* @return string
@ -9585,6 +9637,9 @@ class learnpath
*
* @param int $item_id Item ID
*
* @throws Exception
* @throws HTML_QuickForm_Error
*
* @return string HTML form
*/
public function display_move_item($item_id)
@ -9651,6 +9706,9 @@ class learnpath
* @param string $title
* @param array $data
*
* @throws Exception
* @throws HTML_QuickForm_Error
*
* @return string
*/
public function display_item_small_form($item_type, $title = '', $data = [])
@ -9673,7 +9731,7 @@ class learnpath
*
* @todo use FormValidator
*
* @param int Item ID
* @param int Item ID
*
* @return string HTML form
*/
@ -9737,7 +9795,6 @@ class learnpath
'min_score' => $row['min_score'],
'mastery_score' => $row['mastery_score'],
'prerequisite' => $row['prerequisite'],
'next_item_id' => $row['next_item_id'],
'display_order' => $row['display_order'],
'prerequisite_min_score' => $row['prerequisite_min_score'],
'prerequisite_max_score' => $row['prerequisite_max_score'],
@ -9745,7 +9802,7 @@ class learnpath
}
$this->tree_array($arrLP);
$arrLP = isset($this->arrMenu) ? $this->arrMenu : null ;
$arrLP = isset($this->arrMenu) ? $this->arrMenu : [] ;
unset($this->arrMenu);
for ($i = 0; $i < count ( $ arrLP ) ; $ i + + ) {
@ -9782,27 +9839,64 @@ class learnpath
if ($item['item_type'] == TOOL_QUIZ) {
// lets update max_score Quiz information depending of the Quiz Advanced properties
$tmp_obj_lp_item = new LpItem($course_id, $item['id']);
$tmp_obj_exercic e = new Exercise($course_id);
$tmp_obj_exercice->read($tmp_obj_lp_item ->path);
$tmp_obj_lp_item->max_score = $tmp_obj_exercic e->get_max_score();
$tmp_obj_lp_item ->update();
$item['max_score'] = $tmp_obj_lp_item ->max_score;
$lpItemObj = new LpItem($course_id, $item['id']);
$exercis e = new Exercise($course_id);
$exercise->read($lpItemObj ->path);
$lpItemObj->max_score = $exercis e->get_max_score();
$lpItemObj ->update();
$item['max_score'] = $lpItemObj ->max_score;
$return .= '< td > ';
$return .= '< input class = "form-control" size = "4" maxlength = "3" name = "min_'.$item['id'].'" type = "number" min = "0" step = "1" max = "'.$item['max_score'].'" value = "'.$selectedMinScoreValue.'" / > ';
$return .= '< input
class="form-control"
size="4" maxlength="3"
name="min_'.$item['id'].'"
type="number"
min="0"
step="1"
max="'.$item['max_score'].'"
value="'.$selectedMinScoreValue.'"
/>';
$return .= '< / td > ';
$return .= '< td > ';
$return .= '< input class = "form-control" size = "4" maxlength = "3" readonly name = "max_'.$item['id'].'" type = "number" min = "0" step = "1" max = "'.$item['max_score'].'" value = "'.$selectedMaxScoreValue.'" / > ';
$return .= '< input
class="form-control"
size="4"
maxlength="3"
name="max_'.$item['id'].'"
type="number"
min="0"
step="1"
max="'.$item['max_score'].'"
value="'.$selectedMaxScoreValue.'"
/>';
$return .= '< / td > ';
}
if ($item['item_type'] == TOOL_HOTPOTATOES) {
$return .= '< td > ';
$return .= '< input size = "4" maxlength = "3" name = "min_'.$item['id'].'" type = "number" min = "0" step = "1" max = "'.$item['max_score'].'" value = "'.$selectedMinScoreValue.'" / > ';
$return .= '< input
size="4"
maxlength="3"
name="min_'.$item['id'].'"
type="number"
min="0"
step="1"
max="'.$item['max_score'].'"
value="'.$selectedMinScoreValue.'"
/>';
$return .= '< / td > ';
$return .= '< td > ';
$return .= '< input size = "4" maxlength = "3" name = "max_'.$item['id'].'" readonly type = "number" min = "0" step = "1" max = "'.$item['max_score'].'" value = "'.$selectedMaxScoreValue.'" / > ';
$return .= '< input
size="4"
maxlength="3"
name="max_'.$item['id'].'"
type="number"
min="0"
step="1"
max="'.$item['max_score'].'"
value="'.$selectedMaxScoreValue.'"
/>';
$return .= '< / td > ';
}
$return .= '< / tr > ';
@ -9813,7 +9907,8 @@ class learnpath
$return .= '< / table > ';
$return .= '< / div > ';
$return .= '< div class = "form-group" > ';
$return .= '< button class = "btn btn-primary" name = "submit_button" type = "submit" > '.get_lang('ModifyPrerequisites').'< / button > ';
$return .= '< button class = "btn btn-primary" name = "submit_button" type = "submit" > '.
get_lang('ModifyPrerequisites').'< / button > ';
$return .= '< / form > ';
return $return;
@ -9822,8 +9917,6 @@ class learnpath
/**
* Return HTML list to allow prerequisites selection for lp.
*
* @param int Item ID
*
* @return string HTML form
*/
public function display_lp_prerequisites_list()
@ -9864,6 +9957,9 @@ class learnpath
*
* @param bool $showInvisibleFiles
*
* @throws Exception
* @throws HTML_QuickForm_Error
*
* @return string
*/
public function get_documents($showInvisibleFiles = false)
@ -11421,7 +11517,7 @@ EOD;
/**
* Uploads an author image to the upload/learning_path/images directory.
*
* @param array The image array, coming from the $_FILES superglobal
* @param array The image array, coming from the $_FILES superglobal
*
* @return bool True on success, false on error
*/
@ -11674,6 +11770,8 @@ EOD;
/**
* @param array $params
*
* @throws \Doctrine\ORM\OptimisticLockException
*/
public static function createCategory($params)
{
@ -11687,6 +11785,10 @@ EOD;
/**
* @param array $params
*
* @throws \Doctrine\ORM\ORMException
* @throws \Doctrine\ORM\OptimisticLockException
* @throws \Doctrine\ORM\TransactionRequiredException
*/
public static function updateCategory($params)
{
@ -11702,6 +11804,10 @@ EOD;
/**
* @param int $id
*
* @throws \Doctrine\ORM\ORMException
* @throws \Doctrine\ORM\OptimisticLockException
* @throws \Doctrine\ORM\TransactionRequiredException
*/
public static function moveUpCategory($id)
{
@ -11719,6 +11825,10 @@ EOD;
/**
* @param int $id
*
* @throws \Doctrine\ORM\ORMException
* @throws \Doctrine\ORM\OptimisticLockException
* @throws \Doctrine\ORM\TransactionRequiredException
*/
public static function moveDownCategory($id)
{
@ -11737,6 +11847,8 @@ EOD;
/**
* @param int $courseId
*
* @throws \Doctrine\ORM\Query\QueryException
*
* @return int|mixed
*/
public static function getCountCategories($courseId)
@ -11778,6 +11890,10 @@ EOD;
/**
* @param int $id
*
* @throws \Doctrine\ORM\ORMException
* @throws \Doctrine\ORM\OptimisticLockException
* @throws \Doctrine\ORM\TransactionRequiredException
*
* @return CLpCategory
*/
public static function getCategory($id)
@ -11807,6 +11923,10 @@ EOD;
/**
* @param int $id
*
* @throws \Doctrine\ORM\ORMException
* @throws \Doctrine\ORM\OptimisticLockException
* @throws \Doctrine\ORM\TransactionRequiredException
*
* @return mixed
*/
public static function deleteCategory($id)
@ -12349,6 +12469,9 @@ EOD;
/**
* Get the LP Final Item form.
*
* @throws Exception
* @throws HTML_QuickForm_Error
*
* @return string
*/
public function getFinalItemForm()
@ -12707,9 +12830,9 @@ EOD;
*
* @author Yannick Warnier < ywarnier @ beeznest . org >
*
* @param string Course code
* @param string The tool type (using constants declared in main_api.lib.php)
* @param int The resource ID
* @param string $course_code Course code
* @param string $learningPathId The tool type (using constants declared in main_api.lib.php)
* @param int $id_in_path The resource ID
*
* @return string
*/