Skip to content

Commit

Permalink
flagged a bunch of todo items throughout the system for later cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
caseysoftware committed Sep 8, 2013
1 parent 6e4c677 commit ebc2c2e
Show file tree
Hide file tree
Showing 153 changed files with 241 additions and 69 deletions.
1 change: 1 addition & 0 deletions classes/w2p/Authenticators/PostNuke.class.php
Expand Up @@ -4,6 +4,7 @@
* request. This needs to be extracted and verified.
*
* @package web2project\authenticators
* @todo remove
*/

class w2p_Authenticators_PostNuke extends w2p_Authenticators_Base
Expand Down
2 changes: 2 additions & 0 deletions classes/w2p/Core/CAppUI.class.php
Expand Up @@ -4,6 +4,8 @@
*
* @package web2project\core
* @author Andrew Eddie <eddieajau@users.sourceforge.net>
*
* @todo refactor to w2p/System/AppUI
*/

class w2p_Core_CAppUI
Expand Down
3 changes: 2 additions & 1 deletion classes/w2p/Core/Config.class.php
@@ -1,7 +1,8 @@
<?php

/**
* @package web2project\core
*
* @todo refactor to w2p/System/Config
*/

class w2p_Core_Config extends w2p_Core_BaseObject
Expand Down
3 changes: 2 additions & 1 deletion classes/w2p/Core/Dispatcher.class.php
@@ -1,5 +1,4 @@
<?php

/**
* This is the Dispatcher used for cross-module communications and heavily
* based on http://dustint.com/post/38/building-a-php-publish-subscribe-system
Expand All @@ -8,6 +7,8 @@
* @package web2project\core
* @author Dustin Thomson <dustin@dustint.com>
* @author Keith Casey (maintainer) <caseydk@sourceforge.net>
*
* @todo refactor to w2p/System/Dispatcher
*/

class w2p_Core_Dispatcher
Expand Down
4 changes: 3 additions & 1 deletion classes/w2p/Core/Event.class.php
@@ -1,5 +1,4 @@
<?php

/**
* This is the Dispatcher used for cross-module communications and heavily
* based on http://dustint.com/post/38/building-a-php-publish-subscribe-system
Expand All @@ -8,7 +7,10 @@
* @package web2project\core
* @author Dustin Thomson <dustin@dustint.com>
* @author Keith Casey (maintainer) <caseydk@sourceforge.net>
*
* @todo refactor to w2p/System/Event
*/

