/** * Returns an array containing, for each field, the arary key used for that * field in self::$_fields. * * @return array */ static function &fieldKeys() { if (!self::$_fieldKeys) { self::$_fieldKeys = array('id' => 'id', 'created_date' => 'created_date', 'transaction_date' => 'transaction_date', 'contact_id' => 'contact_id', 'description' => 'description', 'amount' => 'amount', 'currency' => 'currency', 'financial_account_id' => 'financial_account_id', 'status_id' => 'status_id', 'entity_table' => 'entity_table', 'entity_id' => 'entity_id'); } return self::$_fieldKeys; }