Sets the request ID(s). (Required)

This method sets the list of product IDs to be sent in the next request.
@param array|string $s <p>A list of product IDs, or a single type string. (max: 5)</p>
@return boolean <b>FALSE</b> if improper input
971250
public function setProductIds($s){
        if (is_string($s)){
            $this->resetProductIds();
            $this->options['IdList.Id.1'] = $s;
        } else if (is_array($s)){
            $this->resetProductIds();
            $i = 1;
            foreach ($s as $x){
                $this->options['IdList.Id.'.$i] = $x;
                $i++;
            }
        } else {
            return false;
        }
    }
1130027
public function setId($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->id !== $v) {
            $this->id = $v;
            $this->modifiedColumns[DealerContactInfoVersionTableMap::ID] = true;
        }

        if ($this->aDealerContactInfo !== null && $this->aDealerContactInfo->getId() !== $v) {
            $this->aDealerContactInfo = null;
        }


        return $this;
    }
75547
public function setIds(array $ids)
    {
        $actualIds = [];

        foreach ($ids as $id) {
            $this->assertValidId($id);
            $actualIds[] = $id;
        }

        $this->clearCachedValueIf($this->ids != $actualIds);
        $this->ids = $actualIds;
    }
1043979
public function setValue($value, RequestAbstract $request)
    {
        if ($this->maxNumberOfSelection > 1) {
            $this->value = array();
            foreach ($value as $id) {
                $this->value[] = $id;
            }
        } else {
            $this->value = $value;
        }
    }
253006
public final function setIds(array $ids): void
    {
        foreach ($ids as $id) {
            $this->ids[] = (int) $id;
        }
    }
748515
public function setProductId($product_id) {

        $this->checkInArray($product_id, GDAXConstants::$productIdValues);
        $this->product_id = $product_id;
        return $this;

    }
867312
public function setProductId( $prodid )
	{
		if ( $prodid == $this->getProductId() ) { return; }

		$this->_values['prodid'] = (int) $prodid;
		$this->setModified();
	}
858796
protected function _setSessionId($sSessId)
    {
        //marking this session as new one, as it might be not writen to db yet
        if ($sSessId && session_id() != $sSessId) {
            $this->_blNewSession = true;
        }

        session_id($sSessId);

        $this->setId($sSessId);

        $blUseCookies = $this->_getSessionUseCookies();

        if (!$this->_allowSessionStart()) {
            if ($blUseCookies) {
                \OxidEsales\Eshop\Core\Registry::getUtilsServer()->setOxCookie($this->getName(), null);
            }

            return;
        }

        if ($blUseCookies) {
            //setting session cookie
            \OxidEsales\Eshop\Core\Registry::getUtilsServer()->setOxCookie($this->getName(), $sSessId);
        }
    }
267582
public function set(array $product_ids)
    {
        $lifespan = $this->getCookieLifespan();
        $result = $this->request->setCookie('product_compare', implode('|', (array) $product_ids), $lifespan);

        gplcart_static_clear();
        return $result;
    }
1368524
protected function setIds(array $product)
    {

        // pass the product to the parent method
        parent::setIds($product);

        // temporarily persist the row ID
        $this->setLastRowId(isset($product[MemberNames::ROW_ID]) ? $product[MemberNames::ROW_ID] : null);
    }
571267
protected function get_next_id($ids) {
        $maxid = 0;
        foreach ($ids as $id) {
            if (preg_match('/^NEWID(\d+)$/', $id, $matches) && ((int)$matches[1]) > $maxid) {
                $maxid = (int)$matches[1];
            }
        }
        return 'NEWID'.($maxid+1);
    }
721521
public function setSellerOrderId($id) {
        if (is_string($id) || is_numeric($id)){
            $this->options['ShipmentRequestDetails.SellerOrderId'] = $id;
        } else {
            $this->log("Tried to set SellerOrderId to invalid value",'Warning');
            return false;
        }
    }
344678
public function setId($id = '')
    {
        if (is_string($id) && (empty($id) === true || Format::isIdentifier($id, false) === true)) {
            $this->id = $id;
        } else {
            $msg = "The 'id' argument of a body element must be a valid identifier or an empty string";
            throw new InvalidArgumentException($msg);
        }
    }
125348
public function set(array $array = array(), $preserveIds = false)
    {
        if ($this->hasLimit() and ($this->_nbByPage >= 0 and count($array) > $this->_nbByPage)) {
            trigger_error(
                __CLASS__ . '::' . __FUNCTION__ . '() : Max number of elements by page reached',
                E_USER_ERROR
            );
            return false;
        }

        if ($preserveIds) {
            if ($this->_keyGetter !== null) {
                $elementsWithNewKey = array();
                foreach ($array as $element) {
                    $key = $element->{$this->_keyGetter}();
                    $elementsWithNewKey[$key] = $element;
                }
                $this->_elements = $elementsWithNewKey;
            } else {
                $this->_elements = $array;
            }
        } else {
            $this->_elements = array_values($array);
        }

        $this->_count = count($this->_elements);
    }
1036136
public function setId($id)
    {
        $id = (string) $id;

        if (!preg_match('#^[a-zA-Z0-9_.]+$#', $id)) {
            throw new InvalidAlgorithmIdException($id);
        }

        $this->id = mb_strtolower($id);
    }
1287857
public function setId($id)
    {
        if (!is_null($id)) {
            $id = (string) $id;
        }

        $this->id = $id;
        return $this;
    }
1353395
public function setId($value)
    {
        $this->_validateNotNull('Id', $value);
        $this->_validateInt('Id', $value);

        if ($this->data['id'] === $value) {
            return;
        }

        $this->data['id'] = $value;

        $this->_setModified('id');
    }