public function get($message_key) {
		$this->ensureLoaded();

		// Check for a section key, which uses a period as a separator.
		$separator = strpos($message_key, '.');
		if (false === $separator) {
			if (isset($this->messages[$message_key])) {
				return $this->messages[$message_key];
			}

			if (isset($this->link)) {
				return $this->link->get($message_key);
			}

			throw new \InvalidArgumentException('Unknown key "' . $message_key . '".');
		}

		$section = substr($message_key, 0, $separator);
		$sub_key = substr($message_key, $separator + 1);

		if (isset($this->messages[$section][$sub_key])) {
			return $this->messages[$section][$sub_key];
		}

		if (isset($this->link)) {
			return $this->link->get($message_key);
		}

		if (!isset($this->messages[$section])) {
			throw new \InvalidArgumentException('Unknown section "' . $section . '".');
		}

		throw new \InvalidArgumentException('Unknown key "' . $sub_key . '" in section "' . $section . '".');
	}
public function get($message_key) {
		$this->ensureLoaded();

		// Check for a section key, which uses a period as a separator.
		$separator = strpos($message_key, '.');
		if (false === $separator) {
			if (isset($this->messages[$message_key])) {
				return $this->messages[$message_key];
			}

			if (isset($this->link)) {
				return $this->link->get($message_key);
			}

			throw new \InvalidArgumentException('Unknown key "' . $message_key . '".');
		}

		$section = substr($message_key, 0, $separator);
		$sub_key = substr($message_key, $separator + 1);

		if (isset($this->messages[$section][$sub_key])) {
			return $this->messages[$section][$sub_key];
		}

		if (isset($this->link)) {
			return $this->link->get($message_key);
		}

		if (!isset($this->messages[$section])) {
			throw new \InvalidArgumentException('Unknown section "' . $section . '".');
		}

		throw new \InvalidArgumentException('Unknown key "' . $sub_key . '" in section "' . $section . '".');
	}
public function get ( $ message_key ) { $ this -> ensureLoaded ( ) ; // Check for a section key, which uses a period as a separator. $ separator = strpos ( $ message_key , '.' ) ; if ( false === $ separator ) { if ( isset ( $ this -> messages [ $ message_key ] ) ) { return $ this -> messages [ $ message_key ] ; } if ( isset ( $ this -> link ) ) { return $ this -> link -> get ( $ message_key ) ; } throw new \ InvalidArgumentException ( 'Unknown key "' . $ message_key . '".' ) ; } $ section = substr ( $ message_key , 0 , $ separator ) ; $ sub_key = substr ( $ message_key , $ separator + 1 ) ; if ( isset ( $ this -> messages [ $ section ] [ $ sub_key ] ) ) { return $ this -> messages [ $ section ] [ $ sub_key ] ; } if ( isset ( $ this -> link ) ) { return $ this -> link -> get ( $ message_key ) ; } if ( ! isset ( $ this -> messages [ $ section ] ) ) { throw new \ InvalidArgumentException ( 'Unknown section "' . $ section . '".' ) ; } throw new \ InvalidArgumentException ( 'Unknown key "' . $ sub_key . '" in section "' . $ section . '".' ) ; }
Gets the raw value of a message.

@param string $message_key

@return string
Gets the raw value of a message .