Returns full list

@param boolean $flip Whether to flip the returning array or not
@return array
355682
public function getList($flip = false)
    {
        if ($flip !== false) {
            return array_flip($this->mime);
        } else {
            return $this->mime;
        }
    }
717536
public function getArrays($query)
    {
        $this->statement = $this->db->query($query);
        if ($this->statement) {
            $result =  $this->statement->fetchAll(\PDO::FETCH_ASSOC);
            if ($result) {
                return $result;
            }
        }
        return false;
    }
720780
public function &getList($query)
    {
        $_result = array();
        $_ret = $this->execute($query);
        if ( $_ret != false ) {

            while ( ($_rows = $_ret->fetch(PDO::FETCH_ASSOC)) != false )
                $_result[]  = $_rows;
        }
        return $_result;
    }
716153
public static function flip() {
		$arguments = func_get_args();
		$first_null = array_search( null, $arguments, true );

		if ( $first_null === false ) {
			return $arguments;
		}

		// Support integer keys only.
		$first_null = (int) $first_null;

		$arguments = array_values( array_merge(
			array_slice( $arguments, $first_null ),
			array_slice( $arguments, 0, $first_null )
		) );

		return $arguments;
	}
1078071
protected function get_full_component_list() {
        global $CFG;

        $list = \core_component::get_component_list();
        $list['core']['core'] = "{$CFG->dirroot}/lib";
        $formattedlist = [];
        foreach ($list as $plugintype => $plugin) {
            $formattedlist[] = ['plugin_type' => $plugintype, 'plugins' => array_keys($plugin)];
        }

        return $formattedlist;
    }
52120
function dump($return = false, $print = true, $depth = 1)
    {
        $dump = array();
        $dump['count'] = $this->count;
        $dump['results'] = array();
        foreach ((array)$this->records() as $key => $record) {
            if ($record instanceof Resource) {
                $dump['results'][$key] = $record->data();
                foreach ($record->links as $field => $link) {
                    if ($depth < 1) {
                        try {
                            $link_record = $record[$field];
                        } catch (ServerException $e) {
                            $link_record = array('$error' => $e->getMessage());
                        }

                        if ($link_record instanceof Resource) {
                            $dump['results'][$key][$field] = $link_record->dump(true, false, $depth+1);
                        } else {
                            $dump['results'][$key][$field] = $link_record;
                        }
                    }
                }
            }
        }
        if ($dump['results'] && $links = $this->links) {
            $dump['$links'] = $this->dump_links($links);
        }
        if ($dump['count'] > 0) {
            $dump['page'] = $this->page;
        }
        if ($this->pages) {
            $dump['pages'] = $this->pages;
        }
        
        if ($print) {
            return print_r($dump, $return);
        } else {
            return $dump;
        }
    }
1208201
public static function getList($query)
    {
        $ret = array();

        $res = self::query($query);
        if ($res) {
            while ($row = self::connection()->sql_fetch_row($res)) {
                $ret[$row[0]] = $row[1];
            }
            self::free($res);
        }

        return $ret;
    }
594854
public function getAll($separate = true)
    {
        if ($this->isPost()) {
            $data = $this->getPost();
        }

        if ($this->isGet()) {
            $data = $this->getQuery();
        }

        // Append files also, if we have them
        if ($this->hasFiles()) {
            $files = $this->getFiles();
        } else {
            $files = array();
        }

        if ($separate === false) {
            return array_merge($data, $files);
        } else {
            $result = array();
            $result['data'] = $data;
            $result['files'] = !empty($files) ? $files : array();

            return $result;
        }
    }
32359
protected function getAll()
    {
        $widgets = getConfig('Widgets.general', []);

        if ($this->getView()->getRequest()->isUrl(['_name' => 'homepage']) && getConfig('Widgets.homepage')) {
            $widgets = getConfig('Widgets.homepage');
        }

        return $widgets ? collection($widgets)->map(function ($args, $name) {
            if (is_string($name) && is_array($args)) {
                return [$name => $args];
            } elseif (is_string($args)) {
                return [$args => []];
            }

            list($name, $args) = [array_key_first($args), array_value_first($args)];

            return is_int($name) && is_string($args) ? [$args => []] : [$name => $args];
        })->toList() : [];
    }
236660
public function getList($db=true) {
		if(!file_exists($this->dir.'/migrations.json'))
			return [];
		$migrations = json_decode(file_get_contents($this->dir.'/migrations.json'), true);

		if($db) {
			$tracking = [];

			$this->createTable();
			foreach($this->db->dal()->from('_migrations')->get() as $r)
				$tracking[$r['name']] = ['migrated' => strtotime($r['migrated'])];

			foreach($migrations as $migration=>$params) {
				if(isset($tracking[$migration]))
					$migrations[$migration] = array_merge($migrations[$migration], $tracking[$migration]);
			}
		}

		uasort($migrations, function($a, $b) {
			if(isset($a['migrated']) && !isset($b['migrated']))
				return -1;
			elseif(!isset($a['migrated']) && isset($b['migrated']))
				return 1;
			elseif(isset($a['migrated']) && isset($b['migrated'])) {
				if($a['migrated'] !== $b['migrated'])
					return $a['migrated'] > $b['migrated'];
			}
			return $a['added'] > $b['added'];
		});
		
		return $migrations;
	}
1051143
public function getList($conditions = []) {
		$conditions += ['status' => 1];
		$res = $this->find('all', ['conditions' => $conditions, 'fields' => ['id', 'name']]);
		$ret = [];
		foreach ($res as $language) {
			$ret[$language['id']] = $language['name'];
		}
		return $ret;
	}
565608
public function getEntities($full = false)
    {
        return
            $full ?
                $this->getManifest()->transform(function ($item) {
                    return $this->getEntity($item[ 'full_name' ]);
                })
                :
                $this->getManifest();
    }
375380
public static function getFillableFields(bool $join = false)
    {
        $list = with(new static)->getFillable();

        if ($join)
        {
            //to use default sort_by command
            array_push($list, 'created_at');
            foreach ($list as &$value)
                $value = self::getTableName() . '.' . $value;
        }

        return $list;
    }
668612
public function getArray($query)
    {
        $this->statement = $this->db->query($query);
        if ($this->statement) {
            return $this->statement->fetch(\PDO::FETCH_ASSOC);
        }
        return false;
    }
562779
public function all($clear=false)
    {
        $parameters = $this->parameters;

        if($clear === true) {
            $this->parameters = array();
        }

        return $parameters;
    }
337962
public function getLists($offset = 0, $limit = 100)
	{
		$lists = [];
		foreach ($this->client->get("lists?offset={$offset}&limit={$limit}") as $list) {
			$lists[] = new Resources\MailingList($this, $list);
		}
		return $lists;
	}
963099
public final function getResultsIds(bool $merge = true): array
    {
        $return = [];
        if (!empty($this->results)) {
            if ($merge) {
                foreach ($this->results as $result) {
                    $return = array_merge($return, $result->getIds());
                }
            } else {
                foreach ($this->results as $result) {
                    $return[] = $result->getIds();
                }
            }
        }

        return $return;
    }