@param string       $value
@param BoolOperator $boolOperator

@return Url
428376
protected function createUrl(string $value, BoolOperator $boolOperator): Url
    {
        $m = $this->getModifiers();
        return new Url($value, $boolOperator, $m['use_boost'], $m['boost']);
    }
327816
public static function create(bool $value = null, bool $allowSerializeEmpty = false): BoolNode
    {
        $node = new self();
        $node->value = $value;
        $node->allowSerializeEmpty = $allowSerializeEmpty;

        return $node;
    }
916623
public function formatUrl($value)
	{
		$url=$value;
		if(strpos($url,'http://')!==0 && strpos($url,'https://')!==0)
			$url='http://'.$url;
		return CHtml::link(CHtml::encode($value),$url);
	}
880189
protected function getBindingCallable($binder, $value)
    {
        // If $binder is a callable then use it, otherwise resolve the callable :
        if (is_callable($binder)) {
            return $binder;

        // If $binder is string (class name or Class@method)
        } elseif (is_string($binder)) {
            // Check if binder is CLass@method callable style
            if (strpos($binder, '@') === false) {
                $class = $binder;
                $method = null;
            } else {
                list($class, $method) = explode('@', $binder);
            }

            if (!class_exists($class)) {
                throw new Exception("Route-Model-Binding : Class not found : [$class]");
            }

            $instance = $this->resolveClass($class);

            // If a custom method defined, use it, Otherwise, use the default binding callable
            if ($method) {
                return [$instance, $method];
            } else {
                return $this->getDefaultBindingResolver($instance, $value);
            }
        }

        throw new InvalidArgumentException('Route-Model-Binding : Invalid binder value, Expected callable or string');
    }
1285577
public static function Parse( $value, bool $fixed = false )
   {

      $res = null;

      if ( ! self::TryParse( $value, $res, $fixed ) )
      {
         return false;
      }

      return $res;

   }
621286
public function Create( $value )
    {
		if ( is_bool( $value ) )
		{
			$value = $value ? CoreFuncs::$True : CoreFuncs::$False;
		}
		else if ( ! $value instanceof CoreFuncs::$True &&  ! $value instanceof CoreFuncs::$False )
		{
			$value = Convert::ToBoolean( $value, null );
		}
        return new BoolProxy( $value );
    }
275668
protected function buildUrl($type, $value)
    {
        $type = trim(strtolower($type));

        if (!in_array($type, ["ip", "email", "username"])) {
            throw new \InvalidArgumentException("Type of " . $type . " is not supported by the API");
        }

        $url = $this->baseApiUrl . "?";
        $url .= $type . "=";
        $url .= urlencode($value);

        // If Tor nodes are not allowed, add it as a flag.
        if (!$this->allowTorNodes) $url .= "&notorexit";


        return $url . "&f=json";
    }
992111
public function setLocalOnly($value = false) {
    	$this->_localOnly = $value;
    	$this->_scope = $value ? $this->_worksheet : null;
    	return $this;
    }
1290674
public function setCoreManagerFaviconUrl($value)
    {
        $this->setFieldName('manager_favicon_url');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
255184
public static function typeUrl($value, array $params, array $field)
    {
        return self::typeText($value, $params, $field) && filter_var($value, FILTER_VALIDATE_URL);
    }
76054
function setTzurl( $value, $params=FALSE ) {
    $this->tzurl['value']   = $value;
    if( empty( $this->tzurl['value'] ))
      return;
    $this->tzurl['params'] = $this->_setParams( $params );
  }
128477
public function setCoreXhtmlUrls($value)
    {
        $this->setFieldName('xhtml_urls');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
1271484
protected function castToBool($value, bool $nullable = true)
    {
        if (null === $value && $nullable) {
            return null;
        }

        return (bool) $value;
    }
939431
public static function validateLoc($value)
    {
        /**
         * Pattern inspired by https://github.com/symfony/validator/blob/v3.1.3/Constraints/UrlValidator.php
         * OriginalAuthor: Bernhard Schussek <bschussek@gmail.com>
         * http://www.phpliveregex.com/p/gUC
         */
        $pattern = '~^
            (http|https)://                                 # protocol
            (
                ([\pL\pN\pS-\.])+(\.?([\pL]|xn\-\-[\pL\pN-]+)+\.?) # a domain name
                    |                                              # or
                \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}                 # a IP address
                    |                                              # or
                \[
                    (?:(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-f]{1,4})):(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?: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])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){0,4}(?:(?:[0-9a-f]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-f]{1,4})):(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){0,5}(?:(?:[0-9a-f]{1,4})))?::)(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){0,6}(?:(?:[0-9a-f]{1,4})))?::))))
                \]  # a IPv6 address
            )
            (:[0-9]+)?                              # a port (optional)
            ([^#\?\&]*)([\?|\&][^#]*)?(\#\S*)?              # a /, nothing, a / with something, a query or a fragment
        $~ixu';

        if (\strlen($value) < 1) {
            return false;
        }
        
        if (preg_match($pattern, $value, $result)) {
            $path = implode("/", array_map("rawurlencode", explode("/", @$result[7])));
            return $result[1].'://'.$result[2].@$result[6].$path.\htmlspecialchars(@$result[8]).@$result[9];
        }

        return false;
    }
1227041
public function typeKeys($locator, $value)
    {
        try {
            return $this->getMinkSession()->getDriver()->getBrowser()->typeKeys($locator, $value);
        } catch (\Selenium\Exception $e) {
            sleep(1);
            return $this->getMinkSession()->getDriver()->getBrowser()->typeKeys($locator, $value);
        }
    }
1045723
public function setCoreManagerLoginUrlAlternate($value)
    {
        $this->setFieldName('manager_login_url_alternate');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
886147
public function distinct(bool $value = true)
    {
        $instance = $this->selectQueryInstance();

        $instance->selectQuery()->distinct($value);

        return $instance;
    }