Converts the given list of objects to a list of \stdClass objects

@param array $list List of item objects
@return array List of \stdClass objects containing the properties of the item objects
493304
protected function toArray( array $list )
	{
		$result = [];

		foreach( $list as $item ) {
			$result[] = (object) $item->toArray( true );
		}

		return $result;
	}
737740
public function listToMap(array $list)
    {
        $map = array();
        for ($i = 0, $n = count($list); $i < $n; $i += 2) {
            $map[$list[$i]] = $list[$i + 1];
        }
        return (object)$map;
    }
734502
private function sortableResetArray($list)
    {
        $removedKeys = array_keys($this->baseConcreteData);
        foreach ($list as $index => $value) {
            $this[$index] = $value;
            if (($key = array_search($index, $removedKeys)) !== false) {
                unset($removedKeys[$key]);
            }
        }
        unset($list);
        foreach ($removedKeys as $index) {
            unset($this[$index]);
        }
        if (method_exists($this, 'rewind')) {
            $this->rewind();
        }
    }
1063712
protected function objectToArray(stdClass $data = null)
    {
        if (null !== $data) {
            $data = (array) $data;
            foreach ($data as $key => $value) {
                if ($value instanceof stdClass) {
                    $data[$key] = $this->objectToArray($value);
                }
            }
        }

        return $data;
    }
1369764
public function getList($list)
	{
		$filteredList = [];

		foreach (explode(',', $list) as $item)
		{
			if ($item != '')
			{
				$filteredList[] = $item;
			}
		}

		return $filteredList;
	}
219365
public static function fromList(array $list)
    {
        if (count($list) !== count($list, COUNT_RECURSIVE)) {
            throw new NodeException('List is not a one-dimensional array.');
        }

        array_walk($list, function (&$item) {
            $item = array($item);
        });
        return new self($list);
    }
1217285
public function mset(array $list)
    {
        return $this->getFactory()->getRedisClient()->mset(
            $this->getFactory()->createListConverter()->convertToList($list)
        );
    }
20905
public static function sort( $list )
	{
		$n = sizeof( $list );
		for( $i=0; $i<= $n -1; $i++ )
		{
#			echo "List: ".implode( ", ", $list )."<br>";
			$lowest	= self::getLowest( $list, $i, $n );
#			echo "<br>$i $lowest<br>";
			self::swap( $list, $i, $lowest );
#			print_m ($list);
		}
		return $list;
	}
850680
protected function getProperties(\stdClass $item)
    {
        $properties = [];
        if (isset($item->properties) && is_array($item->properties)) {
            foreach ($item->properties as $property) {
                $this->processProperty($properties, $property);
            }
        }

        return $properties;
    }
120012
public function getStateList($list = null) {
		$result = '';
		if (empty($list)) {
			return $result;
		}

		$listText = '';
		foreach ($list as $listItem) {
			$classItem = '';
			if (is_array($listItem)) {
				if (!isset($listItem['textItem'])) {
					continue;
				}

				$textItem = $listItem['textItem'];
				if (isset($listItem['classItem']) && !empty($listItem['classItem'])) {
					$classItem = ' ' . $listItem['classItem'];
				}
			} else {
				$textItem = $listItem;
			}

			$listText .= $this->Html->tag('li', $textItem, ['class' => 'list-group-item' . $classItem]);
		}
		if (empty($listText)) {
			return $result;
		}

		$result = $this->Html->tag('ul', $listText, ['class' => 'list-group']);

		return $result;
	}
749329
public function arrayToObject(array $array): \stdClass
    {
        $objResult = new \stdClass();

        foreach ($array as $varKey => $varValue) {
            $objResult->{$varKey} = $varValue;
        }

        return $objResult;
    }
568373
protected function sortByPriority(array $list) : array
    {
        $nonPriorityItems = [];
        $priorityItems = [];

        foreach ($list as $key => $priority) {
            if ($priority == -1) {
                $nonPriorityItems[] = $key;
            } else {
                $priorityItems[$key] = $priority;
            }
        }

        asort($priorityItems);

        return array_merge(array_keys($priorityItems), $nonPriorityItems);
    }
1373845
protected function listifyObjectList($array)
    {
        ksort($array);
        $list = array();
        foreach ($array as $obj) {
            $list[] = $this->getClass($obj, 'AttrTransform_');
        }
        return $this->listify($list);
    }
292257
public static <T> T[] toArray(List<T> list) {
    return toArray(getClass(list.get(0)), list);
  }
1016795
public function getProps($list = null)
    {
        if ($list && is_array($list)) {
            $result = array();
            foreach ($list as $key) {
                $result[$key] = $this->get($key);
            }

            return $result;
        }

        return $this->props;
    }
795570
protected function listifyAttr($array) {
        ksort($array);
        $list = array();
        foreach ($array as $name => $obj) {
            if ($obj === false) continue;
            $list[] = "$name&nbsp;=&nbsp;<i>" . $this->getClass($obj, 'AttrDef_') . '</i>';
        }
        return $this->listify($list);
    }
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 );
	}