cvs: pear /Perm_LiveUser/Admin/Perm DB_Common.php MDB_Common.php

From: Date: Thu, 11 Dec 2003 08:52:43 +0000
Subject: cvs: pear /Perm_LiveUser/Admin/Perm DB_Common.php MDB_Common.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-14784@lists.php.net to get a copy of this message
arnaud Thu Dec 11 03:52:43 2003 EDT Modified files: /pear/Perm_LiveUser/Admin/Perm DB_Common.php MDB_Common.php Log: * fix for #352 Index: pear/Perm_LiveUser/Admin/Perm/DB_Common.php diff -u pear/Perm_LiveUser/Admin/Perm/DB_Common.php:1.47 pear/Perm_LiveUser/Admin/Perm/DB_Common.php:1.48 --- pear/Perm_LiveUser/Admin/Perm/DB_Common.php:1.47 Tue Dec 9 05:02:22 2003 +++ pear/Perm_LiveUser/Admin/Perm/DB_Common.php Thu Dec 11 03:52:43 2003 @@ -34,7 +34,7 @@ * DB based containers used to maintain * the permission database. * - * @version $Id: DB_Common.php,v 1.47 2003/12/09 10:02:22 arnaud Exp $ + * @version $Id: DB_Common.php,v 1.48 2003/12/11 08:52:43 arnaud Exp $ * @package LiveUser */ class LiveUser_Admin_Perm_DB_Common extends LiveUser_Admin_Perm_Common @@ -207,7 +207,7 @@ // Register translation $query = 'INSERT INTO ' . $this->prefix . 'translations - (section_id, section_type, language_id, name, comment) + (section_id, section_type, language_id, name, comments) VALUES ( ' . (int)$section_id . ', @@ -254,8 +254,8 @@ $query = 'UPDATE ' . $this->prefix . 'translations SET - name = ' . $this->dbc->quote($name) . ', - comment = ' . (($comment === null) ? 'null' : $this->dbc->quote($comment)) . ' + name = ' . $this->dbc->quote($name) . ', + comments = ' . (($comment === null) ? 'null' : $this->dbc->quote($comment)) . ' WHERE section_id = ' . (int)$section_id . ' AND section_type = ' . (int)$section_type . ' AND @@ -325,8 +325,8 @@ { // get translation $query = 'SELECT - translations.name AS name, - translations.comment AS comment + translations.name AS name, + translations.comments AS comment FROM ' . $this->prefix . 'translations translations WHERE @@ -1210,7 +1210,7 @@ applications.application_id AS application_id, applications.application_define_name AS define_name, translations.name AS name, - translations.comment AS comment + translations.comments AS comment FROM ' . $this->prefix . 'applications applications, ' . $this->prefix . 'translations translations @@ -1261,7 +1261,7 @@ areas.area_id AS area_id, areas.application_id AS application_id, translations.name AS name, - translations.comment AS comment, + translations.comments AS comment, areas.area_define_name AS define_name FROM ' . $this->prefix . 'areas areas, @@ -1419,7 +1419,7 @@ rights.has_level AS has_level, rights.has_scope AS has_scope, translations.name AS name, - translations.comment AS comment + translations.comments AS comment FROM ' . $this->prefix . 'rights rights, ' . $this->prefix . 'areas areas, @@ -1488,7 +1488,7 @@ $query .= ' ,rights.right_define_name, rights.has_implied, rights.has_level, rights.has_scope, - translations.name, translations.comment + translations.name, translations.comments ORDER BY rights.area_id ASC'; Index: pear/Perm_LiveUser/Admin/Perm/MDB_Common.php diff -u pear/Perm_LiveUser/Admin/Perm/MDB_Common.php:1.29 pear/Perm_LiveUser/Admin/Perm/MDB_Common.php:1.30 --- pear/Perm_LiveUser/Admin/Perm/MDB_Common.php:1.29 Mon Dec 8 05:51:53 2003 +++ pear/Perm_LiveUser/Admin/Perm/MDB_Common.php Thu Dec 11 03:52:43 2003 @@ -34,7 +34,7 @@ * MDB based containers used to maintain * the permission database. * - * @version $Id: MDB_Common.php,v 1.29 2003/12/08 10:51:53 arnaud Exp $ + * @version $Id: MDB_Common.php,v 1.30 2003/12/11 08:52:43 arnaud Exp $ * @package LiveUser */ class LiveUser_Admin_Perm_MDB_Common extends LiveUser_Admin_Perm_Common @@ -215,7 +215,7 @@ // Register translation $query = 'INSERT INTO ' . $this->prefix . 'translations - (section_id, section_type, language_id, name, comment) + (section_id, section_type, language_id, name, comments) VALUES ( ' . $this->dbc->getValue('integer', $section_id) . ', @@ -262,8 +262,8 @@ $query = 'UPDATE ' . $this->prefix . 'translations SET - name = ' . $this->dbc->getValue('text', $name) . ', - comment = ' . $this->dbc->getValue('text', $comment) . ' + name = ' . $this->dbc->getValue('text', $name) . ', + comments = ' . $this->dbc->getValue('text', $comment) . ' WHERE section_id = ' . $this->dbc->getValue('integer', $section_id) . ' AND section_type = ' . $this->dbc->getValue('integer', $section_type) . ' AND @@ -334,7 +334,7 @@ // get translation $query = 'SELECT translations.name as name, - translations.comment as comment + translations.comments as comment FROM ' . $this->prefix . 'translations translations WHERE @@ -1203,7 +1203,7 @@ applications.application_id AS application_id, applications.application_define_name AS define_name, translations.name AS name, - translations.comment AS comment + translations.comments AS comment FROM ' . $this->prefix . 'applications applications, ' . $this->prefix . 'translations translations @@ -1251,7 +1251,7 @@ areas.area_id AS area_id, areas.application_id AS application_id, translations.name AS name, - translations.comment AS comment, + translations.comments AS comment, areas.area_define_name AS define_name FROM ' . $this->prefix . 'areas areas, @@ -1408,7 +1408,7 @@ rights.has_level AS has_level, rights.has_scope AS has_scope, translations.name AS name, - translations.comment AS comment + translations.comments AS comment FROM ' . $this->prefix . 'rights rights, ' . $this->prefix . 'areas areas, @@ -1477,7 +1477,7 @@ $query .= ' ,rights.right_define_name, rights.has_implied, rights.has_level, rights.has_scope, - translations.name, translations.comment + translations.name, translations.comments ORDER BY rights.area_id ASC';

« previous php.pear.cvs (#14784) next »