Files
Chamilo/main/lp/aiccObjective.class.php
Xes 73154ae174
Behat tests 1.11.x 🐞 / PHP 7.4 Test on ubuntu-latest (push) Canceled after 0s
PHP-CS-Fixer / composer_install (7.4) (push) Canceled after 0s
Chamilo 1.11.40 (ZIP oficial v1.11.40)
Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip
sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439
Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
2026-08-06 17:59:45 +02:00

54 lines
2.0 KiB
PHP

<?php
/* For licensing terms, see /license.txt */
/**
* Class aiccObjective
* Class defining the Block elements in an AICC Course Structure file.
* Container for the aiccResource class that deals with elemens from AICC Objectives file.
*
* @author Yannick Warnier <ywarnier@beeznest.org>
* @license GNU/GPL
*/
class aiccObjective extends learnpathItem
{
public $identifier = '';
public $members = [];
/**
* Class constructor. Depending of the type of construction called ('db' or 'manifest'), will create a scormResource
* object from database records or from the array given as second param.
*
* @param string Type of construction needed ('db' or 'config', default = 'config')
* @param mixed Depending on the type given, DB id for the lp_item or parameters array
*/
public function __construct($type = 'config', $params)
{
if (isset($params)) {
switch ($type) {
case 'db':
// TODO: Implement this way of object creation.
break;
case 'config': // Do the same as the default.
default:
foreach ($params as $a => $value) {
switch ($a) {
case 'system_id':
$this->identifier = strtolower($value);
break;
case 'member':
if (false !== strstr($value, ',')) {
$temp = explode(',', $value);
foreach ($temp as $val) {
if (!empty($val)) {
$this->members[] = $val;
}
}
}
break;
}
}
}
}
}
}