<commit_before><?PHP  // $Id$

class feedback_item_base {
    var $type;
    /**
     * The class constructor
     *
     */
    function feedback_item_base() {
        $this->init();
    }

    /**
     * Fake constructor to keep PHP5 happy
     *
     */
    function __construct() {
        $this->feedback_item_base();
    }
    
    /**
     * prints the item-related sequenz on the edit-item form
     * 
     * @param $item the db-object from feedback_item
     * @param $usehtmleditor defines whether the editor should be shown or not
     */
    function show_edit($item, $usehtmleditor = false) {
    }

    /**
     * returns an Array with three values(typ, name, XXX)
     * XXX is also an Array (count of responses on type $this->type)
     * each element is a structure (answertext, answercount)
     * @param $item the db-object from feedback_item
     * @param $groupid if given
     * @param $courseid if given
     * @return array
    */
    function get_analysed($item, $groupid = false, $courseid = false) {
        return array();
    }

    /**
     * @param object $item the db-object from feedback_item
     * @param string $value a item-related value from feedback_values
     * @return string
    */
    function get_printval($item, $value) {
      return '';
    }

    /**
     * @param $item the db-object from feedback_item
     * @param string $itemnr
     * @param integer $groupid
     * @param integer $courseid
     * @return integer the new itemnr
    */
    function print_analysed($item, $itemnr = '', $groupid = false, $courseid = false) {
      return 0;
    }

    /**
     * @param object $worksheet a reference to the pear_spreadsheet-object
     * @param integer $rowOffset
     * @param object $item the db-object from feedback_item
     * @param integer $groupid
     * @param integer $courseid
     * @return integer the new rowOffset
    */
    function excelprint_item(&$worksheet, $rowOffset, $item, $groupid, $courseid = false) {
      return $rowOffset;
    }

    function print_item($item, $value = false, $readonly = false, $edit = false, $highlightrequire = false){
    }

    function check_value($value, $item) {
        return true;
    }

    function create_value($data) {
        return '';
    }

    function get_presentation($data) {
      return '';
   }

    function get_hasvalue() {
        return 0;
    }
}
?><commit_msg>MDL-14711 - added a class feedback_item_pagebreak in feedback_item_class.php<commit_after><?PHP  // $Id$

class feedback_item_base {
    var $type;
    /**
     * The class constructor
     *
     */
    function feedback_item_base() {
        $this->init();
    }

    /**
     * Fake constructor to keep PHP5 happy
     *
     */
    function __construct() {
        $this->feedback_item_base();
    }
    
    /**
     * prints the item-related sequenz on the edit-item form
     * 
     * @param $item the db-object from feedback_item
     * @param $usehtmleditor defines whether the editor should be shown or not
     */
    function show_edit($item, $usehtmleditor = false) {
    }

    /**
     * returns an Array with three values(typ, name, XXX)
     * XXX is also an Array (count of responses on type $this->type)
     * each element is a structure (answertext, answercount)
     * @param $item the db-object from feedback_item
     * @param $groupid if given
     * @param $courseid if given
     * @return array
    */
    function get_analysed($item, $groupid = false, $courseid = false) {
        return array();
    }

    /**
     * @param object $item the db-object from feedback_item
     * @param string $value a item-related value from feedback_values
     * @return string
    */
    function get_printval($item, $value) {
      return '';
    }

    /**
     * @param $item the db-object from feedback_item
     * @param string $itemnr
     * @param integer $groupid
     * @param integer $courseid
     * @return integer the new itemnr
    */
    function print_analysed($item, $itemnr = '', $groupid = false, $courseid = false) {
      return 0;
    }

    /**
     * @param object $worksheet a reference to the pear_spreadsheet-object
     * @param integer $rowOffset
     * @param object $item the db-object from feedback_item
     * @param integer $groupid
     * @param integer $courseid
     * @return integer the new rowOffset
    */
    function excelprint_item(&$worksheet, $rowOffset, $item, $groupid, $courseid = false) {
      return $rowOffset;
    }

    function print_item($item, $value = false, $readonly = false, $edit = false, $highlightrequire = false){
    }

    function check_value($value, $item) {
        return true;
    }

    function create_value($data) {
        return '';
    }

    function get_presentation($data) {
      return '';
   }

    function get_hasvalue() {
        return 0;
    }
}

//a dummy class to realize pagebreaks
class feedback_item_pagebreak extends feedback_item_base {
    var $type = "pagebreak";
    function init() {
    
    }
}

?>
{'fraction_non_alphanumeric': 0.11017964071856287, 'fraction_numerical': 0.0021956087824351296, 'mean_word_length': 2.3676075268817205, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '2966609', 'n_tokens_mistral': 1526, 'n_tokens_neox': 1484, 'n_words': 447}