Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d99821f
commit 7621dad
Showing
12 changed files
with
93 additions
and
53 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
$title = 'Uninstall'; | ||
$selectedNav = 'apps'; | ||
include_once($viewsDir . 'common/header.php'); | ||
?> | ||
<h1>To <span class="removed">Uninstall</span> <?php echo $app->name; ?>...</h1> | ||
<ol> | ||
<li><span class="highlight">Open <?php echo $_ENV['dir.documentRoot']; ?>recess-config.php</span></li> | ||
<li>Find the <span class="highlight">Config::$applications</span> array.</li> | ||
<?php | ||
$appClass = Library::getFullyQualifiedClassName(get_class($app)); | ||
?> | ||
<li><span class="highlight">Remove the string '<?php echo $appClass; ?>'</span></li> | ||
<li>[Optional] Delete the directory <?php echo $_ENV['dir.apps'] . substr($appClass,0,strpos($appClass,'.')); ?></li> | ||
</ol> | ||
<h2>Th-Th-Th-Th-That's all folks. <a href="<?php echo $controller->urlToMethod('home'); ?>">Head back to apps.</a></h2> | ||
<?php include_once($viewsDir . 'common/footer.php'); ?> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
function printRoutes($routes, $codeController) { | ||
echo '<table>'; | ||
echo '<thead><td>HTTP</td><td>Route</td><td>Controller</td><td>Method</td></thead>'; | ||
echo '<tbody>'; | ||
$fullPath = $_ENV['url.base']; | ||
if(strrpos($fullPath, '/') == strlen($fullPath) - 1) $fullPath = substr($fullPath,0,-1); | ||
printRoutesRecursive($codeController, $routes, $fullPath); | ||
echo '</tbody>'; | ||
echo '</table>'; | ||
} | ||
|
||
function printRoutesRecursive($codeController, $routingNode, $fullPath) { | ||
static $i = 0; | ||
if($routingNode == null) return; | ||
$staticPaths = $routingNode->getStaticPaths(); | ||
$parametricPaths = $routingNode->getParametricPaths(); | ||
$methods = $routingNode->getMethods(); | ||
if(!empty($methods)) { | ||
foreach($methods as $method => $route) { | ||
$i++; | ||
if($i % 2 == 0) { | ||
echo '<tr class="light">'; | ||
} else { | ||
echo '<tr>'; | ||
} | ||
echo '<td>' . $method . '</td>'; | ||
echo '<td>' . $fullPath . '</td>'; | ||
echo '<td><a href="' . $codeController->urlToMethod('classInfo',$route->class) . '">' . Library::getClassName($route->class) . '</a></td>'; | ||
echo '<td><a href="' . $codeController->urlToMethod('classInfo',$route->class) . '#method_' . $route->function . '">'. $route->function . '</a></td>'; | ||
echo '</tr>'; | ||
} | ||
} | ||
|
||
if(!empty($staticPaths) || !empty($parametricPaths)) { | ||
ksort($staticPaths); | ||
ksort($parametricPaths); | ||
foreach($staticPaths as $path => $node) { | ||
printRoutesRecursive($codeController, $node, $fullPath . '/' . $path); | ||
} | ||
foreach($parametricPaths as $path => $node) { | ||
printRoutesRecursive($codeController, $node, $fullPath . '/$' . $path); | ||
} | ||
} | ||
} | ||
?> |
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
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
Binary file not shown.