| 1 |
<?php |
<?php |
| 2 |
// $Id: og_blueprints.module,v 1.1.2.13 2008/06/06 12:31:29 sdboyer Exp $ |
// $Id: og_blueprints.module,v 1.1.2.18 2008/09/15 18:41:36 sdboyer Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file og_blueprints.module |
* @file og_blueprints.module |
| 350 |
function __construct($group_type, $release_id) { |
function __construct($group_type, $release_id) { |
| 351 |
$this->grouptype = $group_type; |
$this->grouptype = $group_type; |
| 352 |
$this->release_id = $release_id; |
$this->release_id = $release_id; |
| 353 |
if ($result = db_query("SELECT b.bid, r.vid FROM {og_bundle} AS b INNER JOIN {og_bundle_revision} AS r ON b.bid = r.bid WHERE b.grouptype = '%s' AND r.release_id = %d", $this->grouptype, $this->release_id)) { |
list($this->bid, $this->vid) = array_values(db_fetch_array(db_query( |
| 354 |
list($this->bid, $this->vid) = array_values(db_fetch_array($result)); |
"SELECT b.bid, r.vid FROM {og_bundle} AS b INNER JOIN {og_bundle_revision} AS r ON b.bid = r.bid WHERE b.grouptype = '%s' AND r.release_id = %d", |
| 355 |
} |
$this->grouptype, $this->release_id))); |
| 356 |
$this->loadAllBlueprints(); |
$this->loadAllBlueprints(); |
| 357 |
$this->blueprints = array_filter($this->blueprints, array($this, 'filter_disabled')); // TODO should this be here? probably. |
$this->blueprints = array_filter($this->blueprints, array($this, 'filter_disabled')); // TODO should this be here? probably. |
| 358 |
} |
} |