--
You received this message because you are subscribed to the Google Groups "In-Portal Development Team" group.
To post to this group, send email to in-por...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-de...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-dev?hl=en.
The question remains where do we put them? They will be kind of
extensions of that Currency Helper once refactored.
What you think?
DA.
On Jan 26, 3:30 am, Alexander Obuhovich <aik.b...@gmail.com> wrote:
> In case if we don't move each class declaration to separate file, then we
> will violate our own coding standards, but because of they are really small,
> then we could keep them together as you proposed.
>
> On Mon, Jan 25, 2010 at 7:13 PM, Dmitry Andrejev <dandre...@gmail.com>wrote:
>
>
>
>
>
> > Yes, I agree with Alex.
>
> > However do we really want to create 3 separate files for each CurrencyRates
> > class which only has 2 methods in each?
>
> > What if we properly rename and move kCurrencyRates as proposed into helpers
> > and create a separate file for all kBankLVCurrencyRates, kECBCurrencyRates,
> > kFRNYCurrencyRates which extend kCurrencyRates?
>
> > What's you take on this?
>
> > DA.
>
> > On Thu, Jan 21, 2010 at 4:48 AM, Alexander Obuhovich <aik.b...@gmail.com>wrote:
>
> >> All currency converter classes are located in same file, not in separate
> >> files as they should. Base currency converter class is named
> >> "kCurrencyRates" (starting with "k"), but it is not part of In-Portal
> >> distribution, and belongs to In-Commerce module, so "k" should be removed.
> >> Also this class is registered not in unit config, but in kApplication class
> >> directly. At the end all classes from file
> >> "\in-commerce\units\currencies\currency_rates.php" should be moved to
> >> "\in-commerce\units\helpers" folder and named properly, because they are
> >> actually helpers.
>
> >> --
> >> Best Regards,
>
> >>http://www.in-portal.com
> >>http://www.alex-time.com
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "In-Portal Development Team" group.
> >> To post to this group, send email to in-por...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> in-portal-de...@googlegroups.com<in-portal-dev%2Bunsubscribe@goog legroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/in-portal-dev?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "In-Portal Development Team" group.
> > To post to this group, send email to in-por...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > in-portal-de...@googlegroups.com<in-portal-dev%2Bunsubscribe@goog legroups.com>
To unsubscribe from this group, send email to in-portal-de...@googlegroups.com.
572: Refactor Currency Converter Class
http://tracker.in-portal.org/view.php?id=572
DA.
On Jan 26, 9:50 am, Dmitry Andrejev <dandre...@gmail.com> wrote:
> Ok so you recommend we leave all classes in a single file. I thought to
> break it on two files - Base Currency Converter class and separate file for
> Extension classes...
>
> I am okay with a single file - it was just a thought.
>
> DA.
>
> On Tue, Jan 26, 2010 at 9:47 AM, Alexander Obuhovich <aik.b...@gmail.com>wrote:
>
>
>
> > Did you miss my original post, where I've mentioned place, where those
> > classes should be moved. In that case it will be
> > "in-commerce/units/helper/currency_rate_helper.php".
>
I'd ask a question: how many e-commerce projects had more than 1
currency enabled?
I don't know how much theses 175 currencies weight in DB, but if it
could fasten order process, I'd recommend a function to remove
unecessary currencies.
Phil.
Not to disappoint you, but I know many In-Commerce projects that have
many.
Also, there is NO additional load (considerable) related to having all
175 currencies - really small amount and loaded ONLY when needed.
This task is purely for Code Standards of In-Portal.
Cheers!
DA.