Initial import of tasks application
This initial import is a heavily modified version of the code I had here, as Arse was modified for other purposes in the meantime and the application no longer worked with it. In addition: * I did not import the user management part yet, * task dependencies are supported in-base, but there is no interface for that yet.
This commit is contained in:
commit
9677ad4dd3
36 changed files with 3919 additions and 0 deletions
includes/t-basics
67
includes/t-basics/pages.inc.php
Normal file
67
includes/t-basics/pages.inc.php
Normal file
|
@ -0,0 +1,67 @@
|
|||
<?php
|
||||
|
||||
abstract class AuthenticatedPage
|
||||
extends HubPage
|
||||
{
|
||||
public function __construct( $pages )
|
||||
{
|
||||
parent::__construct( $pages );
|
||||
$this->addController( Loader::Ctrl( 'check_session' ) );
|
||||
}
|
||||
|
||||
protected function getMenu( )
|
||||
{
|
||||
return array(
|
||||
'items' => 'Items' ,
|
||||
'tasks' => 'Tasks' ,
|
||||
'logout' => 'Log out'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class Page_TasksHome
|
||||
extends HTMLPage
|
||||
{
|
||||
|
||||
public function __construct( )
|
||||
{
|
||||
parent::__construct( );
|
||||
$this->addController( Loader::Ctrl( 'home_page' ) );
|
||||
}
|
||||
|
||||
protected function getMenu( )
|
||||
{
|
||||
return array();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class Page_TasksLogin
|
||||
extends HTMLPage
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct( );
|
||||
$this->addController( Loader::Ctrl( 'logged_out' ) );
|
||||
$this->addController( Loader::Ctrl( 'log_in_form' ) );
|
||||
}
|
||||
|
||||
protected function getMenu( )
|
||||
{
|
||||
return array();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
class Page_TasksLogout
|
||||
extends Page_Basic
|
||||
{
|
||||
public function __construct( )
|
||||
{
|
||||
parent::__construct( );
|
||||
$this->addController( Loader::Ctrl( 'logout' ) );
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue