<commit_before><?php

/*
 *
 * Copyright 2006, <NAME>, <NAME>, Cybersource Pty. Ltd.
 * 
 * This file is part of AllocPSA <<EMAIL>>.
 * 
 * AllocPSA is free software; you can redistribute it and/or modify it under the
 * terms of the GNU General Public License as published by the Free Software
 * Foundation; either version 2 of the License, or (at your option) any later
 * version.
 * 
 * AllocPSA is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * AllocPSA; if not, write to the Free Software Foundation, Inc., 51 Franklin
 * St, Fifth Floor, Boston, MA 02110-1301 USA
 *
 */

class top_ten_tasks_home_item extends home_item {
  var $date;

  function top_ten_tasks_home_item() {
    home_item::home_item("top_ten_tasks", "Top Five Tasks", "project", "topTenTasksH.tpl");
  }

  function show_tasks() {
    global $current_user, $tasks_date;

    $options["taskView"] = "prioritised";
    $options["projectType"] = "mine";
    $options["personID"] = $current_user->get_id();
    $options["taskStatus"] = "not_completed";
    $options["limit"] = 5;
    $options["showDate1"] = true;
    $options["showDate2"] = true;
    $options["showDate3"] = true;
    $options["showHeader"] = true;
    $options["showProject"] = true;

    echo task::get_task_list($options);
  }
}



?><commit_msg>[alloc @ <EMAIL>-20060412135002-99d0b9ac6fefedb9] Fixed thing where tasks on home page were not personalised<commit_after><?php

/*
 *
 * Copyright 2006, <NAME>, <NAME>, Cybersource Pty. Ltd.
 * 
 * This file is part of AllocPSA <<EMAIL>>.
 * 
 * AllocPSA is free software; you can redistribute it and/or modify it under the
 * terms of the GNU General Public License as published by the Free Software
 * Foundation; either version 2 of the License, or (at your option) any later
 * version.
 * 
 * AllocPSA is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * AllocPSA; if not, write to the Free Software Foundation, Inc., 51 Franklin
 * St, Fifth Floor, Boston, MA 02110-1301 USA
 *
 */

class top_ten_tasks_home_item extends home_item {
  var $date;

  function top_ten_tasks_home_item() {
    home_item::home_item("top_ten_tasks", "Top Five Tasks", "project", "topTenTasksH.tpl");
  }

  function show_tasks() {
    global $current_user, $tasks_date;

    $options["taskView"] = "prioritised";
    $options["projectType"] = "mine";
    $options["personIDonly"] = $current_user->get_id();
    $options["taskStatus"] = "not_completed";
    $options["limit"] = 5;
    $options["showDate1"] = true;
    $options["showDate2"] = true;
    $options["showDate3"] = true;
    $options["showHeader"] = true;
    $options["showProject"] = true;

    echo task::get_task_list($options);
  }
}



?>
{'fraction_non_alphanumeric': 0.11645332500780518, 'fraction_numerical': 0.018732438339057134, 'mean_word_length': 4.045669291338583, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3509851', 'n_tokens_mistral': 1032, 'n_tokens_neox': 967, 'n_words': 343}