Adds a variable to be bound to in the prepared statement

@param string      $name
@param mixed       $value
@param bool|string $data_type
163969
public function bind_value( string $name, $value, $data_type = false ) {
		$this->values_to_bind[ $name ] = array(
			'value'     => $value,
			'data_type' => $data_type,
		);
	}
1193695
public function bindParam($parameter, &$variable, int $dataType = \PDO::PARAM_STR, int $length = null, $driverOptions = null): bool
    {
        return $this->statement->bindParam($parameter, $variable, $dataType, $length, $driverOptions);
    }
388738
public function bindParam($parameter, &$variable, $data_type = PDO::PARAM_STR, $length = null, $driver_options = null) {
		$this->boundValues[$parameter] = $variable;
		return parent::bindParam($parameter, $variable, $data_type, $length, $driver_options);
	}
756941
public function set(NameValue $name, Data $value, int $attributes = PropertyAttribute::NONE): void
    {
    }
553913
public function bindValue($name, $value, $type = null)
    {
        return $this->stmt->bindValue($name, $value, $type);
    }
111960
public function def($name, $value)
	{
		if (isset($this->data[$name]))
		{
			return;
		}

		$this->data[$name] = $value;
	}
122456
public function bindParam($parameter, &$variable, $data_type = PDO::PARAM_STR, $length = 4000, $driver_options = null) {
		if (strpos($parameter, ':') === false) {
			$parameter = ':' . $parameter;
		}

		if (stripos($this->queryString, $parameter) === false) {
			return true;
		}

		$isOutputParameter = $this->checkBitFlag($data_type, PDO::PARAM_INPUT_OUTPUT);
		$data_type = $this->removeBitFlag($data_type, PDO::PARAM_INPUT_OUTPUT);
		$ociParamType = $this->pdo2OciParamConst($data_type);

		if ($ociParamType === SQLT_CHR) {
			$variable = (string) $variable;
		}

		if (is_array($variable)) {
			// TODO Не съм сигурен, дали ще се използва някога
			$res = @oci_bind_array_by_name($this->stmt, $parameter, $variable, count($variable), $length, $ociParamType);
			$this->checkError($res);
		}
		else {
			// Cursor
			if ($ociParamType == OCI_B_CURSOR) {
				$statementType = @oci_statement_type($this->stmt);
				$this->checkError($statementType);
				if(!in_array($statementType, array('BEGIN', 'DECLARE'))) {
					throw new Exception('Bind cursor only in BEGIN or DECLARE statement');
				}
				$this->_cursor = @oci_new_cursor($this->ociPdoAdapter->getOciConnection());
				$res = $this->_cursor;
				$this->checkError($res);
				$res = @oci_bind_by_name($this->stmt, $parameter, $this->_cursor, -1, $ociParamType);
				$this->checkError($res);
			}
			// LOBs
			elseif ($lob_desc = $this->oci_lob_desc($ociParamType)) {
				$this->_lobs[$this->_lobsCount]['type'] = $ociParamType;
				$this->_lobs[$this->_lobsCount]['lob'] = @oci_new_descriptor($this->ociPdoAdapter->getOciConnection(), $lob_desc);
				$res = $this->_lobs[$this->_lobsCount]['lob'];
				$this->checkError($res);
				$res = @oci_bind_by_name($this->stmt, $parameter, $this->_lobs[$this->_lobsCount]['lob'], -1, $ociParamType);
				$this->checkError($res);
				if (! $isOutputParameter) {
 					if (is_resource($variable) && get_resource_type($variable) === 'stream') {
 						$this->_lobs[$this->_lobsCount]['var'] = '';
 						$res = @$this->_lobs[$this->_lobsCount]['lob']->writeTemporary($this->_lobs[$this->_lobsCount]['var'], (($ociParamType == SQLT_BLOB) ? OCI_TEMP_BLOB : OCI_TEMP_CLOB));
						$this->checkError($res);
						$buffer = 8192;
						while (! feof($variable)) {
							$res = @$this->_lobs[$this->_lobsCount]['lob']->write(fread($variable, $buffer));
							$this->checkError($res);
							$res = @$this->_lobs[$this->_lobsCount]['lob']->flush();
							$this->checkError($res);
						}
					}
					else {
						$variable = (string) $variable;
						$this->_lobs[$this->_lobsCount]['var'] = &$variable;
						$res = @$this->_lobs[$this->_lobsCount]['lob']->writeTemporary($this->_lobs[$this->_lobsCount]['var'], (($ociParamType == SQLT_BLOB) ? OCI_TEMP_BLOB : OCI_TEMP_CLOB));
						$this->checkError($res);
						$res = @$this->_lobs[$this->_lobsCount]['lob']->flush();
						$this->checkError($res);
					}
				}
				else {
					$this->_lobs[$this->_lobsCount]['var'] = &$variable;
				}
				$this->_lobs[$this->_lobsCount]['input'] = ! $isOutputParameter;

				$this->_lobsCount++;
			}
			// Other
			else {
				$res = @oci_bind_by_name($this->stmt, $parameter, $variable, $length, $ociParamType);
				$this->checkError($res);
			}
		}

		return $res;
	}
