Select redirect data

@param string $k
@param bool   $isDelete = false

@return false|mixed
770023
public function selectData(String $k, Bool $isDelete = false)
    {
        if( $data = ($_SESSION[$this->fix . $k] ?? NULL) )
        {
            if( $isDelete === true )
            {
                $this->deleteData($k);
            }

            return $data;
        }
        else
        {
            return false;
        }
    }
1281929
public function redirect(string $url, $data = null)
    {
        return $this->response([
            'success' => true,
            'redirect' => $url,
            'data' => $data,
        ]);
    }
936874
public static function permanentRedirect($url, $externalRedirect = false) {
		/** @var Response $response */
		$response = new static();
		$response->redirect($url, $externalRedirect, self::HTTP_PERMANENT_REDIRECT);
		return $response;
	}
1107362
protected function _afterDelete(KControllerContextInterface $context)
    {
        $name = $this->getMixer()->getIdentifier()->name;

        if ($name === $this->_entity)
        {
            foreach ($context->result as $entity)
            {
                if ($entity->getStatus() === KDatabase::STATUS_DELETED) {
                    $this->_getDispatcher()->trigger('onFinderAfterDelete', array($this->_event_context, $entity));
                }
            }
        }
    }
359570
public function exchange_delete(
        $exchange,
        $if_unused = false,
        $nowait = false,
        $ticket = null
    ) {
        $ticket = $this->getTicket($ticket);
        list($class_id, $method_id, $args) = $this->protocolWriter->exchangeDelete(
            $ticket,
            $exchange,
            $if_unused,
            $nowait
        );

        $this->send_method_frame(array($class_id, $method_id), $args);

        if ($nowait) {
            return null;
        }

        return $this->wait(array(
            $this->waitHelper->get_wait('exchange.delete_ok')
        ), false, $this->channel_rpc_timeout);
    }
29808
public function getRedirectUrl($defaultRedirect = null, $key = null) {
		$redirect = $this->_getRedirectCache($key);
		if (empty($redirect)) {
			if (!empty($defaultRedirect)) {
				if ($defaultRedirect === true) {
					$redirect = $this->_controller->request->here();
				} else {
					$redirect = $defaultRedirect;
				}
			} else {
				$redirect = ['action' => 'index'];
			}
		}

		return $redirect;
	}
743251
public function delete($id = null) {
		$country = $this->Countries->get($id);

		if ($this->Countries->delete($country)) {
			$this->Flash->success(__('record del {0} done', $id));
			return $this->redirect(['action' => 'index']);
		}

		$this->Flash->error(__('record del {0} not done exception', $id));
		return $this->redirect(['action' => 'index']);
	}
1329136
protected function _getRedirectUrl()
    {
        $r = $this->_getRedirectRow();

        if (isset($r->type) && $r->type && $r->type != 'redirect') {
            throw new Kwf_Exception_NotFound('Invalid type');
        }

        return $r->value;
    }
942226
public function delete($key) {
        $used_key = $this->getUsedKey($key);
        return ($this->redis->delete($used_key) > 0);
    }
905733
public function delete(): bool
    {
        $this->invokeHook("delete");

        if ($this->softDelete) {
            $val = $this->delValType === self::SDEL_VAL_TIMESTAMP
                ? ["func" => "NOW()"]
                : true;
            $status = $this->update([$this->delCol => $val]);
        } else {
            $query = $this->qBuilder->table($this->table)->delete();
            if (($status = $this->db->execute($query)) === false) {
                $this->error = $this->db->lastError();
            }
            $this->qBuilder->reset();
        }

        $this->invokeHook("delete", self::HOOK_AFTER);
        return $status;
    }
201726
final public function hget($key, $hkey=null) {
		$res = $this->connection->hget($key, $hkey);
		self::$logger->info(sprintf(
			"Redis: hget %s.%s: '%s'.", $key, $hkey, $res));
		return $res;
	}
24952
public function zRevRange($key, $start, $stop, $isWithScore = false) {
        return $this->getHandler($this->judge(__FUNCTION__))->zRevRange($key, $start, $stop, $isWithScore);
    }
1029592
public function redirectTo( $url = 0, $code = 302 ) {
		if ( $url === null ) {
			$this->redirectTo = null;
			return true;
		}
		if ( !is_string( $url ) || !is_int( $code ) ) {
			return false;
		}
		$this->redirectTo = [ $url, $code ];
		return true;
	}
948625
public function Delete($table, $where = null)
    {
        if (empty($table) || empty($where) && is_array($where)) {
            return false;
        }

        $delete = $this->queryFactory->newDelete();

        //Set the table from which the data is to be deleted
        $delete->from($table);

        //Set the where
        $delete->where($this->convertWhereToString($where));

        return $this->exec($delete->getStatement());
    }
569072
public function delete()
    {
        if ($this->getPk() === null) {
            return false;
        }
        $query = $this->_queryClass;
        $bindKey = PdoBindHelper::generateBindKey();
        $result = DbConnector::getAdapter()->delete((new $query)->getTableName(), $this->_pkWhere($bindKey), [$bindKey => $this->getInitialStateValue('id')]);
        return ($result > 0) ? true : false;
    }
473633
protected function _actionCancel(KControllerContextInterface $context)
	{
        //Create the redirect
        $context->response->setRedirect($this->getReferrer($context));

        if ($context->result instanceof KModelEntityInterface) {
            $entity = $context->result;
        }
        else
        {
            $model  = $this->getModel();
            $entity = $model->getState()->isUnique() ? $model->fetch() : $model->create();
        }

        return $entity;
	}
1003955
public function getDelete($sid)
    {
        $image = Image::find($sid);
        
        if ($image == null) {
            $errors = new MessageBag;
            $errors->add('deleteError', trans('redminportal::messages.error_delete_image'));
            return redirect()->back()->withErrors($errors);
        }
        
        $image->delete();
        
        return redirect()->back();
    }