class w2p_Core_Event {
/**
* The name of the resource publishing this event
Expand Down
5 changes: 2 additions & 3 deletions classes/w2p/Core/EventQueue.class.php
@@ -1,5 +1,4 @@
<?php

/**
* The event queue uses the table event_queue to manage
* event notifications and other timed events, as well as
Expand All @@ -9,8 +8,8 @@
* @copyright (c) 2005, dotproject team
* @copyright (c) 2007-2013 web2project team
*
* @todo TODO: This can probably be converted to extend the
* w2p_Core_BaseObject and just get rid of a bunch of this code. ~ dkc 28 Oct 2012
* @todo This can probably be converted to extend the w2p_Core_BaseObject and just get rid of a bunch of this code. ~ dkc 28 Oct 2012
* @todo refactor to w2p/System/EventQueue
*/

class w2p_Core_EventQueue {
Expand Down
2 changes: 2 additions & 0 deletions classes/w2p/Core/HookHandler.class.php
Expand Up @@ -7,6 +7,8 @@
*
* @package web2project\core
* @author Keith Casey <caseydk@sourceforge.net>
*
* @todo refactor to w2p/System/HookHandler
*/

class w2p_Core_HookHandler
Expand Down
2 changes: 2 additions & 0 deletions classes/w2p/Core/ListenerInterface.class.php
Expand Up @@ -7,6 +7,8 @@
* @package web2project\core
* @author Dustin Thomson <dustin@dustint.com>
* @author Keith Casey (maintainer) <caseydk@sourceforge.net>
*
* @todo refactor to w2p/System/ListenerInterface
*/

interface w2p_Core_ListenerInterface
Expand Down
3 changes: 2 additions & 1 deletion classes/w2p/Core/Module.class.php
@@ -1,7 +1,8 @@
<?php

/**
* @package web2project\core
*
* @todo refactor to w2p/System/Module
*/

class w2p_Core_Module extends w2p_Core_BaseObject {
Expand Down
7 changes: 3 additions & 4 deletions classes/w2p/Core/Preferences.class.php
Expand Up @@ -2,11 +2,10 @@
/**
* This is the core preferences object that runs both the default and User-based preferences.
*
* @package web2project\core
*/
/**
* @package web2project\core
* @todo TODO: couldn't this just extend the BaseObject?
*
* @todo refactor to w2p/System/Preferences
* @todo couldn't this just extend the BaseObject?
*/
class w2p_Core_Preferences {
/** This is the user_id */
Expand Down
3 changes: 2 additions & 1 deletion classes/w2p/Core/Setup.class.php
@@ -1,9 +1,10 @@
<?php

/**
* @package web2project\core
*
* @abstract
*
* @todo refactor to w2p/System/Setup
*/

abstract class w2p_Core_Setup {
Expand Down
2 changes: 2 additions & 0 deletions classes/w2p/Core/UpgradeManager.class.php
@@ -1,6 +1,8 @@
<?php
/**
* @package web2project\core
*
* @todo refactor to w2p/System/UpgradeManager
*/

class w2p_Core_UpgradeManager {
Expand Down
1 change: 1 addition & 0 deletions modules/admin/do_perms_aed.php
Expand Up @@ -2,6 +2,7 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo refactor to use a core controller

$del = (int) w2PgetParam($_POST, 'del', 0);

Expand Down
1 change: 1 addition & 0 deletions modules/admin/do_user_aed.php
Expand Up @@ -2,6 +2,7 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo refactor to use a core controller

$del = (int) w2PgetParam($_POST, 'del', 0);

Expand Down
1 change: 1 addition & 0 deletions modules/admin/do_userrole_aed.php
Expand Up @@ -2,6 +2,7 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo refactor to use a core controller

$del = (int) w2PgetParam($_POST, 'del', 0);

Expand Down
6 changes: 5 additions & 1 deletion modules/admin/users.class.php
@@ -1,7 +1,11 @@
<?php

/**
* @package web2project\modules\core
*
* @todo refactor modules/admin to modules/users
* @todo new query object
* @todo refactor static methods
* @todo remove declarations before the class
*/

$utypes = w2PgetSysVal('UserType');
Expand Down
1 change: 1 addition & 0 deletions modules/admin/view.php
Expand Up @@ -2,6 +2,7 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo convert to template

$user_id = (int) w2PgetParam($_GET, 'user_id', 0);

Expand Down
2 changes: 2 additions & 0 deletions modules/admin/vw_usr.php
Expand Up @@ -2,6 +2,8 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo convert to template
// @todo remove database query

global $AppUI;

Expand Down
1 change: 1 addition & 0 deletions modules/admin/vw_usr_log.php
Expand Up @@ -2,6 +2,7 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo convert to template

$date_reg = date('Y-m-d');
$start_date = intval($date_reg) ? new w2p_Utilities_Date(w2PgetParam($_REQUEST, 'log_start_date', date('Y-m-d'))) : null;
Expand Down
2 changes: 2 additions & 0 deletions modules/admin/vw_usr_perms.php
Expand Up @@ -2,6 +2,8 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo convert to template
// @todo remove database query

global $AppUI, $user_id;

Expand Down
7 changes: 4 additions & 3 deletions modules/admin/vw_usr_roles.php
@@ -1,9 +1,10 @@
<?php
global $AppUI, $user_id, $user_name, $canEdit, $canDelete, $tab;

if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
die('You should not access this file directly.');
}
// @todo convert to template

global $AppUI, $user_id, $user_name, $canEdit, $canDelete, $tab;

$perms = &$AppUI->acl();
$user_roles = $perms->getUserRoles($user_id);
Expand Down
2 changes: 2 additions & 0 deletions modules/admin/vw_usr_sessions.php
Expand Up @@ -2,6 +2,8 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo convert to template
// @todo remove database query

global $AppUI, $w2Pconfig, $canEdit, $canDelete, $stub, $where, $orderby;

Expand Down
2 changes: 2 additions & 0 deletions modules/calendar/addedit.php
Expand Up @@ -2,6 +2,8 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo convert to template

global $AppUI, $cal_sdf;
$AppUI->loadCalendarJS();

Expand Down
6 changes: 5 additions & 1 deletion modules/calendar/calendar.class.php
@@ -1,7 +1,11 @@
<?php

/**
* @package web2project\modules\core
*
* @todo refactor to modules/events
* @todo new query object
* @todo refactor static methods
* @todo remove declarations before the class
*/

$event_filter_list = array('my' => 'My Events', 'own' => 'Events I Created', 'all' => 'All Events');
Expand Down
2 changes: 2 additions & 0 deletions modules/calendar/clash.php
Expand Up @@ -2,6 +2,8 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo convert to template

global $AppUI, $cal_sdf;
$AppUI->loadCalendarJS();

Expand Down
1 change: 1 addition & 0 deletions modules/calendar/companies_tab.view.events.php
Expand Up @@ -2,6 +2,7 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo convert to template

global $AppUI, $company_id;

Expand Down
1 change: 1 addition & 0 deletions modules/calendar/day_view.php
Expand Up @@ -2,6 +2,7 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo convert to template

// check permissions for this record
$perms = &$AppUI->acl();
Expand Down
1 change: 1 addition & 0 deletions modules/calendar/do_event_aed.php
Expand Up @@ -2,6 +2,7 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo refactor to use a core controller

$del = (int) w2PgetParam($_POST, 'del', 0);

Expand Down
1 change: 1 addition & 0 deletions modules/calendar/index.php
Expand Up @@ -2,6 +2,7 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo convert to template

// check permissions for this record
$perms = &$AppUI->acl();
Expand Down
1 change: 1 addition & 0 deletions modules/calendar/projects_tab.view.events.php
Expand Up @@ -2,6 +2,7 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo convert to template

global $AppUI, $project_id;

Expand Down
3 changes: 1 addition & 2 deletions modules/calendar/view.php
Expand Up @@ -2,11 +2,10 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo convert to template

$event_id = (int) w2PgetParam($_GET, 'event_id', 0);



$event = new CEvent();
$event->event_id = $event_id;

Expand Down
1 change: 1 addition & 0 deletions modules/calendar/vw_day_events.php
Expand Up @@ -2,6 +2,7 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo convert to template

global $this_day, $first_time, $last_time, $company_id, $event_filter, $event_filter_list, $AppUI;

Expand Down
1 change: 1 addition & 0 deletions modules/calendar/vw_day_tasks.php
Expand Up @@ -2,6 +2,7 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo convert to template

global $this_day, $first_time, $last_time, $company_id, $m, $a;

Expand Down
1 change: 1 addition & 0 deletions modules/calendar/week_view.php
Expand Up @@ -2,6 +2,7 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo convert to template

// check permissions for this record
$perms = &$AppUI->acl();
Expand Down
1 change: 1 addition & 0 deletions modules/calendar/year_view.php
Expand Up @@ -2,6 +2,7 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo convert to template

// check permissions for this record
$perms = &$AppUI->acl();
Expand Down
4 changes: 3 additions & 1 deletion modules/companies/companies.class.php
Expand Up @@ -3,7 +3,9 @@
/**
* @package web2project\modules\core
*
* @todo Move the 'address' fields to a generic table
* @todo Move the 'address' fields to a generic table
* @todo new query object
* @todo refactor static methods
*/

class CCompany extends w2p_Core_BaseObject {
Expand Down
1 change: 1 addition & 0 deletions modules/contacts/addedit.php
Expand Up @@ -2,6 +2,7 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo convert to template

$contact_id = (int) w2PgetParam($_GET, 'contact_id', 0);
$company_id = (int) w2PgetParam($_GET, 'company_id', 0);
Expand Down
3 changes: 3 additions & 0 deletions modules/contacts/contacts.class.php
Expand Up @@ -2,6 +2,9 @@

/**
* @package web2project\modules\core
*
* @todo new query object
* @todo refactor static methods
*/

class CContact extends w2p_Core_BaseObject
Expand Down
1 change: 1 addition & 0 deletions modules/contacts/csvexport.php
Expand Up @@ -2,6 +2,7 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo convert to template

$canRead = canView('contacts');
if (!$canRead) {
Expand Down
1 change: 1 addition & 0 deletions modules/contacts/select_contact_company.php
Expand Up @@ -2,6 +2,7 @@
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
// @todo convert to template

$table_name = w2PgetParam($_GET, 'table_name', 'companies');
$company_id = (int) w2PgetParam($_GET, 'company_id', 0);
Expand Down

0 comments on commit ebc2c2e

Please sign in to comment.