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

Source for file lookup_newsletter_edition_inc.php

Documentation is available at lookup_newsletter_edition_inc.php

  1. <?php
  2. /**
  3.  * Copyright (c) 2005 bitweaver.org
  4.  * All Rights Reserved. See below for details and a complete list of authors.
  5.  * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details
  6.  *
  7.  * created 2005/12/10
  8.  *
  9.  * @package newsletters
  10.  * @author spider <spider@steelsun.com>
  11.  */
  12.  
  13. /** 
  14.  * Initialization
  15.  */
  16.  require_once( NEWSLETTERS_PKG_PATH.'BitNewsletterEdition.php' );
  17.  
  18. if( empty( $gContent ) || !is_object( $gContent ) || !$gContent->isValid() ) {
  19.     $editionId = !empty( $_REQUEST['edition_id'] ) ? $_REQUEST['edition_id'] : NULL;
  20.     $conId = !empty( $_REQUEST['content_id'] ) ? $_REQUEST['content_id'] : NULL;
  21.     $nlId = !empty( $_REQUEST['nl_id'] ) ? $_REQUEST['nl_id'] : NULL;
  22.     $gContent = new BitNewsletterEdition( $editionId, $conId, $nlId );
  23.     $gContent->load();
  24.     $gBitSmarty->assign_by_ref( 'gContent', $gContent );
  25. }
  26.  
  27.  
  28. ?>

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