public function getCurrentLocaleDirection()
    {
        if (!empty($this->supportedLocales[$this->getCurrentLocale()]['dir'])) {
            return $this->supportedLocales[$this->getCurrentLocale()]['dir'];
        }

        switch ($this->getCurrentLocaleScript()) {
            // Other (historic) RTL scripts exist, but this list contains the only ones in current use.
            case 'Arab':
            case 'Hebr':
            case 'Mong':
            case 'Tfng':
            case 'Thaa':
            return 'rtl';
            default:
            return 'ltr';
        }
    }
public function getCurrentLocaleDirection()
    {
        if (!empty($this->supportedLocales[$this->getCurrentLocale()]['dir'])) {
            return $this->supportedLocales[$this->getCurrentLocale()]['dir'];
        }

        switch ($this->getCurrentLocaleScript()) {
            // Other (historic) RTL scripts exist, but this list contains the only ones in current use.
            case 'Arab':
            case 'Hebr':
            case 'Mong':
            case 'Tfng':
            case 'Thaa':
            return 'rtl';
            default:
            return 'ltr';
        }
    }
public function getCurrentLocaleDirection ( ) { if ( ! empty ( $ this -> supportedLocales [ $ this -> getCurrentLocale ( ) ] [ 'dir' ] ) ) { return $ this -> supportedLocales [ $ this -> getCurrentLocale ( ) ] [ 'dir' ] ; } switch ( $ this -> getCurrentLocaleScript ( ) ) { // Other (historic) RTL scripts exist, but this list contains the only ones in current use. case 'Arab' : case 'Hebr' : case 'Mong' : case 'Tfng' : case 'Thaa' : return 'rtl' ; default : return 'ltr' ; } }
Returns current locale direction.

@return string current locale direction
Returns current locale direction .