Vrací nesparovane platby odpovídající zadaným parametrům

@param array $what
@return array
19164
public function findPayment($what)
    {
        $result                                  = null;
        $this->banker->defaultUrlParams['order'] = 'datVyst@A';
        $payments                                = $this->banker->getColumnsFromFlexibee([
            'id',
            'varSym',
            'specSym',
            'buc',
            'sumCelkem',
            'mena',
            'stitky',
            'datVyst'],
            ["(".\FlexiPeeHP\FlexiBeeRO::flexiUrl($what, 'or').") AND sparovano eq 'false'"],
            'id');
        if ($this->banker->lastResponseCode == 200) {
            $result = $payments;
        }

        return $result;
    }
879409
protected function _where($key, $val=[]): array
	{
		$where = [];
		$pairs = [];

		if (is_scalar($key))
		{
			$pairs[$key] = $val;
		}
		else
		{
			$pairs = $key;
		}

		foreach($pairs as $k => $v)
		{
			$where[$k] = $v;
			$this->state->appendWhereValues($v);
		}

		return $where;
	}
475429
public function where($where)
    {
        //Argument 1 must be a string or array
        Argument::i()->test(1, 'string', 'array');
        
        if (is_string($where)) {
            $where = array($where);
        }
        
        $this->where = array_merge($this->where, $where);
        
        return $this;
    }
787364
protected function quote($what)
    {
        if (is_array($what)) {
            if (1 === count($what)) return '`' . $what[0] . '`';
            else return '`' . implode('`, `', $what) . '`';
        } else {
            return '`' . $what . '`';
        }
    }
838538
protected static function get_records($whereclause, $params) {
        global $DB;
        // Retrieve from DB only the fields that need to be stored in cache.
        $fields = array_keys(array_filter(self::$coursecatfields));
        $ctxselect = context_helper::get_preload_record_columns_sql('ctx');
        $sql = "SELECT cc.". join(',cc.', $fields). ", $ctxselect
                FROM {course_categories} cc
                JOIN {context} ctx ON cc.id = ctx.instanceid AND ctx.contextlevel = :contextcoursecat
                WHERE ". $whereclause." ORDER BY cc.sortorder";
        return $DB->get_records_sql($sql,
                array('contextcoursecat' => CONTEXT_COURSECAT) + $params);
    }
181885
protected function whereBetween(array $where)
    {
        return $this->wrap($where['column']) . ' ' . ($where['not'] ? 'NOT BETWEEN' : 'BETWEEN') . ' ' . $this->param($where['value1']) . ' AND ' . $this->param($where['value2']);
    }
1222840
protected function _parseParams(array $params, \Mmi\Orm\RecordRo $record)
    {
        //inicjalizacja parametrów
        $parsedParams = [];
        $matches = [];
        //iteracja po parametrach
        foreach ($params as $key => $param) {
            //parametr %pole%
            if (preg_match('/%([a-zA-Z]+)%/', $param, $matches)) {
                $parsedParams[$key] = $record->{$matches[1]};
                continue;
            }
            //w pozostałych przypadkach przepisanie parametru
            $parsedParams[$key] = $param;
        }
        return $parsedParams;
    }
1024001
public function where($where, &$params)
    {
        if (!is_array($where)) {
            throw new \Exception("Invalid where clause specified, must be an array");
        }

        $params = Helper::toArray($params);

        $query = "";

        $andFlag = false;

        foreach ($where as $field => $value) {

            # Add the and flag if this isn't the first field
            if ($andFlag) {
                $query .= "AND ";
            } else {
                $andFlag = true;
            }

            # Add the field name to the query
            $query .= $this->quoteField($field);

            # Convert arrays to use the in helper
            if (is_array($value)) {
                $helperMap = [
                    "<"     =>  "lessThan",
                    "<="    =>  "lessThanOrEqualTo",
                    ">"     =>  "greaterThan",
                    ">="    =>  "greaterThanOrEqualTo",
                    "="     =>  "equals",
                    "<>"    =>  "notEqualTo",
                ];
                $clause = (string) reset($value);
                if (count($value) === 2 && isset($helperMap[$clause])) {
                    $method = $helperMap[$clause];
                    $val = next($value);
                    trigger_error("Using arrays for complex where clauses is deprecated in favour of the helper methods, eg Sql::" . $method . "(" . $val . ")", E_USER_DEPRECATED);
                    $value = static::$method($val);
                } else {
                    $value = static::in($value);
                }
            }

            # Any parameters not using a helper should use the standard equals helper
            if (!is_object($value)) {
                $value = static::equals($value);
            }

            $query .= " " . $value->getClause() . " ";
            foreach ($value->getValues() as $val) {
                $params[] = $val;
            }
        }

        return $query;
    }
