src/Intraface/modules/filemanager/InstanceManager.php 1 location
|
@@ 48-58 (lines=11) @@
|
| 45 |
|
* @param object kernel |
| 46 |
|
* @param object id |
| 47 |
|
*/ |
| 48 |
|
public function __construct($kernel, $type_key = 0) |
| 49 |
|
{ |
| 50 |
|
$this->error = new Ilib_Error; |
| 51 |
|
$this->db = MDB2::singleton(DB_DSN); |
| 52 |
|
$this->type_key = (int)$type_key; |
| 53 |
|
$this->intranet_id = $kernel->intranet->get('id'); |
| 54 |
|
|
| 55 |
|
if ($this->type_key > 0) { |
| 56 |
|
$this->load(); |
| 57 |
|
} |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
/** |
| 61 |
|
* load data about intance type |
src/Intraface/modules/modulepackage/Manager.php 1 location
|
@@ 46-57 (lines=12) @@
|
| 43 |
|
* |
| 44 |
|
* @return void |
| 45 |
|
*/ |
| 46 |
|
public function __construct($intranet, $id = 0) |
| 47 |
|
{ |
| 48 |
|
// Should we rather just take intranet_id as parameter? |
| 49 |
|
$this->intranet = &$intranet; |
| 50 |
|
$this->db = MDB2::singleton(DB_DSN); |
| 51 |
|
$this->error = new Intraface_Error; |
| 52 |
|
$this->id = (int)$id; |
| 53 |
|
|
| 54 |
|
if ($this->id > 0) { |
| 55 |
|
$this->load(); |
| 56 |
|
} |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
/** |
| 60 |
|
* Loads information about intranet module package |