public static function grow($mixedId, $mixedKind = "WP_Post") { $tree = new self(); $tree->setQuerier(Strata::I18n()->query()); $tree->setContext($mixedId, $mixedKind); $tree->expand(); return $tree; }
/** * @inheritDoc */ public static function create($components) { $neighbors = new self(); for ($i = 2; $i < count($components); $i += 2) { $neighbors->setNeighbor($components[$i], explode(',', $components[$i + 1])); } // expand $neighbors->expand(); return $neighbors; }