From 0f70bce07ce7704dabb4d162730c3e7a23cb3469 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Fri, 13 Jun 2008 13:48:29 +0000 Subject: update to LibertyMime --- Pigeonholes.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'Pigeonholes.php') diff --git a/Pigeonholes.php b/Pigeonholes.php index 75e5acf..4a75242 100644 --- a/Pigeonholes.php +++ b/Pigeonholes.php @@ -1,6 +1,6 @@ - * @version $Revision: 1.124 $ + * @version $Revision: 1.125 $ * @package pigeonholes */ /** * required setup */ -require_once( LIBERTY_PKG_PATH.'LibertyAttachable.php' ); +require_once( LIBERTY_PKG_PATH.'LibertyMime.php' ); require_once( LIBERTY_PKG_PATH.'LibertyStructure.php' ); /** @@ -32,7 +32,7 @@ require_once( LIBERTY_PKG_PATH.'LibertyStructure.php' ); * * @package pigeonholes */ -class Pigeonholes extends LibertyAttachable { +class Pigeonholes extends LibertyMime { /** * initiate class * @param $pContentId content id of the pigeonhole - use either one of the ids. @@ -42,7 +42,7 @@ class Pigeonholes extends LibertyAttachable { * @access public **/ function Pigeonholes( $pStructureId=NULL, $pContentId=NULL, $pMemberList=Null ) { - LibertyAttachable::LibertyAttachable(); + LibertyMime::LibertyMime(); $this->registerContentType( PIGEONHOLES_CONTENT_TYPE_GUID, array( 'content_type_guid' => PIGEONHOLES_CONTENT_TYPE_GUID, 'content_description' => 'Pigeonhole', @@ -104,7 +104,7 @@ class Pigeonholes extends LibertyAttachable { } if( $pLoadAttachable ) { - LibertyAttachable::load(); + LibertyMime::load(); } // if the content for the pigeonhole is requested, get it @@ -646,7 +646,7 @@ class Pigeonholes extends LibertyAttachable { **/ function store( &$pParamHash ) { $this->mDb->StartTrans(); - if( $this->verify( $pParamHash ) && LibertyAttachable::store( $pParamHash ) ) { + if( $this->verify( $pParamHash ) && LibertyMime::store( $pParamHash ) ) { $table = BIT_DB_PREFIX."pigeonholes"; // this really confusing, strange order way of saving items is due to strange behaviour of GenID @@ -657,7 +657,7 @@ class Pigeonholes extends LibertyAttachable { } $pParamHash['structure_location_id'] = $this->mStructureId; } else { - // update the pigeonhole_store and structure_store content_id with the one from LibertyAttachable::store() + // update the pigeonhole_store and structure_store content_id with the one from LibertyMime::store() $pParamHash['structure_store']['content_id'] = $pParamHash['content_id']; $pParamHash['pigeonhole_store']['content_id'] = $pParamHash['content_id']; @@ -904,7 +904,7 @@ class Pigeonholes extends LibertyAttachable { // remove all entries from content tables $this->mContentId = $id['content_id']; - if( LibertyAttachable::expunge() ) { + if( LibertyMime::expunge() ) { $ret = TRUE; $this->mDb->CompleteTrans(); } else { -- cgit v1.3