protected function _generateAction($node, $parent)
$method = (string)$node['method'];
This is from /code/core/Mage/Core/Layout.php. $node in this case is an object of class Mage_Core_Model_Layout_Element.
I don’t understand why this works; when I try to do something similar in a test file, I get the error
PHP Fatal error: Cannot use object of type foo as array
Perhaps I’m missing something here; would someone do me a favor and point out my ignorance, please.