743660
public function get($table, $where = array(), $offset = null, $count = null, $time = null, $order = array(), $od = "ValidFrom", $do = "ValidUntil", $id2 = "ID", $cols = array(), $groupby = array(), $having = array(), $distinct = false, $fast = false) {
        $data = array("QueryBuilder" => array("Where" => $where, "Offset" => $offset, "Limit" => $count, "Time" => $time, "Sort" => $order, "Cols" => $cols, "GroupBy" => $groupby, "Having" => $having, "Distinct" => $distinct));
        $data["ApiKeySession"] = $this->Session;
        $data["CRC"] = Client::MakeCRC($data, $this->ApiPass);
        try {
            $results = Client::Call($this->Server . "/" . $table . "/Request", $data);
            return new APIResult($results);
        }
        catch(\Exception $exc) {
            $this->lastError = $exc->getMessage();
            if (self::$DEBUG_CRC) {
                if (strpos($this->lastError, "CRC does not match")) {
                    $add = "Request failed! Client data: ";
                    $add.= \AsyncWeb\Api\REST\Client::MakeHashString($data);
                    $add.= " CRC: " . Client::MakeCRC($data, $this->ApiPass);
                    $this->lastError.= "<br>\n" . $add;
                }
            }
            return false;
        }
    }
971644
public static function getArticleList($where = [])
    {
        $where = array_merge($where, ['type' => ArticleModel::ARTICLE, 'status'=>ArticleModel::ARTICLE_PUBLISHED]);
        $query = ArticleModel::find()->select([])->where($where);
        $dataProvider = new ActiveDataProvider([
            'query' => $query,
            'sort' => [
                'defaultOrder' => [
                    'sort' => SORT_ASC,
                    'id' => SORT_DESC,
                ]
            ]
        ]);
        return $dataProvider;
    }
444731
protected function retrieveParams(array $data)/*# : array */
    {
        $params = [];
        foreach ($data as $i => $val) {
            if (0 === $i % 2) {
                $params[$val] = $data[$i + 1];
            }
        }
        return $params;
    }
804711
public function add($what = '.')
    {
        $this->clearAll();
        $this->addCommandName(self::GIT_ADD);
        $this->addCommandArgument('--all');
        $this->addCommandSubject($what);

        return $this->getCommand();
    }
497923
public function getVariable($which)
    {
        if (isset($this->data[$which])) {
            return $this->data[$which];
        } elseif (isset($this->config["data"])) {
            return $this->config["data"][$which];
        }

        return null;
    }
107668
public function or_where($wheres = array())
	{
		if (count($wheres) > 0)
		{
			if ( ! isset($this->wheres['$or']) or ! is_array($this->wheres['$or']))
			{
				$this->wheres['$or'] = array();
			}

			foreach ($wheres as $wh => $val)
			{
				$this->wheres['$or'][] = array($wh => $val);
			}
		}
		return $this;
	}
918520
public function getWhereParameters()
    {
        $params = [];
        foreach ($this->filters as $filter) {
            $params = array_merge($params, $filter->getParameters());
        }

        return $params;
    }
553795
public function update($table, array $data = [], $where = '', array $whereBind = [])
    {
        $fields = '';
        $bind = [];
        //jeśli brak danych wyjście z metody
        if (empty($data)) {
            return 1;
        }
        //wiązanie parametrów
        foreach ($data as $key => $value) {
            $bindKey = PdoBindHelper::generateBindKey();
            $fields .= $this->prepareField($key) . ' = :' . $bindKey . ', ';
            $bind[$bindKey] = $value;
        }
        //budowanie zapytania aktualizującego
        $sql = 'UPDATE ' . $this->prepareTable($table) . ' SET ' . rtrim($fields, ', ') . ' ' . $where;
        return $this->query($sql, array_merge($bind, $whereBind))->rowCount();
    }
1368849
static  function find($list, $where) {
        if (is_array($where)) {
            foreach ($list as $item) {
                $is_ok = true;
                foreach ($where as $key => $value) {
                    if ($item[ $key ] != $value) {
                        $is_ok = false;
                        break;
                    }
                }
                if ($is_ok) {
                    return $item;
                }
            }
        } else {
            foreach ($list as $item) {
                if ($where($item)) {
                    return $item;
                }
            }
        }
        return null;
    }