Track the domain and get the id.

@param  string  $name

@return int
353501
private function trackDomain($name)
    {
        return $this->makeModel(BindingManager::MODEL_DOMAIN)
            ->newQuery()
            ->firstOrCreate(compact('name'))
            ->getKey();
    }
672113
public function id($name)
    {
        $keepIdx = preg_replace('/\[(\d+)\]/', "_$1", $name);
        $unbracketted = $this->removeBrackets($keepIdx, '_');
        $nothingWeird = preg_replace('/[^\w\d\_]+?/', "", $unbracketted);
        $noTrail = preg_replace('/_$/', "", $nothingWeird);

        $clean = $noTrail;

        if (!is_null($this->associatedEntity) && $this->associatedEntity->isSupportedAttribute($name)) {
            $clean = $this->associatedEntity->getInputName() . "_" . $clean;
        }

        return $this->keys['POST_WRAP'] . "_" . $clean;
    }
459061
public static function get($name)
    {
        if (self::existe($name)) {
            return $_COOKIE[$name];
        }

        exception(CookieKeyNotFoundException::class, $name);
    }
1088864
protected function getWhere($name)
    {
        if (isset($this->wheres[$name])) {
            return $this->wheres[$name];
        }

        if (isset(self::$patterns[$name])) {
            return self::$patterns[$name];
        }

        return false;
    }
1006088
public function get(string $name)
    {
        if (!isset(self::$namedStates[$name])) {
            throw new DomainException("Unknown state: $name");
        }
        return self::$namedStates[$name];
    }
1321187
public function find($name)
	{
		$hztp = new self();

		if (is_numeric($name))
		{
			$hztp->id = $name;
		}
		else
		{
			$hztp->name = $name;
		}

		if ($hztp->read() == false)
		{
			return false;
		}

		return $hztp;
	}
295687
public static function get($name)
    {
        if (!self::isExist($name)) return false;
        $value = $_COOKIE[Config::get('cookie_prefix') . $name];
        return Encry::decrypt($value);
    }
1093295
public function findKey($name): ?int
    {
        $keyword = $this->getKeyword($name);

        if (! (\is_numeric($name) && $keyword->hasIn($this->items))) {
            return (string) $keyword->searchIn($this->items);
        }

        return $name;
    }
748468
protected function _id($name, $val)
    {
        $name = $this->_domId($name);

        $idSuffix = mb_strtolower(str_replace(['/', '@', '<', '>', ' ', '"', '\''], '-', $val));
        $count = 1;
        $check = $idSuffix;
        while (in_array($check, $this->_idSuffixes)) {
            $check = $idSuffix . $count++;
        }
        $this->_idSuffixes[] = $check;

        return trim($name . '-' . $check, '-');
    }
723523
public function getLocator($name)
    {
        $locator = false;

        if($this->isRegistered($name)) {
            $locator = $this->__locators[$name];
        }

        return $locator;
    }
332833
public function get($name = NULL) {
        if ($name === NULL) {
            return $_COOKIE;
        }

        return isset($_COOKIE[$name]) ? $_COOKIE[$name] : NULL;
    }
581781
public function getIncomingTrackerCookie($name)
    {
        if (isset($this->incomingTrackerCookies[$name])) {
            return $this->incomingTrackerCookies[$name];
        }
        
        return false;
    }
306860
public function offsetGet($name)
    {
        $data = [];
        if (!isset($this->_hashes[$name])) {
            throw new RuntimeException("Unexisting Set-Cookie `'{$name}'`.");
        }
        foreach ($this->_hashes[$name] as $key => $hash) {
            $data[] = $this->_data[$hash];
        }
        return $data;
    }
478081
private function getStatValue($name)
    {
        if (isset($this->_extra[self::ENTRY_STATS][$name])) {
            return $this->_extra[self::ENTRY_STATS][$name];
        }

        return 0;
    }
546914
public function getMigrationIndex($name)
    {
        foreach ($this->getMigrations() as $key => $migration) {
            if ($migration->name == $name) {
                return $key;
            }
        }

        return -1;
    }
618775
protected function getQueueId($name)
    {
        $r = $this->db->fetchColumn('select queue_id from Queues where queue_name = ? limit 1', [$name]);

        if ($r === false) {
            throw new RuntimeException(t('Queue does not exist: %s', $name));
        }

        $count = (int) $r;

        return $count;
    }
921951
public function getParam($name)
    {
        if (isset($this->transaction[$name])) {
            return $this->transaction[$name];
        } else {
            return false;
        }
    }