adds list to list

@param   PHPRtfLite_List  $list
@return  $this
493672
public function addList(PHPRtfLite_List $list)
    {
        $this->_items[] = $list;
        $list->_textIndent += $this->_textIndent;
        return $this;
    }
418090
public static <T> Collection<T> addAll(Collection<T> list, T... array)
    {
        for (T item : array)
        {
            list.add(item);
        }
        return list;
    }
1313220
public function setListByAssociativeArray($list) {
		
		foreach ($list as $value=>$text) {
				
			$option			= new \stdClass();
			$option->value	= $value;
			$option->text	= $text;
			$option->attributes	= [];

			$this->list[]	= $option;
				
		}
		
		return $this;
		
	}
850924
public function addAll($list) {
        $before = $this->size();
        foreach( $list as $element) {
            $this->add($element);
        }
        $after = $this->size();
        return ($before < $after);
    }
1178346
protected function projectList(ItemList $list)
    {
        $sth = $list->deliverQueryObject()->execute();

        foreach ($sth as $row) {
            $listResult = $list->getResult($row);
            $object = $this->getObjectFromListResult($list, $listResult);
            yield iterator_to_array($this->projectObject($object));
            $this->tick();
        }
    }
166058
public function addAt(Item $item, $position = null)
    {
        if (0 === $position) {
            array_unshift($this->items, $item);
        } else if (null === $position) {
            $this->items[] = $item;
        } else if (count($this->items) <= $position) {
            $this->items[] = $item;
        } else {
            array_splice($this->items, $position, 0, [$item]);
        }

        $this->isUpdated = true;

        return $this;
    }
115312
protected function fill_collections($list=""){
		$names=explode(",",$list);
		for ($i=0; $i < sizeof($names); $i++) { 
			$name = $this->resolve_parameter($names[$i]);
			if (!array_key_exists($name,$this->options)){
				$this->options[$name] = new DistinctOptionsConnector($this->get_connection(),$this->names["db_class"]);
				$c = new DataConfig($this->config);
				$r = new DataRequestConfig($this->request);
				$c->minimize($name);
				
				$this->options[$name]->render_connector($c,$r);
			} 
			
			$this->extra_output.="<coll_options for='{$names[$i]}'>";
			if (!is_string($this->options[$name]))
				$this->extra_output.=$this->options[$name]->render();
			else
				$this->extra_output.=$this->options[$name];
			$this->extra_output.="</coll_options>";
		}
	}
367698
private static function __s_list2($list)
    {
        $structure = new Structure(Structure::TYPE_LIST, '-', Structure::FOUR_SPACE_TAB);

        return static::buildStructure($list, $structure);
    }
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;
  }
1217865
public function merge(CNabuDataObjectList $list)
    {
        $items = $list->getItems();

        while (is_array($items) && count($items) > 0) {
            
        }
    }
1164327
public function apply($list): SplDoublyLinkedList
    {
        $newList = clone $list;

        $copy = $this->createCopyClosure();

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

        return $this;
    }
1005698
private function createFromList($list)
    {
        $instance = new FileBag;

        foreach (array_keys($list['name']) as $key) {
            $params = [
                'name'      => $list['name'][$key],
                'type'      => $list['type'][$key],
                'tmp_name'  => $list['tmp_name'][$key],
                'error'     => $list['error'][$key],
                'size'      => $list['size'][$key],
            ];
            $file = $this->uploadedFileBuilder->create($params);
            $instance[] = $file;
        }

        return $instance;
    }
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);
	}
812586
public function create($list)
    {
        $instance = new FileBag;

        foreach ($list as $key => $value) {
            $item = $this->createItem($value);
            $instance[$key] =  $item;
        }

        return $instance;
    }
712800
public function setPrefetch(SS_List $list) {
		if(!$list instanceof SS_List) {
			throw new Exception('Prefetch list must be an instance of SS_List');
		}

		$this->prefetch = $list;

		return $this;
	}
5761
public function addHashPrefixes($prefixes, $list)
  {
    $listdir=$this->getListStorageDir($list);
    if(!is_dir($listdir)){
      mkdir($listdir, 0777, true);
    }
    $new_prefixes=array_map('bin2hex',$prefixes);
    if(is_file($listdir.$this->prefixes_filename)){
      $existing_prefixes=explode("\n",file_get_contents($listdir.$this->prefixes_filename));
      foreach($new_prefixes as $new_prefix){
        $existing_prefixes[]=$new_prefix;
      }
      sort($existing_prefixes,SORT_STRING);
      file_put_contents($listdir.'prefixes', implode("\n",$existing_prefixes));
    }else{
      sort($new_prefixes,SORT_STRING);
      file_put_contents($listdir.'prefixes', implode("\n",$new_prefixes));
    }
    $this->debugLog('addHashPrefixes() added '.count($new_prefixes).' prefixes to list '.$list);
  }