static getDefaultExchange ( )
staticinherited

Returns a default exchange as model for new exchanges.

Returns
CesBankExchange The default exchange. To be used as a model for new exchanges.

Referenced by CesBank\getDefaultExchange().

1539  {
1540  $record = array(
1541  'id' => 0,
1542  'code' => 'XCHG',
1543  'active' => 0,
1544  'shortname' => 'Xchange',
1545  'name' => 'Xchange Default',
1546  'country' => 'Spain',
1547  'region' => 'Barcelon├Ęs',
1548  'town' => 'Barcelona',
1549  'website' => 'http://www.example.com',
1550  'map' => 'https://maps.google.com/maps?q=barcelona,+spain',
1551  'admin' => 1,
1552  'limitchain' => 1,
1553  'currencysymbol' => 'XCR',
1554  'currencyname' => 'Xcredit',
1555  'currenciesname' => 'Xcredits',
1556  'currencyvalue' => '1',
1557  'currencyscale' => 2,
1558  'created' => REQUEST_TIME,
1559  'modified' => REQUEST_TIME,
1560  'data' => array(),
1561  );
1562  $s = new IcesSerializer('CesBankExchange');
1563  $exchange = $s->loadFromRecord($record);
1564  return $exchange;
1565  }
Loads and saves to db objects of class IcesDBObject.
Definition: common.db.logic.inc:17