**/ class twIf_Object_Dummy extends twIf_Object { const TWIF_LAZY_VARIABLES = 1; // {{{ newInstance /** * Create a new dummy * * @access public * @return object **/ public static function newInstance () { // Check if there is support for late static binding if (!function_exists ('get_called_class')) { trigger_error (twIf_i18n::getText ('No support for late static binding, creating %s', __CLASS__)); return new twIf_Object_Dummy; } // Return handle of our child class $Class = get_called_class (); return new $Class; } // }}} // {{{ getInstance /** * Load a faked instance * * @remark This is just a dummy for newInstance(), as we have no storage assigned * * @access public * @return object **/ public static function getInstance ($Value = null, $Key = null) { return self::newInstance (); } // }}} // {{{ getID /** * Retrive a faked ID for this class * * @access public * @return string **/ public function getID () { return 'singleton'; } // }}} // {{{ commit /** * Fake a successfull commit * * @access public * @return bool Always true **/ public function commit () { return true; } // }}} } ?>