@param string $id
@param string $value

@return static
978479
public function where1v1($id, $value)
    {
        list($id_a, $id_b) = explode(',', $id);
        if (($pos = strpos($value, ',')) === false) {
            $this->_conditions[] = "$id_a=:$id_a OR $id_b=:$id_b";
            $this->_bind[$id_a] = $value;
            $this->_bind[$id_b] = $value;
        } else {
            $value_a = substr($value, 0, $pos);
            $value_b = substr($value, $pos + 1);

            $this->_conditions[] = "($id_a=:${id_a}_a AND $id_b=:${id_b}_b) OR ($id_a=:${id_a}_b AND $id_b=:${id_b}_a)";
            $this->_bind["${id_a}_a"] = $value_a;
            $this->_bind["${id_b}_b"] = $value_b;
            $this->_bind["${id_a}_b"] = $value_b;
            $this->_bind["${id_b}_a"] = $value_a;
        }

        return $this;
    }
670689
public static function saveToCache($id, $value)
    {
        $arrayCache = Configuration::getArrayCache();
        $cacheDriver = Configuration::getCacheDriver();

        $arrayCache->save($id, $value);
        if ($cacheDriver !== null) {
            $cacheDriver->save($id, $value);
        }
    }
531497
public function setId(int $value) : Job
    {

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

        return $this;
    }
1237755
public function bind( $id, $value = null, $singleton = false ) {
		if ( is_string( $id ) && $this->is_singleton( $id ) ) {
			throw new Exception( sprintf( 'Identifier `%s` is a singleton and cannot be rebind', $id ) );
		}

		if ( is_string( $value ) && class_exists( $value ) ) {
			$closure = new ReflectionClass( $value );
			$value   = $this->call_closure( $closure );
			$closure = function () use ( $value ) {
				return $value;
			};

			$this->bindings[$id] = compact( 'closure', 'singleton' );
			$this->keys[$id]     = true;

			return $value;
		}

		if ( is_object( $id ) && get_class( $id ) !== false ) {
			$value              = $id;
			$id                 = $this->get_class_prefix( get_class( $id ), false );
			$this->classes[$id] = true;
		}

		if ( $value instanceof Closure ) {
			$closure = $value;
		} else {
			$closure = $this->get_closure( $value, $singleton );
		}

		$this->bindings[$id] = compact( 'closure', 'singleton' );
		$this->keys[$id]     = true;

		return $value;
	}
29071
protected function bindFactory($id, callable $value)
    {
        $this->bind($id, $this->container->factory($value));
    }
302802
public function view($id)
    {
        $this->builder->setMode(Builder::MODE_VIEW);
        $this->builder->setResourceId($id);

        $this->setFieldValue($id);

        return $this;
    }
1039731
public function createSlug($value, $id = 0)
    {
        $slug = str_slug($value);

        $relatedSlugs = $this->getRelatedSlugs($slug, $id);

        if (!$relatedSlugs->contains('slug', $slug)) {
            return $slug;
        }

        $completed = false;
        $i = 1;

        while ($completed == false) {
            $newSlug = $slug .'-'.$i;
            if (!$relatedSlugs->contains('slug', $newSlug)) {
                return $newSlug;
            }
            $i++;
        }

        return $slug;
    }
23111
public static function instance($id)
	{
		$class = get_called_class();

		if (empty(static::$instances[$class][$id]))
		{
			static::$instances[$class][$id] = new static($id);
		}

		return static::$instances[$class][$id];
	}
71612
public function setId(int $value) : ScheduledJob
    {

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

        return $this;
    }
780163
public function setId(int $value) : Setting
    {

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

        return $this;
    }
251067
public function set($name, $value)
    {
        //If it's an object, save its ID as the parameter
        if(is_object($value) && method_exists($value, 'getId'))
        {
            $this->parameters[$name] = $value->getId();
        }

        //Just save the parameter
        else
        {
            $this->parameters[$name] = $value;
        }

        return $this;
    }
707944
private static function fieldToString($id, $value)
	{
		$l = strlen($value);
		return chr($id) . ($l == 0 ? "\x00\x00" : (pack("v", $l) . $value));
	}
314844
public function inc($id, $value = 1) {
		$event  = $this->getProfiler()->startWrite('Inc: ' . $id);
		$result = $this->getBackend()->inc($id, $value);
		
		if ($result === false) {
			$event->stopError();
		} else {
			$event->stopSuccess();
		}
		
		return $result;
	}
995196
public function setValue(string $id, $value, bool $multi = false): self
    {
        return $this->set($id, new Definition\Value($value), $multi);
    }
518378
public function setRoleParent(int $id, string $value): void
	{
		if ($this->isAjax()) {
			$role = $this->orm->aclRoles->getById($id);
			$role->parent = $value;
			$this->orm->persistAndFlush($role);

			$this->flashNotifier->success('default.dataSaved');
			$this['rolesList']->redrawItem($id);
		} else {
			$this->terminate();
		}
	}
286487
function SetCache($type, $id, $value) {
		if (!isset($this->cache[$type]) || !$this->cache[$type]) // Dont cache this type of call
			return $value;
		if ($value) {
			if (!isset($this->_cache[$type]))
				$this->_cache[$type] = array();
			$this->_cache[$type][$id] = $value;
			return $this->_cache[$type][$id];
		} elseif (isset($this->_cache[$type][$id])) {
			unset($this->_cache[$type][$id]);
			return null;
		}
	}
104691
public static function find($id)
	{
		$object = new static;
		$response = $object->request('GET', sprintf('%s/%s', $object->getUrl(), $id));

		return $response ? $object : false;
	}