12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- class aiccResource
- {
- public $identifier = '';
- public $title = '';
- public $description = '';
- public $developer_id = '';
-
- 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 'title':
- $this->title = $value;
-
- case 'description':
- $this->description = $value;
- break;
- case 'developer_id':
- $this->developer_id = $value;
- break;
- }
- }
- }
- }
- }
- }
|