public function GetTagByID($id) { $ret = $this->GetSomeThing('tags', 'ID', $id, 'Tag'); if ($ret->ID > 0) { $this->tagsbyname[$ret->ID] =& $this->tags[$ret->ID]; } return $ret; }