示例#1
0
     * @access public
     * @param key $key	The key to check
     * @return boolean True, if the key exists
     */
    function hasKey($key)
    {
        return isset($this->_strings[strtoupper($key)]);
    }
    /**
     * Get the path to a language
     *
     * @access public
     * @param string $basePath  The basepath to use
     * @param string $language	The language tag
     * @return string	language related path or null
     */
    function getLanguagePath($basePath = JPATH_BASE, $language = null)
    {
        $dir = $basePath . DS . 'language';
        if (isset($language)) {
            $dir .= DS . $language;
        }
        return $dir;
    }
}
/*
 * Process the AJAX requests
 */
$xajax->cleanBufferOff();
//Needed for suPHP compilance
$xajax->processRequests();
示例#2
0
	 * @return boolean True, if the key exists
	 */
	function hasKey($key) {
		return isset ($this->_strings[strtoupper($key)]);
	}

	/**
	 * Get the path to a language
	 *
	 * @access public
	 * @param string $basePath  The basepath to use
	 * @param string $language	The language tag
	 * @return string	language related path or null
	 */
	function getLanguagePath($basePath = JPATH_BASE, $language = null )
	{
		$dir = $basePath.DS.'language';
		if (isset ($language)) {
			$dir .= DS.$language;
		}
		return $dir;
	}
}



/*
 * Process the AJAX requests
 */
$xajax->cleanBufferOff(); //Needed for suPHP compilance
$xajax->processRequests();