setOrderPName class method

Sets shopping cart product names

@access        public
@param        $orderPName array
@return        boolean
964223
public function setOrderPName($orderPName)
    {
        if (!is_array($orderPName)) {
            $this->orderPName = null;

            return false;
        }
        $isValid = true;
        $index = 0;
        while ($isValid && $index < count($orderPName)) {
            if (strlen($orderPName[$index]) > 155) {
                $isValid = false;
            } else {
                $isValid = true;
            }
            $index++;
        }
        if (!$isValid) {
            $this->orderPName = null;

            return false;
        }
        $this->orderPName = $orderPName;

        return true;
    }
459346
public function setOrderVer($orderVer)
    {
        if (!is_array($orderVer)) {
            $this->orderVer = null;

            return false;
        }
        $isValid = true;
        $index = 0;
        while ($isValid && $index < count($orderVer)) {
            if (settype($orderVer[$index], "string")) {
                if (strlen($orderVer[$index]) < 51) {
                    $isValid = true;
                } else {
                    $isValid = false;
                }
            } else {
                $isValid = false;
            }
            $index++;
        }
        if (!$isValid) {
            $this->orderVer = null;

            return false;
        }
        $this->orderVer = $orderVer;

        return true;
    }
677349
protected function getOrderFromPayment($orderPayment)
    {
        $orderId = null;
        $order = null;
        if (!is_null($orderPayment)) {
            $orderId = $orderPayment->getOrderId();
        }
        if (!is_null($orderId)) {
            $order = oxNew(\OxidEsales\PayPalModule\Model\PayPalOrder::class);
            $order->setOrderId($orderId);
            $order->load();
        }

        return $order;
    }
1266283
public function setOrderProductId( $orderProductId )
	{
		if ( $orderProductId === $this->getOrderProductId() ) { return; }

		$this->_values['ordprodid'] = ( $orderProductId !== null ? (int) $orderProductId : null );
		$this->setModified();
	}
657780
public function setOrderBy(array $orderBy)
    {
        // Validate and force the case for the direction.
        foreach ($orderBy as $attribute => $direction) {
            if (!in_array(strtoupper($direction), self::ORDER)) {
                throw new \InvalidArgumentException(sprintf(
                    'Order direction "%s" is invalid. Valid values are ASC and DESC',
                    $direction
                ));
            }
            $orderBy[$attribute] = strtoupper($direction);
        }
        $this->orderBy = $orderBy;

        return $this;
    }
377334
public function setItemOrderStoreName(&$item, $store_model)
    {
        if (isset($item['store_id'])) {
            $data = $store_model->get($item['store_id']);
            $item['store_name'] = empty($data['name']) ? 'Unknown' : $data['name'];
        }
    }
924296
public function loadByPaymorrowName($methodName)
    {
        /** @var OxpsPaymorrowOxPayment|oxPayment $this */

        if (!array_key_exists($methodName, $this->paymorrowPaymentNameMap)) {
            return false;
        }

        $query = sprintf(
            "SELECT * FROM `%s` WHERE %s AND `OXPSPAYMORROWMAP` = %d ORDER BY `OXSORT` ASC, `OXTIMESTAMP` DESC LIMIT 1",
            $this->getViewName(),
            $this->getPaymorrowMethodWhereClause(),
            (int) $this->paymorrowPaymentNameMap[$methodName]
        );

        return $this->assignRecord($query);
    }
522860
@Override
    protected void setProperty(final String _name,
                               final String _value)
        throws CacheReloadException
    {
        if ("Order".equals(_name)) {
            final String[] values = _value.split("\\|");
            for (final String value : values) {
                this.order.add(value);
            }
        } else {
            super.setProperty(_name, _value);
        }
    }
1111659
public function hasOrder($orderId)
    {
        $orderIdList = $this->session->get(self::SESSIONNAME, array());

        return true === in_array($orderId, $orderIdList);
    }
383328
public function setFromName($fieldName)
    {
        if (empty($this->name)) {
            $this->name = $fieldName;
        }
        $this->attrName = $this->getAttrName();
        $this->concrete = false === empty($this->getColumnName());

        if (empty($this->verboseName)) {
            $this->verboseName = ucwords(
                str_replace(
                    '_',
                    ' ',
                    $this->name
                )
            );
        }
    }
389416
public function setOrderPType($orderPType)
    {
        if (!is_array($orderPType)) {
            $this->orderPType = null;

            return false;
        }
        $isValid = true;
        $index = 0;
        while ($isValid && $index < count($orderPType)) {
            if (!in_array($orderPType[$index], array('GROSS', 'NET'))) {
                $isValid = false;
            } else {
                $isValid = true;
            }
            $index++;
        }
        if (!$isValid) {
            $this->orderPType = null;

            return false;
        }
        $this->orderPType = $orderPType;

        return true;
    }
873327
public boolean setClass(String pName, Class<?> pValue) {
        if(pName == null) return false;
        _properties.setProperty(pName, pValue.getName() + "");
        return true;
    }
383416
public function setOrderDate($orderDate = '')
    {
        if (strtotime($orderDate) === -1) {
            $this->orderDate = null;

            return false;
        }

        $dateFormatPattern = "^((((19|20)(([02468][048])|([13579][26]))-02-29))|((20[0-9][0-9])|(19[0-9][0-9]))-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))^";

        if (!preg_match($dateFormatPattern, $orderDate)) {
            $this->orderDate = null;

            return false;
        }

        if (strtotime($orderDate) > strtotime(date("Y-m-d H:i:s"))) {
            $this->orderDate = null;

            return false;
        }

        $this->orderDate = $orderDate;

        return true;
    }
1069817
public function getAttributesName($orderIndex = 0, $attributeIndex = 0)
    {
        $attributes = $this->getAttributes($orderIndex);
        return array_key_exists('name', $attributes[$attributeIndex]) ? $attributes[$attributeIndex]['name'] : null;
    }
552431
public void setProviderName(final String pName) {
        if (StringUtils.isNotBlank(pName)) {
            LOGGER.debug("Configured Jasypt provider");
            this.jasyptInstance.setProviderName(pName);
        }
    }
1199320
public function findItemByColName($colName)
    {

        if(in_array($colName, $this->index)){
            return $this->items[array_search($colName, $this->index)];
        }

        return false;

    }
896682
public function setOrderId($orderId)
    {
        if (!empty($orderId) && ctype_print($orderId)) {
            $this->orderId = trim($orderId);
        }

        return $this;
    }