Example #1
0
 /**
  * Constructor
  *
  * @since 1.0
  */
 function __construct()
 {
     parent::__construct();
     global $mainframe;
     $config =& HGUtil::config();
     // Get the paramaters of the active menu item
     $params =& $mainframe->getParams('com_hotelduigde');
     //get the number of events from database
     //	$limit			= JRequest::getInt('limit', $config->favmaximage);
     $limit = JRequest::getInt('limit', 10);
     $limitstart = JRequest::getInt('limitstart');
     $this->setState('limit', $limit);
     $this->setState('limitstart', $limitstart);
     // Get the filter request variables
     $this->setState('filter_order', JRequest::getCmd('filter_order', 'i.title'));
     $this->setState('filter_order_dir', JRequest::getCmd('filter_order_Dir', 'ASC'));
 }
Example #2
0
 * along with HOTELGUIDE; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
defined('_JEXEC') or die('Restricted access');
require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'defines.php';
//include the needed classes
require_once JPATH_COMPONENT . DS . 'classes' . DS . 'hotelguide.helper.php';
require_once JPATH_COMPONENT . DS . 'classes' . DS . 'hotelguide.sendmail.php';
require_once JPATH_COMPONENT . DS . 'classes' . DS . 'hotelguide.acl.php';
require_once JPATH_COMPONENT . DS . 'classes' . DS . 'hotelguide.events.php';
require_once JPATH_COMPONENT . DS . 'classes' . DS . 'hotelguide.city.php';
require_once JPATH_COMPONENT . DS . 'classes' . DS . 'hotelguide.state.php';
require_once JPATH_COMPONENT . DS . 'helpers' . DS . 'route.php';
require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'classes' . DS . 'util.php';
require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'select.php';
require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'html' . DS . 'list.php';
global $hgconf;
$hgconf = HGUtil::config();
//Set filepath
$params =& JComponentHelper::getParams('com_hotelguide');
// Set the table directory
JTable::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . DS . 'tables');
// Require the controller
require_once JPATH_COMPONENT . DS . 'controller.php';
// Create the controller
$classname = 'hotelguideController';
$controller = new $classname();
// Perform the Request task
$controller->execute(JRequest::getVar('task', null, 'default', 'cmd'));
// Redirect if set by the controller
$controller->redirect();