/** * Set data to block * * @return string */ protected function _toHtml() { $agreement = $this->_getBillingAgreement(); $this->setReferenceId($agreement->getReferenceId()); $customer = Mage::getModel('Mage_Customer_Model_Customer')->load($agreement->getCustomerId()); $this->setCustomerUrl($this->getUrl('*/customer/edit', array('id' => $customer->getId()))); $this->setCustomerEmail($customer->getEmail()); $this->setStatus($agreement->getStatusLabel()); $this->setCreatedAt($this->helper('Mage_Core_Helper_Data')->formatDate($agreement->getCreatedAt(), 'short', true)); $this->setUpdatedAt($agreement->getUpdatedAt() ? $this->helper('Mage_Core_Helper_Data')->formatDate($agreement->getUpdatedAt(), 'short', true) : $this->__('N/A')); return parent::_toHtml(); }