public function sanitizeUnitOpitons($arrUnitOptions) { if (isset($arrUnitOptions['count'])) { // the item lookup search unit type does not have a count field $arrUnitOptions['count'] = AmazonAutoLinks_Utilities::fixNumber($arrUnitOptions['count'], 10, 1, $this->getMaximumProductLinkCount()); } $arrUnitOptions['image_size'] = AmazonAutoLinks_Utilities::fixNumber($arrUnitOptions['image_size'], 160, 0, 500); if (isset($arrUnitOptions['column'])) { $arrUnitOptions['column'] = AmazonAutoLinks_Utilities::fixNumber($arrUnitOptions['column'], 4, 1, $this->getMaxSupportedColumnNumber()); } // For the 'item_lookup' unit type if (isset($arrUnitOptions['unit_type']) && 'item_lookup' === $arrUnitOptions['unit_type']) { $this->sanitizeUnitOptions_ItemLookUp($arrUnitOptions); } return $arrUnitOptions; }