12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- require_once 'learnpathItem.class.php';
- class aiccBlock extends learnpathItem {
- public $identifier = '';
- public $members = array();
-
- function aiccBlock($type = 'config', $params) {
- if (isset($params)) {
- switch ($type) {
- case 'db':
-
- return false;
- 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 = split(',', $value);
- foreach ($temp as $val) {
- if (!empty($val)) {
- $this->members[] = $val;
- }
- }
- }
- break;
- }
- }
- return true;
- }
- }
- return false;
- }
- }
|