123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?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;
- }
- }
- ?>
|