dolibarr 23.0.3
abstractlist.controller.class.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2023-2024 Laurent Destailleur <eldy@users.sourceforge.net>
3 * Copyright (C) 2023-2024 Lionel Vessiller <lvessiller@easya.solutions>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <https://www.gnu.org/licenses/>.
17 */
18
19require_once __DIR__ . '/../class/controller.class.php';
20
30abstract class AbstractListController extends Controller
31{
35 public $formList;
36
42 public function listSetArrayFields()
43 {
44 }
45
52 public function listSetSearchValues($clear = false)
53 {
54 }
55
64 public function listPrintValueBefore($field_key, $field_spec, &$record)
65 {
66 return '';
67 }
68
78 public function listPrintValueAfter($field_key, $field_spec, &$record, $out)
79 {
80 return $out;
81 }
82}
Class for AbstractListController.
listSetSearchValues($clear=false)
Set search values.
listPrintValueBefore($field_key, $field_spec, &$record)
Called before print value for list.
listPrintValueAfter($field_key, $field_spec, &$record, $out)
Called after print value for list.
Class to manage pages.