/** * * get post or get application */ public static function getPostGetVar($name, $default = "", $filter = "STRING") { if (empty(self::$app)) { self::$app = JFactory::getApplication(); } $jinput = self::$app->input; $var = $jinput->get($name, $default, $filter); return $var; }