Adding methods to Yii Models including Named Scopes.
Working with Yii's Active Record implementation, conditions, limits, ordering, selecting certain data.