summaryrefslogtreecommitdiff
path: root/LibertyBase.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2005-08-07 17:40:33 +0000
committerMax Kremmel <xing@synapse.plus.com>2005-08-07 17:40:33 +0000
commit71c4c1487dc6cf29087612584f239a15e8b39f2f (patch)
tree7684cad3e93c38f6d4529d9e68983a8822c05931 /LibertyBase.php
parentee3fd1e1d304664c64c5e6f34a28561374fbab58 (diff)
downloadliberty-71c4c1487dc6cf29087612584f239a15e8b39f2f.tar.gz
liberty-71c4c1487dc6cf29087612584f239a15e8b39f2f.tar.bz2
liberty-71c4c1487dc6cf29087612584f239a15e8b39f2f.zip
merge recent changes from R1 to HEAD
Diffstat (limited to 'LibertyBase.php')
-rw-r--r--LibertyBase.php18
1 files changed, 6 insertions, 12 deletions
diff --git a/LibertyBase.php b/LibertyBase.php
index 2fe7440..3111431 100644
--- a/LibertyBase.php
+++ b/LibertyBase.php
@@ -1,10 +1,10 @@
<?php
/**
- * Management of Liberty Content
+ * Base class for Management of Liberty Content
*
+ * @package liberty
+ * @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyBase.php,v 1.3 2005/08/07 17:40:29 squareing Exp $
* @author spider <spider@steelsun.com>
- * @version $Revision: 1.2 $
- * @package Liberty
*/
// +----------------------------------------------------------------------+
// | Copyright (c) 2004, bitweaver.org
@@ -17,8 +17,6 @@
// +----------------------------------------------------------------------+
// | Authors: spider <spider@steelsun.com>
// +----------------------------------------------------------------------+
-//
-// $Id: LibertyBase.php,v 1.2 2005/06/28 07:45:47 spiderr Exp $
/**
* required setup
@@ -29,16 +27,12 @@ require_once( KERNEL_PKG_PATH.'BitBase.php' );
* Virtual base class (as much as one can have such things in PHP) for all
* derived bitweaver classes that manage content.
*
- * @abstract
- * @author spider <spider@steelsun.com>
- * @version $Revision: 1.2 $
- * @package Liberty
- * @subpackage LibertyBase
+ * @package liberty
*/
class LibertyBase extends BitBase {
function LibertyBase () {
- // we need to init our mDb early
+ // we need to init our database connection early
BitBase::BitBase();
}
@@ -54,7 +48,7 @@ class LibertyBase extends BitBase {
if( BitBase::verifyId( $pContentId ) ) {
if( empty( $pContentGuid ) ) {
- $pContentGuid = $gLibertySystem->GetOne( "SELECT `content_type_guid` FROM `".BIT_DB_PREFIX."tiki_content` WHERE `content_id`=?", array( $pContentId ) );
+ $pContentGuid = $gLibertySystem->mDb->GetOne( "SELECT `content_type_guid` FROM `".BIT_DB_PREFIX."tiki_content` WHERE `content_id`=?", array( $pContentId ) );
}
if( !empty( $pContentGuid) && isset( $gLibertySystem->mContentTypes[$pContentGuid] ) ) {
$type = $gLibertySystem->mContentTypes[$pContentGuid];