Adds a value to this parameter.

If the argument is specified as an array, all items will be added to the
parameter value list.

@param string|array $part
179996
public function addValue($part)
    {
        if (is_null($this->value)) {
            $this->value = $part;
        } else {
            $this->value = array_merge((array) $this->value, (array) $part);
        }
    }
1183301
public function addPart($part)
    {
        // Sanity check
        if (!ctype_alnum($part)) {
            throw new InvalidArgumentException(
                'Build part "' . $part . '" is not alpha numerical'
            );
        }

        $this->parts[] = $part;

        return $this;
    }
169531
public function offsetSet($offset, $part)
    {
        if ($offset === null) {
            $this->append($part);
        }

        $this->replace($offset, $part);
    }
755047
public function addOption($option, $value = null)
    {
        if (is_array($option)) {
            $this->options = $option + $this->options;
        } else {
            $this->options[$option] = $value;
        }
    }
559947
public function setPartId($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->part_id !== $v) {
            $this->part_id = $v;
            $this->modifiedColumns[SkillPartTableMap::COL_PART_ID] = true;
        }

        if ($this->aSkillRelatedByPartId !== null && $this->aSkillRelatedByPartId->getId() !== $v) {
            $this->aSkillRelatedByPartId = null;
        }

        return $this;
    }
308248
private function addParam($value, array $token)
    {
        if (!$this->currentLabel) {
            throw new TokenException(sprintf('parameter name missing in %s()', $this->name), $token);
        }

        $this->params[$this->currentLabel] = $value;

        $this->currentLabel = null;
    }
617091
public static function combine($part1, $part2)
    {
        if ($part1 && $part2) {
            return sprintf("%s/%s", rtrim($part1, '/'), ltrim($part2, '/'));
        }

        throw new InvalidArgumentException("All parts must be filled");
    }
1258251
public function add($items = [])
    {
        if (!is_array($items) || func_num_args() > 1) {
            $items = func_get_args();
        }

        $this->push($this->formatInnerField(null, $items));
    }
1229315
private function _zip($array, $part, $destination)
    {
        @mkdir($destination, 0777, true);

        if ($this->zip->open(str_replace('//', '/', "{$destination}/partz{$part}.zip"), \ZipArchive::CREATE)) {
            foreach ((array) $array as $key => $value) {
                $this->zip->addFile($value, str_replace(array('../', './'), null, $value));
            }
            $this->ZipStatusString($this->zip->status);
            $this->zip->close();
        }
    }
417200
private function addMessage($name, $parts)
    {
        $this->addToDebug("Adding message: '$name'");
        $msg = $this->addElement('message', $this->definitions);
        $msg->setAttribute('name', $name);
        foreach ((array) $parts as $partName => $partType) {
            $this->addToDebug("Adding Message part: '$partName => $partType'");
            $part = $this->addElement('part', $msg);
            $this->xmlSchema->addType($partType, $partName, $part);
        }
    }
765270
public function reset($part = null)
    {
        if ($part == null) {
            $this->_parts = self::$_partsInit;
        } else if (array_key_exists($part, self::$_partsInit)) {
            $this->_parts[$part] = self::$_partsInit[$part];
        }
        return $this;
    }
861057
private function createValueKey(string $part): array
    {
        $parts = explode('=', $part, 2);
        $key = trim($parts[0]);
        $value = isset($parts[1]) ? trim($parts[1]) : true;

        return [$key, $value];
    }
551532
private function applyParts(array $parts = [])
    {
        $this->scheme = array_key_exists('scheme', $parts) ? $this->filterScheme($parts['scheme']) : null;
        $this->userInfo = array_key_exists('user', $parts) ? $parts['user'] : null;
        $this->host = array_key_exists('host', $parts) ? $parts['host'] : null;
        $this->port = array_key_exists('port', $parts) ? $this->filterPort($this->getScheme(), $this->getHost(), $parts['port']) : null;
        $this->path = array_key_exists('path', $parts) ? $this->filterPath($parts['path']) : null;
        $this->query = array_key_exists('query', $parts) ? $this->filterQueryAndFragment($parts['query']) : null;
        $this->fragment = array_key_exists('fragment', $parts) ? $this->filterQueryAndFragment($parts['fragment']) : null;
        $this->userInfo .= array_key_exists('pass', $parts) ? ':' . $parts['pass'] : null;
    }
109648
function addParts(config, parts, value) {
        const part = parts.shift();
        if (parts.length === 0) {
          // Convert string values "true" and "false" to booleans
          if (value === 'false') { value = false; }
          if (value === 'true') { value = true; }
          config[part] = value;
        } else {
          if (config[part] === undefined) {
            config[part] = {};
          }
          addParts(config[part], parts, value);
        }
      }
114089
public function addValue($value)
        {
            if (is_array($value)) {
                foreach ($value as $single_value) {
                    $this->addValue($single_value);
                }
            } else {
                if ($value !== null) {
                    $this->values[] = $this->getDatabaseValue($value);
                }
            }
        }
910588
private function get_mime_numbers(&$part)
    {
        if (strlen($part->mime_id))
            $this->mime_parts[$part->mime_id] = &$part;

        if (is_array($part->parts))
            for ($i=0; $i<count($part->parts); $i++)
                $this->get_mime_numbers($part->parts[$i]);
    }
114511
private function applyParts(array $parts)
    {
        $this->scheme = isset($parts['scheme'])
            ? $this->filterScheme($parts['scheme'])
            : '';
        $this->userInfo = isset($parts['user']) ? $parts['user'] : '';
        $this->host = isset($parts['host']) ? $parts['host'] : '';
        $this->port = !empty($parts['port'])
            ? $this->filterPort($this->scheme, $this->host, $parts['port'])
            : null;
        $this->path = isset($parts['path'])
            ? $this->filterPath($parts['path'])
            : '';
        $this->query = isset($parts['query'])
            ? $this->filterQueryAndFragment($parts['query'])
            : '';
        $this->fragment = isset($parts['fragment'])
            ? $this->filterQueryAndFragment($parts['fragment'])
            : '';
        if (isset($parts['pass'])) {
            $this->userInfo .= ':' . $parts['pass'];
        }
    }