original_string: public function generateXml()
      {
          $xml = $this->getUpdate()->asSimplexml();
          $removeInstructions = $xml->xpath("//remove");
          if (is_array($removeInstructions)) {
              foreach ($removeInstructions as $infoNode) {
                  /** @var Mage_Core_Model_Layout_Element $infoNode */
                  if (!$this->checkConditionals($infoNode, false)) {
                      continue;
                  }
                  $blockName = trim((string)$infoNode['name']);
                  if ($blockName) {
                      $ignoreNodes = $xml->xpath("//block[@name='" . $blockName . "'] | //reference[@name='" . $blockName . "']");
                      if (is_array($ignoreNodes)) {
                          foreach ($ignoreNodes as $ignoreNode) {
                              /** @var Mage_Core_Model_Layout_Element $ignoreNode */
                              $ignoreNode['ignore'] = true;
                          }
                      }
                  }
              }
          }
          $this->setXml($xml);
          return $this;
      }
code: public function generateXml()
      {
          $xml = $this->getUpdate()->asSimplexml();
          $removeInstructions = $xml->xpath("//remove");
          if (is_array($removeInstructions)) {
              foreach ($removeInstructions as $infoNode) {
                  /** @var Mage_Core_Model_Layout_Element $infoNode */
                  if (!$this->checkConditionals($infoNode, false)) {
                      continue;
                  }
                  $blockName = trim((string)$infoNode['name']);
                  if ($blockName) {
                      $ignoreNodes = $xml->xpath("//block[@name='" . $blockName . "'] | //reference[@name='" . $blockName . "']");
                      if (is_array($ignoreNodes)) {
                          foreach ($ignoreNodes as $ignoreNode) {
                              /** @var Mage_Core_Model_Layout_Element $ignoreNode */
                              $ignoreNode['ignore'] = true;
                          }
                      }
                  }
              }
          }
          $this->setXml($xml);
          return $this;
      }
code_tokens: public function generateXml ( ) { $ xml = $ this -> getUpdate ( ) -> asSimplexml ( ) ; $ removeInstructions = $ xml -> xpath ( "//remove" ) ; if ( is_array ( $ removeInstructions ) ) { foreach ( $ removeInstructions as $ infoNode ) { /** @var Mage_Core_Model_Layout_Element $infoNode */ if ( ! $ this -> checkConditionals ( $ infoNode , false ) ) { continue ; } $ blockName = trim ( ( string ) $ infoNode [ 'name' ] ) ; if ( $ blockName ) { $ ignoreNodes = $ xml -> xpath ( "//block[@name='" . $ blockName . "'] | //reference[@name='" . $ blockName . "']" ) ; if ( is_array ( $ ignoreNodes ) ) { foreach ( $ ignoreNodes as $ ignoreNode ) { /** @var Mage_Core_Model_Layout_Element $ignoreNode */ $ ignoreNode [ 'ignore' ] = true ; } } } } } $ this -> setXml ( $ xml ) ; return $ this ; }
docstring: Layout XML generation
  
  @return Aoe_Layout_Model_Layout
docstring_tokens: Layout XML generation