Skip to content

Instantly share code, notes, and snippets.

Created August 5, 2014 22:22
Show Gist options
  • Save anonymous/e3e1bbf3620078f8564e to your computer and use it in GitHub Desktop.
Save anonymous/e3e1bbf3620078f8564e to your computer and use it in GitHub Desktop.
private function decideOnLocaleId ()
{
if ( is_null ( $this -> localeId ) )
{
$locales = $this -> plansLangs -> getLocales () -> getRes () ;
var_dump ( $locales ) ;//NULL
var_dump ( $this -> plansLangs -> getLocales () -> getRes () ) ;// some array
return $locales[ 0 ][ $this -> plansLangs -> getLocales () -> getPkName () ] ;
}
return $this -> localeId ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment