sets an antribute
@param string $strKey
@param mixed $mixValue
325599
public function setAttribute($strKey, $mixValue)
    {
        if ($mixValue === true)
            $mixValue = $strKey;
        else if ($mixValue === false)
            $mixValue = '';

        $this->arrAttributes[$strKey] = $mixValue;
    }
885000
public void addDatabaseProperty(String strKey, String strValue)
    {
        this.setProperty(strKey, strValue);
        Environment env = (Environment)this.getDatabaseOwner().getEnvironment();
        if (env.getCachedDatabaseProperties(this.getDatabaseName(true)) != null)  // Always
            if (env.getCachedDatabaseProperties(this.getDatabaseName(true)) != Environment.DATABASE_DOESNT_EXIST)  // Always
                env.getCachedDatabaseProperties(this.getDatabaseName(true)).put(strKey, strValue);
    }
185172
public static function sDecode($string = '', $skey = 'wenzi' , $mix = array('#b1'=>'+' , '#b2'=>'/' , '@A' => ' ')) {
        $string = base64_decode( $string , TRUE  );
        if($mix){
            $arrayKey = array_keys($mix);
            $arrayValue = array_values($mix);
            $string = str_replace($arrayKey,$arrayValue , $string);
        }
        $strlen = strlen($string);
        $skLen = strlen($skey);
        $str = '';
        for($i=0; $i < $strlen ; $i++){
            $sI =  $i % $skLen;
            $str .= $string[$i] ^ $skey[$sI];
        }

        return base64_decode($str , true);
    }
1292999
public function setSearchEngine($blIsSe = null, $sClient = null)
    {
        if (isset($blIsSe)) {
            $this->_blIsSe = $blIsSe;

            return;
        }
        startProfile("isSearchEngine");

        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
        $blIsSe = false;

        if (!($myConfig->getConfigParam('iDebug') && $this->isAdmin())) {
            $aRobots = $myConfig->getConfigParam('aRobots');
            $aRobots = is_array($aRobots) ? $aRobots : [];

            $aRobotsExcept = $myConfig->getConfigParam('aRobotsExcept');
            $aRobotsExcept = is_array($aRobotsExcept) ? $aRobotsExcept : [];

            $sClient = $sClient ? $sClient : strtolower(getenv('HTTP_USER_AGENT'));
            $blIsSe = false;
            $aRobots = array_merge($aRobots, $aRobotsExcept);
            foreach ($aRobots as $sRobot) {
                if (strpos($sClient, $sRobot) !== false) {
                    $blIsSe = true;
                    break;
                }
            }
        }

        $this->_blIsSe = $blIsSe;

        stopProfile("isSearchEngine");
    }
210745
private function buildQueryParamValue($mix_value)
    {
        $obj_val = new \stdClass();
        $str_type = gettype($mix_value);
        switch($str_type) {
            case 'boolean':
                $obj_val->booleanValue = $mix_value;
                break;

            case 'integer':
                $obj_val->integerValue = $mix_value;
                break;

            case 'double':
                $obj_val->doubleValue = $mix_value;
                break;

            case 'string':
                $obj_val->stringValue = $mix_value;
                break;

            case 'array':
                throw new \InvalidArgumentException('Unexpected array parameter');

            case 'object':
                $this->configureObjectValueParamForQuery($obj_val, $mix_value);
                break;

            case 'NULL':
                $obj_val->nullValue = null;
                break;

            case 'resource':
            case 'unknown type':
            default:
                throw new \InvalidArgumentException('Unsupported parameter type: ' . $str_type);
        }
        return $obj_val;
    }
43275
public void put(String strKey, Object strValue)
    {
        if (this.getMessageFieldDesc(strKey) != null)
            this.getMessageFieldDesc(strKey).put(strValue);
        else
            this.putNative(strKey, strValue);
    }
702755
public void setAttribute(final String attributeName, final String attributeValue) {
        uiObject.getElement().setAttribute(attributeName, attributeValue);
    }
1234431
private function _create($mixValue = null){
		if($this->hasOption('class')){
			$strClass = $this->options()->class;

			try {
				$objObject = new $strClass($mixValue);
			}catch (\Exception $e){
				throw new TypeException($mixValue, get_class($this));
			}

			return $objObject;
		}

		throw new MissingOptionException('class');
	}
