root/scripts/dev/generate-phpt/src/gtText.php

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. get

<?php

/**
 * Get a text message
 *
 */
class gtText
{

  /**
   * Get the text message and return it
   *
   * @param string $name
   * @return string
   */
  public static function get($name) {
    $filename = dirname(__FILE__) . '/texts/' . $name . '.txt';

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

    return file_get_contents($filename);
  }
}


/* [<][>][^][v][top][bottom][index][help] */