123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- require_once 'learnpathItem.class.php';
- class aiccObjective extends learnpathItem
- {
- public $identifier = '';
- public $members = array();
-
- public function __construct($type = 'config', $params)
- {
- if (isset($params)) {
- switch ($type) {
- case 'db':
-
- break;
- case 'config':
- default:
- foreach ($params as $a => $value) {
- switch ($a) {
- case 'system_id':
- $this->identifier = strtolower($value);
- break;
- case 'member':
- if (strstr($value, ',') !== false) {
- $temp = explode(',', $value);
- foreach ($temp as $val) {
- if (!empty($val)) {
- $this->members[] = $val;
- }
- }
- }
- break;
- }
- }
- }
- }
- }
- }
|