*/ class Mage_XmlConnect_Block_Customer_Form extends Mage_Core_Block_Template { /** * Render customer form xml * * @return string */ protected function _toHtml() { $editFlag = (int)$this->getRequest()->getParam('edit'); $customer = $this->getCustomer(); /** @var $xmlModel Mage_XmlConnect_Model_Simplexml_Element */ $xmlModel = Mage::getModel('xmlconnect/simplexml_element', ''); //Enterprise_Customer if ($editFlag == 1 && $customer && $customer->getId()) { $firstname = $xmlModel->escapeXml($customer->getFirstname()); $lastname = $xmlModel->escapeXml($customer->getLastname()); $email = $xmlModel->escapeXml($customer->getEmail()); } else { $firstname = $lastname = $email = ''; } if ($editFlag) { $passwordManageXml = '
password
'; } else { $passwordManageXml = ' password '; } $xml = <<
$passwordManageXml EOT; return $xml; } }