\TransvisionRTLSupport

VersionControl class

Utility class for Right to Left languages, mostly used for templating

Summary

Methods
Properties
Constants
getDirection()
isRTL()
$rtl
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$rtl

$rtl : 

List of locales that are Right to Left

Type

Methods

getDirection()

getDirection(string  $locale) : string

Get the text direction from a locale code

Parameters

string $locale

locale code

Returns

string —

rtl or ltr

isRTL()

isRTL(\Transvision\type  $locale) : boolean

Is this locale code a RTL locale?

Parameters

\Transvision\type $locale

locale code we want to test

Returns

boolean —

true if RTL, false if LTR