/** * 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. */ 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. */ public static function SetFactory($Factory, $Override = TRUE) { if ($Override || is_null(self::$_Factory)) self::$_Factory = $Factory; }