Affiche un objet ou un tableau d'objets en appliquant au préalable la méthode $method à chacun d'entre eux
@param mixed $values Valeur(s) à afficher
@param string $method Méthode de la classe GUI ou de la classe de $value
@param string $implode séparateur
425798
public static function show($values, $method='toString', $implode="<br/>") {
		if (is_array($values)) {
			foreach ( $values as $v ) {
				self::showOne($v, $method);
				echo $implode;
			}
		} else
			Gui::showOne($values, $method);
	}
494215
public static function nullifyStrings(&$values) {
		foreach($values as $key => $value) {
			if(is_array($values)) {
				$item = &$values[$key];
			} else if(is_object($values)) {
				$item = &$values->{$key};
			} else {
				$item = null;
			}
			
			if(is_array($item) or is_object($item)) {
				Values::nullifyStrings($item);
			}
			
			Values::nullifyString($item);
		}
	}
830066
function implode_tokens( array $a ){
		$b = array();
		foreach( $a as $token ){
			$b[] = $this->token_name( $token );
		}
		return implode( ' ', $b );
	}
87784
private function addMethod($method)
    {
        $tokens = $this->methodParser->parse($method);
        $query = $this->queryBuilder->build($tokens, $this->tableName, $this->namingContention, $this->entityClass);
        if ($query->getResultMode() <= QueryBuilderResult::RESULT_SELECT_MULTIPLE) {
            $this->addSelectionMethod($query, $method);
        } else {
            $this->addIntResultMethod($query, $method);
        }

    }
721666
public function implode($glue, $queries)
    {
        $first = true;
        foreach ($queries as $query) {
            if ($first) {
                $first = false;
            } else {
                $this->_query .= ' ' . $glue;
            };
            $this->append($query);
        };
        return $this;
    }
525513
public function implode($value, $glue = null)
		{
			$first = $this->first();

			if (is_array($first) || is_object($first)) {
				return implode($glue, $this->lists($value));
			}

			return implode($value, $this->items);
		}
1044431
protected static function implodeRegular(array $values, $nonFilter = null)
    {
        $values = self::stripNonSQLCharactersArray($values, $nonFilter);
        $nonEmptyValues = array();

        foreach ($values as $value) {
            if ($value !== '') {
                $nonEmptyValues[] = $value;
            }
        }

        return self::implode($nonEmptyValues);
    }
1233481
public static function byObjectMethod($values, $method)
    {
        if (isset($values) && Inspector::isTraversable($values)) {
            if (is_array($values)) {
                $flat_values = array();
                $setter = 'setArrayValue';
            } else {
                $flat_values = new \stdClass();
                $setter = 'setObjectValue';
            }

            foreach ($values as $key => $value) {
                if (is_object($value) && method_exists($value, $method)) {
                    $flat_value = $value->{$method}();
                    static::$setter($flat_values, $key, $flat_value);
                } else {
                    static::$setter($flat_values, $key, $value);
                }
            }

            return $flat_values;
        }

        return $values;
    }
483563
public function method(string $method, string ...$methods): self
    {
        array_unshift($methods, $method);

        return $this->setAllowedMethods($methods);
    }
827449
final public function setValues(array $values) {
		if (is_array($values)) {
			foreach (array_keys($this->toArray()) as $key) {
				if (array_key_exists($key, $values)) {
					ObjectMixin::set($this, $key, $values[$key]);
				}
			}
		}
	}
1364951
private function implodePregQuote($glue, array $pieces, $delimiter = null)
    {
        foreach ($pieces as &$p) {
            $p = preg_quote($p, $delimiter);
        }
        return implode($glue, $pieces);
    }
1091240
protected static function checkMethods($value, $method)
    {
        $valid = false;
        if ($value === 'AJAX' && self::isAjax() && $value === $method) {
            $valid = true;
        } elseif ($value === 'AJAXP' && self::isAjax() && $method === 'POST') {
            $valid = true;
        } elseif (in_array($value, explode('|', self::$validMethods)) && ($value === $method || $value === 'ANY')) {
            $valid = true;
        }

        return $valid;
    }
1299596
static function implodeRecursive($glue, $pieces)
    {
        $items = [];
        foreach ($pieces as $item){
            if (is_array($item)){
                $items[] = self::implodeRecursive($glue, $item);
            }else{
                $items[] = $item;
            }
        }
        return implode($glue, $items);
    }
1029127
public static function getOne($value, $method='toString') {
		if (method_exists("GUI", $method)) {
			$value=self::$method($value);
		} else {
			$value=UString::toString($value);
		}
		return $value;
	}
502718
public function removeFind(string $method, $value) : self
    {
        $list = $this->find($method, $value);
        foreach ($list as $element) {
            $this->removeInstance($element);
        }

        return $list;
    }
619020
public static function implode($glue, $pieces)
	{
		$pieces = static::asArray($pieces);

		return static::is_array($pieces) ? implode($glue, $pieces) : NULL;
	}
92277
private function implode($value, $separator = '|'): string
    {
        if (is_string($value)) {
            return $value;
        }

        if (is_array($value) && count($value) === 1) {
            return reset($value);
        }

        return sprintf('(%s)', collect($value)->implode($separator));
    }