Commit 4833d8b062ae5b4d2e6b97edfc62af0bb8fda9fe
1 parent
0ec5198f
Code cleanup.
Committed by: Jarrett Jordaan Reviewed by: Megan Watson
Showing
6 changed files
with
10 additions
and
32 deletions
lib/actions/bulkaction.php
| ... | ... | @@ -49,9 +49,7 @@ require_once(KT_LIB_DIR . '/documentmanagement/documentutil.inc.php'); |
| 49 | 49 | require_once(KT_LIB_DIR . '/widgets/forms.inc.php'); |
| 50 | 50 | |
| 51 | 51 | require_once(KT_LIB_DIR . "/util/sanitize.inc"); |
| 52 | - | |
| 53 | -// // Jarrett Jordaan: Deal with bulk action | |
| 54 | -require_once(KT_LIB_DIR . '/subscriptions/subscriptions.inc.php'); | |
| 52 | +require_once(KT_LIB_DIR . '/subscriptions/subscriptions.inc.php'); // Deal with bulk action | |
| 55 | 53 | |
| 56 | 54 | class KTBulkAction extends KTStandardDispatcher { |
| 57 | 55 | var $sName; |
| ... | ... | @@ -603,7 +601,9 @@ class KTBulkAction extends KTStandardDispatcher { |
| 603 | 601 | 'form' => $this->form_complete())); |
| 604 | 602 | } |
| 605 | 603 | |
| 606 | - // Jarrett Jordaan: Deal with bulk actions | |
| 604 | + /** | |
| 605 | + * Deal with bulk actions | |
| 606 | + */ | |
| 607 | 607 | function do_notification($objects, $eventAction, $targetFolder) { |
| 608 | 608 | // Make sure there were documents/folders affected |
| 609 | 609 | if ($targetFolder && count($objects) > 0 && $eventAction != '') { | ... | ... |
lib/foldermanagement/folderutil.inc.php
lib/import/bulkimport.inc.php
| ... | ... | @@ -40,8 +40,7 @@ |
| 40 | 40 | require_once(KT_LIB_DIR . '/foldermanagement/folderutil.inc.php'); |
| 41 | 41 | require_once(KT_LIB_DIR . '/documentmanagement/documentutil.inc.php'); |
| 42 | 42 | require_once(KT_LIB_DIR . '/filelike/filelikeutil.inc.php'); |
| 43 | -// // Jarrett Jordaan: Deal with bulk action | |
| 44 | -require_once(KT_LIB_DIR . '/subscriptions/subscriptions.inc.php'); | |
| 43 | +require_once(KT_LIB_DIR . '/subscriptions/subscriptions.inc.php'); // Deal with bulk action | |
| 45 | 44 | |
| 46 | 45 | class KTBulkImportManager { |
| 47 | 46 | var $oStorage; | ... | ... |
lib/subscriptions/subscriptions.inc.php
| ... | ... | @@ -97,11 +97,8 @@ class SubscriptionEvent { |
| 97 | 97 | * Every attempt is made to be as explicit as possible. |
| 98 | 98 | */ |
| 99 | 99 | |
| 100 | - /* | |
| 100 | + /** | |
| 101 | 101 | * Notification of bulk upload |
| 102 | - * Author : Jarrett Jordaan | |
| 103 | - * Date : 27/04/09 | |
| 104 | - * | |
| 105 | 102 | * @params : KTDocumentUtil $oDocObjects |
| 106 | 103 | * KTFolderUtil $oParentFolder |
| 107 | 104 | */ |
| ... | ... | @@ -115,11 +112,8 @@ class SubscriptionEvent { |
| 115 | 112 | } |
| 116 | 113 | } |
| 117 | 114 | |
| 118 | - /* | |
| 115 | + /** | |
| 119 | 116 | * Bulk upload email notification handler |
| 120 | - * Author : Jarrett Jordaan | |
| 121 | - * Date : 27/04/09 | |
| 122 | - * | |
| 123 | 117 | * @params : User $aUsers |
| 124 | 118 | * string $eventType |
| 125 | 119 | * KTDocumentUtil $oDocObjects | ... | ... |
lib/users/User.inc
| ... | ... | @@ -461,10 +461,8 @@ class User extends KTEntity { |
| 461 | 461 | return KTEntityUtil::getList2('User', $sWhereClause); |
| 462 | 462 | } |
| 463 | 463 | |
| 464 | - /* | |
| 465 | - * Modified : Jarrett Jordaan | |
| 466 | - * Added : Get new users | |
| 467 | - * Date : 24/04/09 | |
| 464 | + /** | |
| 465 | + * Get new users | |
| 468 | 466 | * |
| 469 | 467 | */ |
| 470 | 468 | function getByLastLoginNever() { |
| ... | ... | @@ -473,17 +471,9 @@ class User extends KTEntity { |
| 473 | 471 | return KTEntityUtil::getList2('User', $sWhereClause, $aOptions); |
| 474 | 472 | } |
| 475 | 473 | |
| 476 | - /* | |
| 477 | - * Modified : Jarrett Jordaan | |
| 478 | - * Added : Filter out disabled users | |
| 479 | - * Date : 24/04/09 | |
| 480 | - * Added : Removed disabled users Filter | |
| 481 | - * Date : 24/04/09 | |
| 482 | - */ | |
| 483 | 474 | function getByLastLoginAfter($dDateTime) { |
| 484 | 475 | return KTEntityUtil::getByDict('User', array( |
| 485 | 476 | 'last_login' => array('type' => 'after', 'value' => $dDateTime), |
| 486 | -// 'disabled' => 0, | |
| 487 | 477 | ), array('multi' => true)); |
| 488 | 478 | } |
| 489 | 479 | ... | ... |
lib/workflow/workflowtriggerinstance.inc.php
| ... | ... | @@ -72,8 +72,6 @@ class KTWorkflowTriggerInstance extends KTEntity { |
| 72 | 72 | function &get($iId) { return KTEntityUtil::get('KTWorkflowTriggerInstance', $iId); } |
| 73 | 73 | |
| 74 | 74 | function &createFromArray($aOptions) { |
| 75 | - // Modified : Jarrett Jordaan | |
| 76 | - // Removed Serialize, since the original is serialized already | |
| 77 | 75 | $aOptions['configarraytext'] = $aOptions['config']; |
| 78 | 76 | unset($aOptions['config']); |
| 79 | 77 | return KTEntityUtil::createFromArray('KTWorkflowTriggerInstance', $aOptions); | ... | ... |