getCodesArray() public static méthode

public static getCodesArray ( )
Exemple #1
0
 /**
  * We don't use this, but we could use it later
  * if we wanted to. It would get the locale
  * from the first segment of the url, e.g.
  *
  * 	http://somesite.com/en/cool/page
  *
  * @return string
  */
 public function segment()
 {
     $segment = $this->Framework->Request->segment(1, null);
     $languages = \DvsLanguage::getCodesArray();
     return in_array($segment, $languages) ? $segment : null;
 }