src/Core/Db/Expression/Condition.php
private function _likeLevelOne(ReferencesInterface $value)
	{
		$regex = '/"/';
		if(preg_match($regex, $value->getValue()))
		{
			return preg_replace($regex, '"%', $value->getValue(), 1);
		}

		return '%' . $value->getValue();
	}
private function _likeLevelOne(ReferencesInterface $value)
	{
		$regex = '/"/';
		if(preg_match($regex, $value->getValue()))
		{
			return preg_replace($regex, '"%', $value->getValue(), 1);
		}

		return '%' . $value->getValue();
	}
private function _likeLevelOne ( ReferencesInterface $ value ) { $ regex = '/"/' ; if ( preg_match ( $ regex , $ value -> getValue ( ) ) ) { return preg_replace ( $ regex , '"%' , $ value -> getValue ( ) , 1 ) ; } return '%' . $ value -> getValue ( ) ; }
Validate the value and the percentage sign to a valid value for an expression.
The sign will passed at the begin of the value.

Example:    Value: 123 will validated to: %123.
Value: "a" will validated to: "%a".

@param ReferencesInterface $value The value for the expression.

@return string
Validate the value and the percentage sign to a valid value for an expression . The sign will passed at the begin of the value .