In this case, the directly responsible file is app/code/core/Mage/Wishlist/Model/Config.php , where it consists entirely of this:
class Mage_Wishlist_Model_Config { const XML_PATH_PRODUCT_ATTRIBUTES = 'global/wishlist/item/product_attributes'; public function getProductAttributes() { $attrsForCatalog = Mage::getSingleton('catalog/config')->getProductAttributes(); $attrsForWishlist = Mage::getConfig()->getNode(self::XML_PATH_PRODUCT_ATTRIBUTES)->asArray(); return array_merge($attrsForCatalog, array_keys($attrsForWishlist)); } }
So whenever you need to read the configuration, just use Mage::getConfig()->getNode() and go through the path to the node that interests you. In this example, the path global/wishlist/item/product_attributes , which you already know.
Each module will read the configuration as necessary and there is no formal definition. This flexibility allows any module to contribute to any other module settings.
source share