@param string[] $list

@return $this
176007
public function setBlackList(array $list)
    {
        $list = array_unique(array_filter(array_map('trim', array_values($list))));
        sort($list);
        if ($this->blackList !== $list) {
            $this->clear();
            $this->blackList = $list;
        }
        return $this;
    }
993320
public static function build($list)
    {
        if (is_string($list)) {
            return $list;
        }

        if ($list instanceof self) {
            $list = $list->tokens;
        }

        $ret = '';
        if (is_array($list)) {
            foreach ($list as $tok) {
                $ret .= $tok->token;
            }
        }

        return $ret;
    }
721668
public function removeFromList()
    {
        if ( ! $this->isInList()) return $this;

        $this->decrementPositionsOfItemsBelow();
        $this->setListPosition(null);

        return $this;
    }
927289
public function fromArray( array $list )
	{
		$unknown = array();
		$list = parent::fromArray( $list );

		foreach( $list as $key => $value )
		{
			switch( $key )
			{
				case 'order.base.address.baseid': $this->setBaseId( $value ); break;
				case 'order.base.address.addressid': $this->setAddressId( $value ); break;
				case 'order.base.address.type': $this->setType( $value ); break;
				default: $unknown[$key] = $value;
			}
		}

		return $unknown;
	}
177294
public function setWhereList($field_list = array())
    {
        if (empty($field_list)) $this->_where_list = array();
        $this->_where_list = (array)$field_list;

        return $this;
    }
1329817
protected function prepareMethodsCheckout(array &$list)
    {
        foreach ($list as &$item) {
            if (isset($item['module']) && isset($item['image'])) {
                $path = GC_DIR_MODULE . "/{$item['module']}/{$item['image']}";
                $item['image'] = $this->url(gplcart_path_relative($path));
            }
        }
    }
699711
protected static function expandClosures( $list ) {
		return array_map( function ( $value ) {
			if ( is_object( $value ) && $value instanceof Closure ) {
				// If $value is a Closure, call it.
				return $value();
			} else {
				return $value;
			}
		}, $list );
	}
77676
public function insertStyles($list)
    {
        if (!is_array($list)) {
            $list = [$list];
        }
        $this->styles = $list;
        return $this;
    }
1203601
public function prependImageList($list) {
		$currentList = $this->getImageList();
		$list = array_merge($list, $currentList);
		return $this->setImageList($list);
	}
364794
public function setItems($list)
    {
        if (!is_array($list)) {
            $this->items = null;

            return;
        }

        $items = [];
        foreach ($list as $index => $element) {
            if ((!is_object($element) || !($element instanceof \ShopgateOrderItem)) && !is_array($element)) {
                unset($list[$index]);
                continue;
            }

            if ($element instanceof \ShopgateOrderItem) {
                $element = $element->toArray();
            }

            $item = $this->itemFactory->create();
            $item->loadArray($element);
            $items[$item->getItemNumber()] = $item;
        }

        $this->items = $items;
    }
1279393
public static function rmFromList($element, $list) {
		$items = explode(',', $list);
		foreach ($items as $k => $v) {
			if ($v == $element) {
				unset($items[$k]);
			}
		}
		return implode(',', $items);
	}
512371
function prepend ($list)
  {
    $a = new AppendIterator;
    foreach (iterator ($list) as $it)
      $a->append (iterator ($it));
    $a->append ($this->getIterator ());
    $this->setIterator ($a);
    return $this;
  }
367698
private static function __s_list2($list)
    {
        $structure = new Structure(Structure::TYPE_LIST, '-', Structure::FOUR_SPACE_TAB);

        return static::buildStructure($list, $structure);
    }
857811
public static function expandList($list) {
		$items = explode(',', $list);
		$list = array();
		foreach ($items as $item) {
			$range = explode('-', $item);
			if (isset($range[1])) {
				$runAwayBrake = 1000;
				for ($n = $range[0]; $n <= $range[1]; $n++) {
					$list[] = $n;

					$runAwayBrake--;
					if ($runAwayBrake <= 0) {
						break;
					}
				}
			} else {
				$list[] = $item;
			}
		}
		return implode(',', $list);
	}
408394
public function ol(array $list, array $options = [], array $itemOptions = [])
    {
        return self::nestedList($list, array_merge($options, ['tag' => 'ol']), $itemOptions);
    }
1317677
public function setDefaultItem($list, $k, $v)
    {
        $this->ensureArrayKeyIsArray($this, $list);

        if (isset($this[$list][$k])) {
            return $this;
        }

        $this[$list][$k] = $v;

        return $this;
    }
691695
protected function supportFilter( array $list = [], bool $enable = true ) {
    foreach( $list as $type ) {
      if( !$enable ) unset( $this->_filter[ $type ] );
      else if( !isset( $this->_filter[ $type ] ) ) $this->_filter[ $type ] = [];
    }

    return $this;
  }