File Manager

Current Path : /webspace/www.promiel.be/html/lib/classes/
Upload File :
Current File : //webspace/www.promiel.be/html/lib/classes/class.CmsLanguageDetector.php

<?php
#CMS - CMS Made Simple
#(c)2004-2012 by Ted Kulp (wishy@users.sf.net)
#This project's homepage is: http://www.cmsmadesimple.org
#
#This program is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2 of the License, or
#(at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.
#You should have received a copy of the GNU General Public License
#along with this program; if not, write to the Free Software
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#$Id: translation.functions.php 7867 2012-04-13 18:00:14Z calguy1000 $

/**
 * Translation functions/classes
 *
 * @package CMS
 */

/**
 * An abstract class that is used to determine a suitable language for display
 * This may be used by CMSMS on frontend requests to detect a suitable language.
 * modules may supply a language detector to read from preferences etc.
 *
 * @see CmsNlsOperations::set_language_detector()
 * @author Robert Campbell
 * @package CMS
 * @since 1.11
 */
abstract class CmsLanguageDetector
{
  public function __construct() {}

  /**
   * Abstract function to determine a language.
   * This method may use cookies, session data, user preferences, values from the url
   * or from the browser to determine a language.  The returned language must exist
   * within the CMSMS Install.
   *
   * @return language name string
   */
  abstract public function find_language();

} // end of class

#
# EOF
#
?>

File Manager Version 1.0, Coded By Lucas
Email: hehe@yahoo.com