summaryrefslogtreecommitdiff
path: root/LibertySystem.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2006-02-22 16:38:03 +0000
committerChristian Fowler <spider@viovio.com>2006-02-22 16:38:03 +0000
commit668e040eee2cb26078d0a154b9df61a65b007f15 (patch)
tree08d3a5292356f0212ccc2a6efc39a84c0e6555d3 /LibertySystem.php
parent5eccd121703c65c23f84ed0c4089198474b13b65 (diff)
downloadliberty-668e040eee2cb26078d0a154b9df61a65b007f15.tar.gz
liberty-668e040eee2cb26078d0a154b9df61a65b007f15.tar.bz2
liberty-668e040eee2cb26078d0a154b9df61a65b007f15.zip
add getContentTypeDescription methods - particularly useful in .tpl files
Diffstat (limited to 'LibertySystem.php')
-rwxr-xr-xLibertySystem.php10
1 files changed, 9 insertions, 1 deletions
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'];