noalyss Version-9
document_state_mtable.class.php
Go to the documentation of this file.
1<?php
2/*
3 * Copyright (C) 2017 Dany De Bontridder <dany@alchimerys.be>
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (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, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 *
19 * Part of Noalyss (2002-2020)
20 */
21
22
23/***
24 * @file
25 * @brief class Document_State_MTable
26 * @see Manage_Table_SQL
27 *
28 */
29require_once NOALYSS_INCLUDE.'/database/document_state_sql.class.php';
30/**
31 * @brief this instance extends Manage_Table_SQL and aims to manage
32 * the Table tmp_pcmn thanks a web interface (add , delete, display...)
33 *
34 * @see Document_State_SQL
35 */
36
38{
40 {
41 parent::__construct($p_table);
42 $this->set_col_label("s_value", _("Label"));
43 $this->set_col_label('s_status',_('Action'));
44 $this->set_delete_row(false);
45 $this->set_col_type('s_status','select',array(
46 array('value'=>'C','label'=>_('Ferme')),
47 array('value'=>'','label'=>_('Aucune')))
48 );
49 $this->set_property_visible('s_id',false);
50 $this->set_property_updatable('s_id',false);
51 }
52 function build()
53 {
54 $this->set_callback("ajax_misc.php");
55 $this->add_json_param("op", "document_state");
56 }
57}
this instance extends Manage_Table_SQL and aims to manage the Table tmp_pcmn thanks a web interface (...
__construct(Document_State_SQL $p_table)
Purpose is to propose a librairy to display a table content and allow to update and delete row ,...
set_delete_row($p_value)
Enable or disable the deletion of rows.
set_property_updatable($p_key, $p_value)
set a column of the data row updatable or not
set_col_type($p_key, $p_value, $p_array=NULL)
set the type of a column , it will change in the input db box , the select must supply an array of po...
add_json_param($p_attribute, $p_value)
Add json parameter to the current one.
set_callback($p_file)
set the callback function that is passed to javascript
set_property_visible($p_key, $p_value)
set a column of the data row visible or not
set_col_label($p_key, $p_display)
set the name to display for a column