/** * Get an object that can be passed to Smarty templates that wraps * our API with non-static methods of the same names and arguments. */ public static function getInstance() { if (!isset(self::$instance)) { self::$instance = new Feature_Instance(); } return self::$instance; }