/** * retrieve the default location_type * * @param NULL * * @return object The default location type object on success, * null otherwise * @static * @access public */ static function &getDefault() { if (self::$_defaultLocationType == null) { $params = array('is_default' => 1); $defaults = array(); self::$_defaultLocationType = self::retrieve($params, $defaults); } return self::$_defaultLocationType; }