B: Missing methods for Mage 1.7

_getAttribute and _getStrftimeFormat, copied from Mage 1.9
Merge remote-tracking branch 'upstream/master'

* upstream/master:
  B: Missing methods for Mage 1.7