[ros-diffs] [dgoette] 40253: Rename Subsystem class for subsystems with own user tables to SubsystemExternal, and use Subsystem for our own subsystems
dgoette at svn.reactos.org
dgoette at svn.reactos.org
Thu Mar 26 13:14:55 CET 2009
Author: dgoette
Date: Thu Mar 26 15:14:54 2009
New Revision: 40253
URL: http://svn.reactos.org/svn/reactos?rev=40253&view=rev
Log:
Rename Subsystem class for subsystems with own user tables to SubsystemExternal, and use Subsystem for our own subsystems
Added:
branches/danny-web/reactos.org/htdocs/roscms/lib/Subsystem.class.php
branches/danny-web/reactos.org/htdocs/roscms/lib/SubsystemExternal.class.php
- copied, changed from r40223, branches/danny-web/reactos.org/htdocs/roscms/lib/Subsystem.class.php
Modified:
branches/danny-web/reactos.org/htdocs/roscms/lib/subsystem/Subsystem_Bugzilla.class.php
branches/danny-web/reactos.org/htdocs/roscms/lib/subsystem/Subsystem_PHPBB.class.php
branches/danny-web/reactos.org/htdocs/roscms/lib/subsystem/Subsystem_Wiki.class.php
Added: branches/danny-web/reactos.org/htdocs/roscms/lib/Subsystem.class.php
URL: http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/roscms/lib/Subsystem.class.php?rev=40253&view=auto
==============================================================================
--- branches/danny-web/reactos.org/htdocs/roscms/lib/Subsystem.class.php (added)
+++ branches/danny-web/reactos.org/htdocs/roscms/lib/Subsystem.class.php [iso-8859-1] Thu Mar 26 15:14:54 2009
@@ -1,0 +1,50 @@
+<?php
+ /*
+ RosCMS - ReactOS Content Management System
+ Copyright (C) 2009 Danny Gtte <dangerground at web.de>
+
+ This program 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.
+
+ This program 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 this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+
+/**
+ * class Subsystem
+ *
+ * @package subsystems
+ */
+class Subsystem extends Login
+{
+
+
+
+ /**
+ * returns the roscms username
+ *
+ * @param int id user_id
+ * @return string
+ * @access public
+ */
+ public static function getUserName( $user_id )
+ {
+ $stmt=&DBConnection::getInstance()->prepare("SELECT name FROM ".ROSCMST_USERS." WHERE id = :user_id");
+ $stmt->bindParam('user_id',$user_id,PDO::PARAM_STR);
+ $stmt->execute();
+ return $stmt->fetchColumn();
+ } // end of member function getUserName
+
+
+
+} // end of Subsystem
+?>
Copied: branches/danny-web/reactos.org/htdocs/roscms/lib/SubsystemExternal.class.php (from r40223, branches/danny-web/reactos.org/htdocs/roscms/lib/Subsystem.class.php)
URL: http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/roscms/lib/SubsystemExternal.class.php?p2=branches/danny-web/reactos.org/htdocs/roscms/lib/SubsystemExternal.class.php&p1=branches/danny-web/reactos.org/htdocs/roscms/lib/Subsystem.class.php&r1=40223&r2=40253&rev=40253&view=diff
==============================================================================
--- branches/danny-web/reactos.org/htdocs/roscms/lib/Subsystem.class.php [iso-8859-1] (original)
+++ branches/danny-web/reactos.org/htdocs/roscms/lib/SubsystemExternal.class.php [iso-8859-1] Thu Mar 26 15:14:54 2009
@@ -24,7 +24,7 @@
*
* @package subsystems
*/
-abstract class Subsystem extends Login
+abstract class SubsystemExternal extends Subsystem
{
protected $name = ''; // name of subsystem
@@ -247,5 +247,5 @@
-} // end of Subsystem
+} // end of SubsystemExternal
?>
Modified: branches/danny-web/reactos.org/htdocs/roscms/lib/subsystem/Subsystem_Bugzilla.class.php
URL: http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/roscms/lib/subsystem/Subsystem_Bugzilla.class.php?rev=40253&r1=40252&r2=40253&view=diff
==============================================================================
--- branches/danny-web/reactos.org/htdocs/roscms/lib/subsystem/Subsystem_Bugzilla.class.php [iso-8859-1] (original)
+++ branches/danny-web/reactos.org/htdocs/roscms/lib/subsystem/Subsystem_Bugzilla.class.php [iso-8859-1] Thu Mar 26 15:14:54 2009
@@ -23,7 +23,7 @@
* class Subsystem_Bugzilla
*
*/
-class Subsystem_Bugzilla extends Subsystem
+class Subsystem_Bugzilla extends SubsystemExternal
{
Modified: branches/danny-web/reactos.org/htdocs/roscms/lib/subsystem/Subsystem_PHPBB.class.php
URL: http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/roscms/lib/subsystem/Subsystem_PHPBB.class.php?rev=40253&r1=40252&r2=40253&view=diff
==============================================================================
--- branches/danny-web/reactos.org/htdocs/roscms/lib/subsystem/Subsystem_PHPBB.class.php [iso-8859-1] (original)
+++ branches/danny-web/reactos.org/htdocs/roscms/lib/subsystem/Subsystem_PHPBB.class.php [iso-8859-1] Thu Mar 26 15:14:54 2009
@@ -23,7 +23,7 @@
* class Subsystem_PHPBB
*
*/
-class Subsystem_PHPBB extends Subsystem
+class Subsystem_PHPBB extends SubsystemExternal
{
Modified: branches/danny-web/reactos.org/htdocs/roscms/lib/subsystem/Subsystem_Wiki.class.php
URL: http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/roscms/lib/subsystem/Subsystem_Wiki.class.php?rev=40253&r1=40252&r2=40253&view=diff
==============================================================================
--- branches/danny-web/reactos.org/htdocs/roscms/lib/subsystem/Subsystem_Wiki.class.php [iso-8859-1] (original)
+++ branches/danny-web/reactos.org/htdocs/roscms/lib/subsystem/Subsystem_Wiki.class.php [iso-8859-1] Thu Mar 26 15:14:54 2009
@@ -23,7 +23,7 @@
* class Subsystem_Wiki
*
*/
-class Subsystem_Wiki extends Subsystem
+class Subsystem_Wiki extends SubsystemExternal
{
More information about the Ros-diffs
mailing list