Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ConcatDecorator.php « decorators « src - github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a81edaf6920b92104b7f5f7750d56e454954c5af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php

/**
 * PHPPgAdmin 6.1.3
 */

namespace PHPPgAdmin\Decorators;

class ConcatDecorator extends Decorator
{
    public $c;
    public function __construct($values)
    {
        $this->c = $values;
    }

    /**
     * @return string
     */
    public function value($fields)
    {
        $accum = '';

        foreach ($this->c as $var) {
            $accum .= Decorator::get_sanitized_value($var, $fields);
        }

        return \trim($accum);
    }
}