Skip to content

Commit

Permalink
Move basic view pages to separate library files
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Apr 15, 2013
1 parent 1bd772a commit 466f1b1
Show file tree
Hide file tree
Showing 24 changed files with 1,620 additions and 1,345 deletions.
42 changes: 42 additions & 0 deletions ingo/basic.php
@@ -0,0 +1,42 @@
<?php
/**
* Ingo basic view.
*
* Base URL Parameters:
* - page: (string) The current page view.
*
* Copyright 2013 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (ASL). If you
* did not receive this file, see http://www.horde.org/licenses/apache.
*
* @author Michael Slusarz <slusarz@horde.org>
* @category Horde
* @copyright 2013 Horde LLC
* @license http://www.horde.org/licenses/apache ASL
* @package Ingo
*/

require_once __DIR__ . '/lib/Application.php';
Horde_Registry::appInit('ingo');

$vars = $injector->getInstance('Horde_Variables');

$class = 'Ingo_Basic_' . Horde_String::ucfirst($vars->page);
if (!class_exists($class)) {
throw new Ingo_Exception('Page not found: ' . $vars->page);
}

$ob = new $class($vars);

$status = $ob->status();

$page_output->header(array(
'title' => $ob->title,
'view' => $registry::VIEW_BASIC
));

echo $status;
$ob->render();

$page_output->footer();
118 changes: 0 additions & 118 deletions ingo/blacklist.php

This file was deleted.

0 comments on commit 466f1b1

Please sign in to comment.