articles
[ class tree: articles ] [ index: articles ] [ all elements ]

Source for file lookup_article_topic_inc.php

Documentation is available at lookup_article_topic_inc.php

  1. <?php
  2. /**
  3.  * @version $Header$
  4.  * @package articles
  5.  * @subpackage functions
  6.  */
  7.  
  8. /**
  9.  * Initialization
  10.  */
  11.     global $gContent;
  12.     require_onceARTICLES_PKG_PATH.'BitArticle.php');
  13.     
  14.     // if we already have a gContent, we assume someone else created it for us, and has properly loaded everything up.
  15.     ifempty$gContent || !is_object$gContent ) ) {
  16.         if (!empty($_REQUEST['topic_id']&& is_numeric($_REQUEST['topic_id'])) {
  17.             $gContent new BitArticleTopic$_REQUEST['topic_id');
  18.         else {
  19.             $gContent new BitArticleTopic();
  20.         }
  21.  
  22.         ifempty$gContent->mTopicId ) ) {
  23.             //handle legacy forms that use plain 'article' form variable name
  24.         else {
  25.             $gContent->loadTopic();
  26.         }
  27.         $gBitSmarty->assign_by_ref'gContent'$gContent );
  28.     }

Documentation generated on Wed, 29 Jul 2015 13:57:03 +0000 by phpDocumentor 1.5.0-lsces