Example #1
0
 /**
  * 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;
     }
 }
Example #2
0
 /**
  * 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;
 }