public function getFeatureObject() { return Feature::getByID($this->feID); }
public function getGatheringItemTemplateFeatureObjects() { $db = Loader::db(); $r = $db->Execute('select feID from GatheringItemTemplateFeatures where gatID = ?', array($this->getGatheringItemTemplateID())); $features = array(); while ($row = $r->FetchRow()) { $fe = Feature::getByID($row['feID']); if (is_object($fe)) { $features[] = $fe; } } return $features; }