Chris@0: direction. Chris@0: */ Chris@0: const DIRECTION_LTR = 'ltr'; Chris@0: Chris@0: /** Chris@0: * Language written right to left. Possible value of $language->direction. Chris@0: */ Chris@0: const DIRECTION_RTL = 'rtl'; Chris@0: Chris@0: /** Chris@0: * Gets the name of the language. Chris@0: * Chris@0: * @return string Chris@0: * The human-readable name of the language (in the language that was Chris@0: * used to construct this object). Chris@0: */ Chris@0: public function getName(); Chris@0: Chris@0: /** Chris@0: * Gets the ID (language code). Chris@0: * Chris@0: * @return string Chris@0: * The language code. Chris@0: */ Chris@0: public function getId(); Chris@0: Chris@0: /** Chris@0: * Gets the text direction (left-to-right or right-to-left). Chris@0: * Chris@0: * @return string Chris@0: * Either self::DIRECTION_LTR or self::DIRECTION_RTL. Chris@0: */ Chris@0: public function getDirection(); Chris@0: Chris@0: /** Chris@0: * Gets the weight of the language. Chris@0: * Chris@0: * @return int Chris@0: * The weight, used to order languages with larger positive weights sinking Chris@0: * items toward the bottom of lists. Chris@0: */ Chris@0: public function getWeight(); Chris@0: Chris@0: /** Chris@0: * Returns whether this language is the default language. Chris@0: * Chris@0: * @return bool Chris@0: * Whether the language is the default language. Chris@0: */ Chris@0: public function isDefault(); Chris@0: Chris@0: /** Chris@0: * Returns whether this language is locked. Chris@0: * Chris@0: * @return bool Chris@0: * Whether the language is locked or not. Chris@0: */ Chris@0: public function isLocked(); Chris@0: Chris@0: }