Get the ran mappings.

@return array
348468
public function getRan()
    {
        $result = $this->table()
            ->orderBy('batch', 'asc')
            ->orderBy('mapping', 'asc')
            ->pluck('mapping');

        if (is_array($result)) {
            return $result;
        }

        return $result->toArray();
    }
1236513
public static function get_runnable() {
		$packages = [];
		$packages[] = 'project';
		foreach (\Skeleton\Core\Skeleton::get_all() as $package) {
			$packages[] = $package->name;
		}
		$migrations = [];
		foreach ($packages as $package) {
			$migrations[$package] = \Skeleton\Database\Migration::get_between_versions($package, self::get_version($package), null);
		}

		$sorted_migrations = [];

		foreach ($migrations as $package_migrations) {
			foreach ($package_migrations as $migration) {
				$sorted_migrations[$migration->get_version()->format('YmdHis')] = $migration;
			}
		}
		ksort($sorted_migrations);

		return $sorted_migrations;
	}
417633
public function getAllMetadata()
    {
        if (!$this->initialized) {
            $this->initialize();
        }

        $mappings = array();
        foreach ($this->driver->getAllClassNames() as $className) {
            $mappings[] = $this->getMetadataFor($className);
        }

        return $mappings;
    }
1273627
public function automap() {
        $map = array();

        // Shallow copy.
        $collectionfrom = $this->get_collection_from();
        $collectionto = $this->get_collection_to();

        // Find mappings.
        foreach ($collectionfrom as $keyfrom => $compfrom) {
            foreach ($collectionto as $keyto => $compto) {
                if ($compfrom->get('idnumber') == $compto->get('idnumber')) {
                    $map[$compfrom->get('id')] = $compto->get('id');
                    unset($collectionfrom[$keyfrom]);
                    unset($collectionto[$keyto]);
                    break;
                }
            }
        }

        $this->mappings = $map;
    }
931860
public function findRedirectsByDemand(): array
    {
        return $this->getQueryBuilderForDemand()
            ->setMaxResults($this->demand->getLimit())
            ->setFirstResult($this->demand->getOffset())
            ->execute()
            ->fetchAll();
    }
220676
public function getTokenMappings()
    {
        // Create Mappings Array:
        
        $mappings = [];
        
        // Define Mappings Array:
        
        if (is_array($this->owner->config()->token_mappings)) {
            
            foreach ($this->owner->config()->token_mappings as $name => $spec) {
                
                if (!is_array($spec)) {
                    $spec = ['property' => $spec];
                }
                
                $mappings[$name] = $spec;
                
            }
            
        }
        
        // Answer Mappings Array:
        
        return $mappings;
    }
1121043
public function getRunning()
    {
        $dqb = $this->_em->createQueryBuilder();
        $dqb->select(array('j'))
            ->from('PlaygroundCore\Entity\Cronjob', 'j')
            ->where($dqb->expr()->in('j.status', array(self::STATUS_RUNNING)))
            ->orderBy('j.scheduleTime', 'ASC');

        return $dqb->getQuery()->getResult();
    }
1040619
protected function _mapAliases() {
        return $this->cache(__METHOD__, function() {
            $query = $this->getQuery();

            if (!$query) {
                return [];
            }

            $alias = $query->getAlias();
            $map = [
                $query->getTable() => $alias,
                strtolower($alias) => $alias
            ];

            foreach ($query->getJoins() as $join) {
                $joinAlias = $join->getAlias();

                $map[$join->getTable()] = $joinAlias;
                $map[strtolower($joinAlias)] = $joinAlias;
            }

            return $map;
        });
    }
213791
protected function getRequestsNotRunning()
    {
        $map = $this->queue;
        foreach ($this->running as $k => $v) unset($map[$k]);
        return $map;
    }
1118682
public function getRuntimePath()
    {
        if ($this->_runtimePath === null) {
            $this->_runtimePath = $this->getAlias('@runtime');
        }

        return $this->_runtimePath;
    }
61991
protected function getMappedFields()
    {
        $mapping = [
            'brq_payment_method' => $this->paymentMethod->getPaymentMethod(),
            'brq_websitekey' => $this->websiteKey,
            'brq_currency' => $this->currency->getCurrencyString(),
            'brq_amount' => $this->amount,
            'brq_invoicenumber' => $this->invoiceNumber,
            'brq_ordernumber' => $this->orderNumber,
            'brq_description' => $this->description,
            'brq_return' => $this->returnURL,
            'brq_returncancel' => $this->cancelURL,
            'brq_returnerror' => $this->rejectURL,
            'brq_returnreject' => $this->errorURL
        ];

        $result = [];
        foreach ($mapping as $key => $value) {
            if (!empty($value)) {
                $result[$key] = $value;
            }
        }

        return $result;
    }
450808
protected function getStatusFor(array $ran)
    {
        return Collection::make($this->getAllMigrationFiles())
            ->map(function ($migration) use ($ran) {
                $migrationName = $this->migrator->getMigrationName($migration);

                return in_array($migrationName, $ran)
                ? ['<info>Y</info>', $migrationName]
                : ['<fg=red>N</fg=red>', $migrationName];
            });
    }
284609
public function getCaches()
    {
        if (!$this->caches) {
            foreach (Cache::getBins() as $name => $bin) {
                $this->caches[$name] = $bin;
            }
        }

        return $this->caches;
    }
572197
private function getCmsRoutes(): array
    {
        if ($this->routes) {
            return $this->routes;
        }

        $item = $this->cache->getItem(self::PAGES_ROUTES_CACHE_KEY);

        if ($item->isHit()) {
            return $this->routes = $item->get();
        }

        $routes = $this->repository->getPagesRoutes();

        $item->set($routes);
        $this->cache->save($item);

        return $this->routes = $routes;
    }
708045
public function getSourceDirs() {
        $dirs = array();
        foreach ($this->roadMap as $road) {
            /* @var $road SourceRoad */
            array_push($dirs, $road->getSourceDir());
        }
        return $dirs;
    }
784612
public function getScanPaths() : array
    {
        $paths = $this->paths;

        $paths[] = $this->getPath();

        if ($this->config('scan.enabled')) {
            $paths = array_merge($paths, $this->config('scan.paths'));
        }

        $paths = array_map(function ($path) {
            return Str::endsWith($path, '/*') ? $path : Str::finish($path, '/*');
        }, $paths);

        return $paths;
    }
369194
public function getColumnObjectsMapping()
    {
        $mapping = [];
        $foreignTable = $this->getForeignTable();
        for ($i = 0, $size = count($this->localColumns); $i < $size; $i++) {
            $mapping[] = [
                'local'   => $this->parentTable->getColumn($this->localColumns[$i]),
                'foreign' => $foreignTable->getColumn($this->foreignColumns[$i]),
                'value' => $this->localValues[$i],
            ];
        }

        return $mapping;
    }