So, basically, I have a template that makes the following call.
$methods = $this->getMethods();
$oneMethod = count($methods) <= 1;
The corresponding block class simply has something like this
public function getMethods(){
$methods = $this->getData('methods');
}
(I have only copied the relevant portion of the code)
The problem is that I cannot figure out where the getData
is looking because no model has been instantiated in this block class or the one that extends to it. There is no call like Mage::getModel(?/?)
.
How does this know which table to look at in the database? The variables I'm trying to find are "payment methods" (like credit card, cheque, etc). the Block classes I'm dealing with are:
Mage_Payment_Block_Form_Container
Mage_Core_Block_Template
Mage_Core_Block_Abstract
No models are instantiated in any of these classes and I cannot understand how the system is returning types of payment methods for $this->getData('methods');
$block->setMethods(...)
or$block->setData('methods', ...)
. The block itself is not handling this.