diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-15 13:35:37 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-15 13:35:37 +0000 |
commit | 1a08a1f4a273737afb508c781d5f39cef021a273 (patch) | |
tree | 7b4c1766c7b6d0f1e492e467dccb19869f39445a /mod/tasklist/start.php | |
parent | ef3e87ebcf82fbf172aa719e23ef1a6cfca7a948 (diff) | |
download | elgg-1a08a1f4a273737afb508c781d5f39cef021a273.tar.gz elgg-1a08a1f4a273737afb508c781d5f39cef021a273.tar.bz2 |
Moving some stuff into the plugins repo, where it belongs.
git-svn-id: https://code.elgg.org/elgg/trunk@646 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/tasklist/start.php')
-rw-r--r-- | mod/tasklist/start.php | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/mod/tasklist/start.php b/mod/tasklist/start.php deleted file mode 100644 index 720114238..000000000 --- a/mod/tasklist/start.php +++ /dev/null @@ -1,83 +0,0 @@ -<?php - /** - * Elgg tasklist test - * - * @package ElggTasklist - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Marcus Povey <marcus@marcus-povey.co.uk> - * @copyright Curverider Ltd 2008 - * @link http://elgg.com/ - */ - - /** - * Simple tasklist plugin - * - * These parameters are required for the event API, but we won't use them: - * - * @param unknown_type $event - * @param unknown_type $object_type - * @param unknown_type $object - */ - function tasklist_init($event, $object_type, $object = null) { - - global $CONFIG; - - add_menu("Tasklist",$CONFIG->wwwroot . "mod/tasklist/",array( - menu_item("The tasklist plugin",$CONFIG->wwwroot."mod/tasklist/"), - )); - } - - /** - * The entity. - * - * @param ElggObject $entity - */ - function tasklist_draw_task($entity) - { - // Get the status - $status = $entity->getMetaData("status"); - - // Task - $task = $entity->getMetaData("task"); - - // Render the item - return elgg_view("tasklist/item", array( - "owner_id" => $entity->owner_guid, - "task" => $task, - "status" => $status, - "guid" => $entity->guid - )); - } - - function tasklist_drawtasks($ownerid, $offset = 0, $limit = 10) - { - // Get all entities of task - //$entities = get_entities("object","task",$ownerid, "time_created desc", $limit, $offset); - $entities = get_entities_from_metadata("status", "notdone", "object", "task", $limit, $offset); - - if (($entities) && (is_array($entities))) - { - $display = "<table>"; - - foreach($entities as $e) - $display .= tasklist_draw_task($e); - - $display .= "</table>"; - - return $display; - } - - return "No tasks present for user."; - } - - function tasklist_draw_newtask_form($ownerid) - { - return elgg_view("tasklist/newtask", array( - "owner_id" => $ownerid - )); - } - - // Make sure test_init is called on initialisation - register_event_handler('init','system','tasklist_init'); - -?>
\ No newline at end of file |