summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LibertyContent.php10
-rwxr-xr-xLibertySystem.php10
2 files changed, 18 insertions, 2 deletions
diff --git a/LibertyContent.php b/LibertyContent.php
index abed88c..13e3dfe 100644
--- a/LibertyContent.php
+++ b/LibertyContent.php
@@ -3,7 +3,7 @@
* Management of Liberty content
*
* @package liberty
-* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyContent.php,v 1.79 2006/02/21 10:38:15 jht001 Exp $
+* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyContent.php,v 1.80 2006/02/22 16:38:03 spiderr Exp $
* @author spider <spider@steelsun.com>
*/
@@ -957,6 +957,14 @@ class LibertyContent extends LibertyBase {
return $ret;
}
+ function getContentTypeDescription( $pContentType=NULL ) {
+ global $gLibertySystem;
+ if( is_null( $pContentType ) ) {
+ $pContentType = $this->getContentType();
+ }
+ return $gLibertySystem->getContentTypeDescription( $pContentType );
+ }
+
/**
* Access a content item type GUID
*
diff --git a/LibertySystem.php b/LibertySystem.php
index 3d2f286..4b73fc5 100755
--- a/LibertySystem.php
+++ b/LibertySystem.php
@@ -3,7 +3,7 @@
* System class for handling the liberty package
*
* @package liberty
-* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertySystem.php,v 1.17 2006/02/16 00:28:17 lphuberdeau Exp $
+* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertySystem.php,v 1.18 2006/02/22 16:38:03 spiderr Exp $
* @author spider <spider@steelsun.com>
*/
@@ -129,6 +129,14 @@ class LibertySystem extends LibertyBase {
}
}
+ function getContentTypeDescription( $pContentType ) {
+ $ret = NULL;
+ if( !empty( $this->mContentTypes[$pContentType]['content_description'] ) ) {
+ $ret = $this->mContentTypes[$pContentType]['content_description'];
+ }
+ return $ret;
+ }
+
function getService( $pPackageName ) {
global $gBitSystem;
return $gBitSystem->mPackages[$pPackageName]['service'];