742820
void setMatcher(ContentMatcher m)
  {

    if (tc.isEntryEnabled())
      tc.entry(
        this,cclass,
        "setMatcher",
        "matcher: " + m + ", hasContent: " + new Boolean(hasContent));

    wildMatchers.add(m);
    this.hasContent |= m.hasTests();

    if (tc.isEntryEnabled())
      tc.exit(this,cclass, "setMatcher");
  }
1337708
function (attributeName, attributeValue) {
        var attributeArray;
        if (this._definitionAttributes) {
            attributeArray = this._definitionAttributes[attributeName];
        } else {
            this._definitionAttributes = {};
        }
        if (undefined === attributeArray) {
            attributeArray = [];
        }
        this._definitionAttributes[attributeName] = attributeArray.concat(attributeValue);
    }
557103
public function setValue($mixValue){
		if($this->isValid($mixValue) || is_null($mixValue)){
			$this->mixValue = $mixValue;
			return true;
		}

		throw new TypeException($mixValue, get_class($this));
	}
1323100
public Object createNewNode(String strKey)
    {
        Node node = this.getNode(null, strKey, CreateMode.CREATE_NEW_NODE, false);
        return node;
    }
462635
public function isValid($mixValue){
		if(is_null($mixValue)){
			return true;
		}

		if(is_object($mixValue)){
			if($mixValue instanceof \DateTime){
				return true;
			}else{
				throw new ClassException($mixValue, '\DateTime');
				return false;
			}
		}

		if(is_string($mixValue)){
			try{
				$objTest = new \DateTime($mixValue);
				return true;
			}catch (\Exception $e){
				throw new TypeException($mixValue, get_class($this));
			}
		}

		return false;
	}
863265
protected function configureValueParamForQuery($obj_val, $mix_value)
    {
        $str_type = gettype($mix_value);
        switch($str_type) {
            case 'boolean':
                $obj_val->setBooleanValue($mix_value);
                break;

            case 'integer':
                $obj_val->setIntegerValue($mix_value);
                break;

            case 'double':
                $obj_val->setDoubleValue($mix_value);
                break;

            case 'string':
                $obj_val->setStringValue($mix_value);
                break;

            case 'array':
                throw new \InvalidArgumentException('Unexpected array parameter');

            case 'object':
                $this->configureObjectValueParamForQuery($obj_val, $mix_value);
                break;

            case 'NULL':
                $obj_val->setStringValue(null);
                break;

            case 'resource':
            case 'unknown type':
            default:
                throw new \InvalidArgumentException('Unsupported parameter type: ' . $str_type);
        }
        return $obj_val;
    }
335203
public void setPayloadProperty(Object data, Object msg, String strKey, Class<?> classKey)
   {
       String name = "set" + strKey;
       try {
           Class<?>[] params = {classKey};
           Method method = msg.getClass().getMethod(name, params);
           if (method != null)
           {
               Object[] datas = new Object[1];
               if (data != null)
                   if (!classKey.isAssignableFrom(data.getClass()))
                   {
                       data = this.convertObjectToDatatype(data, classKey);
                   }
               datas[0] = data;
               method.invoke(msg, datas);
           }
       } catch (SecurityException e) {
           e.printStackTrace();
       } catch (NoSuchMethodException e) {
           // Ignore this one
       } catch (InvocationTargetException e) {
           e.printStackTrace();
       } catch (IllegalAccessException e) {
           e.printStackTrace();
       }
       
   }
613067
public function getData($strKey = null)
    {
        $varReturn = false;
        $arrData = $this->getMeta("data", null);

        if (! is_null($arrData)) {
            if ($strKey == null) {
                $varReturn = $arrData;
            } else {
                if (isset($arrData[$strKey])) {
                    $varReturn = $arrData[$strKey];
                }
            }
        }

        return $varReturn;
    }
555299
public void put(String strKey, Object objValue)
    {
        if (this.getMessageFieldDesc(strKey) != null)
            this.getMessageFieldDesc(strKey).put(objValue);
        else if (this.getMessage() != null)
            this.getMessage().putNative(this.getFullKey(strKey), objValue);
    }