12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- class aiccObjective extends learnpathItem
- {
- public $identifier = '';
- public $members = [];
-
- 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;
- }
- }
- }
- }
- }
- }
|