Location: PHPKode > projects > Chalange > com_chalange/helpers/helper.php
<?php

/**
* Helper class for mod_sql2excel
*
* Author: Jooma-R-Us
* Email: hide@address.com
**/

class modSql2FileHelper
{
   function getLinks ( $params, $module_id )
   {
      $links = '';
      $dlURL = JURI::base().DS.'modules'.DS.'mod_sql2excel'.DS.'download.php?id=' . $module_id;
      

      for ( $i=1; $i<=5;$i++) {
      	$link = $params->get('link'.$i);
      	$sql  = $params->get('sql'.$i); 
      	$published = $params->get('published'.$i);
      	if ( $published == 1 && $link != null && $sql != null ) {      
         	$links .= '  <li> <a href="' . $dlURL . '&link=' .$i. '">' . $link . "</a></li>\n";
      	}
      }
      
      if ( $links != '' ) {
         $links = "<ul>\n" . $links . "\n</ul>\n";
      }
      
      return $links;
   }
}
?>
Return current item: Chalange