library/core/class.gdn.php
public static function SetFactory($Factory, $Override = TRUE) {
      if ($Override || is_null(self::$_Factory))
         self::$_Factory = $Factory;
   }
public static function SetFactory($Factory, $Override = TRUE) {
      if ($Override || is_null(self::$_Factory))
         self::$_Factory = $Factory;
   }
public static function SetFactory ( $ Factory , $ Override = TRUE ) { if ( $ Override || is_null ( self :: $ _Factory ) ) self :: $ _Factory = $ Factory ; }
Set the object used as the factory for the api.

@param Gdn_Factory $Factory The object used as the factory.
@param boolean $Override whether to override the property if it is already set.
Set the object used as the factory for the api .