akeeba/fof — pull request #194 by Skullbock (2013-10-31 17:29:13+00:00)
Title: Fixed (and added a small feature) to the model behavior loading process

# Before
Before this pull request, when FOF was loading a behavior for a model, it would follow this workflow:

1) Search for **Com_componentnameModelViewnameBehaviorName** (e.g. Com_foobarModelItemsBehaviorFilter)
2) Search for FOFModelBehaviorName (e.g. FOFModelBehaviorFilter)

This was wrong, since the comment for 1) suggested that it should've been **ComponentnameModelViewnameBehaviorName**

# After

1) Search for **ComponentnameModelViewnameBehaviorName** (e.g. FoobarModelItemsBehaviorFilter)
2) Search for **ComponentnameModelBehaviorName** (e.g. FoobarModelBehaviorFilter)
3) Search for FOFModelBehaviorName (e.g. FOFModelBehaviorFilter)

If fixed the issue, and while i was at it, i also added a new class search, that doesn't include the view name, but only the component name.
It makes sense that usually behaviors are shared across models, otherwise they would just stay in the single model class. That's why it should search for a more generic class name, and not one that depends on the model itself.

I left 2) since one single model may want to override a generic or component wide behavior