public static function import_once($path) { $path = String_helper::to_slash($path); require_once dirname(__DIR__) . "/../{$path}.php"; }
* * String Helper * * @category Plugins * @package String Helper * @version 0.1.0 * @since 0.1.0 * @author George Ornbo <*****@*****.**> * @see {@link http://github.com/shapeshed/string_helper.ee_addon/} * @license {@link http://opensource.org/licenses/bsd-license.php} */ /** * Plugin information used by ExpressionEngine * @global array $plugin_info */ $plugin_info = array('pi_name' => 'String Helper', 'pi_version' => '0.1.0', 'pi_author' => 'George Ornbo', 'pi_author_url' => 'http://shapeshed.com/', 'pi_description' => 'Provides helper methods for manipulating strings', 'pi_usage' => String_helper::usage()); class String_helper { /** * Tag data holds the inital ExpressionEngine tag data. * It is then used as the array to hold parsed data and returned. * @var array * @access public */ private $tagdata; /** * Data sent back to calling function * @var string * @access public */ public $return_data;