/** * Internal function to return an articleDrugInfo object from a row. * @param $row array * @return articleDrugInfo ArticleDrugInfo */ function &_returnArticleDrugInfoFromRow(&$row) { $articleDrugInfo = new ArticleDrugInfo(); $articleDrugInfo->setId($row['drug_id']); $articleDrugInfo->setArticleId($row['article_id']); $articleDrugInfo->setType($row['type']); $articleDrugInfo->setName($row['name']); $articleDrugInfo->setBrandName($row['brand_name']); $articleDrugInfo->setAdministration($row['administration']); $articleDrugInfo->setOtherAdministration($row['other_administration']); $articleDrugInfo->setForm($row['form']); $articleDrugInfo->setOtherForm($row['other_form']); $articleDrugInfo->setStrength($row['strength']); $articleDrugInfo->setStorage($row['storage']); $articleDrugInfo->setPharmaClass($row['pharma_class']); $articleDrugInfo->setClasses($row['study_class']); $articleDrugInfo->setCountries($row['countries']); $articleDrugInfo->setDifferentConditionsOfUse($row['different_conditions_of_use']); $articleDrugInfo->setCPR($row['cpr']); $articleDrugInfo->setDrugRegistrationNumber($row['drug_registration_number']); $articleDrugInfo->setImportedQuantity($row['imported_quantity']); $articleDrugInfo->setManufacturers($this->drugManufacturerDao->getArticleDrugManufacturersByDrugId($row['drug_id'])); HookRegistry::call('ArticleDrugInfoDAO::_returnArticleDrugInfoFromRow', array(&$articleDrugInfo, &$row)); return $articleDrugInfo; }