1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- class aiccBlock 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;
- }
- }
- }
- }
- }
- }
|