public function getFromCookie()
    {
        $varName = $this->getCurrentVarName();
        if (isset($_COOKIE[$varName])) {
            $recordId = $_COOKIE[$varName];

            $item = $this->findOne(intval($recordId));
            if ($item) {
                return $item;
            }
        }

        return false;
    }