This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// IndexedDB | |
window.indexedDB = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB || window.OIndexedDB || window.msIndexedDB, | |
IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction || window.OIDBTransaction || window.msIDBTransaction, | |
dbVersion = 1; | |
/* | |
Note: The recommended way to do this is assigning it to window.indexedDB, | |
to avoid potential issues in the global scope when web browsers start | |
removing prefixes in their implementations. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use \Gliph\Graph\DirectedAdjacencyList; | |
use \Gliph\Traversal\DepthFirst; | |
$graph = new DirectedAdjacencyList(); | |
foreach ($entity_list as $entity) { | |
if ($entity->has('embedded')) { | |
foreach ($entity->get('embedded') as $embedded) { |