Back to index

php5  5.3.10
Static Public Member Functions
gtText Class Reference

Get a text message. More...

List of all members.

Static Public Member Functions

static get ($name)
 Get the text message and return it.

Detailed Description

Get a text message.

Definition at line 7 of file gtText.php.


Member Function Documentation

static gtText::get ( name) [static]

Get the text message and return it.

Parameters:
string$name
Returns:
string

Definition at line 16 of file gtText.php.

                                    {
    $filename = dirname(__FILE__) . '/texts/' . $name . '.txt';

    if (!file_exists($filename)) {
      throw new LogicException('The text ' . $name . ' does not exist');
    }

    return file_get_contents($filename);
  }

Here is the caller graph for this function:


The documentation for this class was generated from the following file: