private function getAffiliateIds($searchValue) { $affiliatesGrid = new Pap_Merchants_User_AffiliatesGrid(); $params = new Gpf_Rpc_Params(); $params->add('filters', array(array("search", "L", $searchValue))); $params->add('columns', array(array("id"))); $affiliateRows = $affiliatesGrid->getRows($params); $affiliateIds = array(); foreach ($affiliateRows->rows as $row) { if ($row[0] == 'id') { continue; } $affiliateIds[] = $row[0]; } return $affiliateIds; }