268151
public function bindValue($parameter, $value, $data_type = PDO::PARAM_STR)
	{
		$this->bindValues[$parameter] = array($parameter, $value, $data_type);
	}
1038986
public static function input($type, $name, $value = null, array $attributes = array())
    {
        if ($type === 'textarea') {
            $input = '<textarea{{attr}}>';

            if ($value !== null) {
                $input .= self::entities($value);
            }

            $input .= '</textarea>';
        } elseif (preg_match('#^(' . self::$alloweds . ')$#', $type)) {
            $input = '<input type="' . $type . '" value="';

            if ($value !== null) {
                $input .= self::entities($value);
            }

            $input .= '"{{attr}}' . self::$useXhtml . '>';
        } else {
            throw new Exception('Invalid type');
        }

        return self::setAttr($attributes, $input, $name, $type);
    }
1372004
public function addSql($name, $type = self::SQL_START, $value = '') {
        if ($this->_enabled == true) {
            switch ($type) {
                case self::SQL_START:
                    if (isset($this->_sql[$name])) {
                        $this->_lastSql = $name;
                    }
                    else {
                        $this->_lastSql = $name . rand(0, 10);
                    }

                    $this->_sql[$this->_lastSql] = [];
                    $this->_sql[$this->_lastSql]['time'] = microtime(true);
                    break;

                case self::SQL_END:
                    $this->_sql[$this->_lastSql]['time'] = round((microtime(true) - $this->_sql[$this->_lastSql]['time']) * 1000, 4);
                    $this->_sql[$this->_lastSql]['query'] = $value;
                    break;
            }
        }
    }
971340
public function type($name, $value)
    {
        $schema = Config::table($this->name)->schema();
        if (array_key_exists($name, $schema) && $schema[$name] == gettype($value))
        {
            return true;
        }
        throw new dbException('Wrong data type');
    }
351637
public static function setVar($name,$value){
		self::init();
		self::$variables[$name]=$value;
		return true;
		}
1168060
public void addParamPost(String name, String value) {
        addParam(name, value, NameValuePair.TYPE_POST_DATA);
    }
133488
public function bind($value, $type = PDO::PARAM_STR, $name = null)
    {
        if (is_array($value)) {
            $this->bind = array_merge($this->bind, $value);
        } else {
            $name = $name ?: 'ThinkBind_' . (count($this->bind) + 1) . '_';

            $this->bind[$name] = [$value, $type];
            return $name;
        }

        return $this;
    }
710384
public function addType($name, $type, $data = null, $options = array())
    {
        $this->types[$name] = $type;
        $this->data[$name] = $data;
        $this->options[$name] = $options;

        return $this;
    }
550517
protected static function set(string $name, string $value): void
    {
        $name = \trim($name);

        if (
            (isset($name[0]) && $name[0] === '#') ||
            (static::$immutable && static::get($name) !== null)
        ) {
            return;
        }

        static::$names[] = $name;
        $value = \trim($value);

        // If PHP is running as an Apache module and an existing
        // Apache environment variable exists, overwrite it
        if (
            \function_exists('\\apache_setenv') &&
            \function_exists('\\apache_getenv') &&
            \apache_getenv($name) !== false
        ) {
            \apache_setenv($name, $value);
        }

        if (\function_exists('\\putenv')) {
            \putenv("$name=$value");
        }

        $_ENV[$name] = $value;
        $_SERVER[$name] = $value;
    }
1026260
protected function addData($name, $value)
    {
        if (!empty($name)) {
            if (is_array($value)) {
                $this->dataDocument->addArray(self::DATA_PATH_ROOT, $value, $name);
            } elseif ($value instanceof DOMNodeList) {
                $this->dataDocument->copyNodes(self::DATA_PATH_ROOT, $value);
            } elseif ($value instanceof Library\Dom) {
                $this->dataDocument->copyNodes(self::DATA_PATH_ROOT, $value->getNodes('/'));
            } elseif (is_object($value)) {
                $this->dataDocument->addObject(self::DATA_PATH_ROOT, $value, $name);
            } else {
                $this->dataDocument->addNode(self::DATA_PATH_ROOT, $name, $value);
            }
        }
    }