*/
class Mage_XmlConnect_Block_Adminhtml_Mobile_Grid_Renderer_Bool
extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract
{
/**
* Render application status image
*
* @param Varien_Object $row
* @return string
*/
public function render(Varien_Object $row)
{
$result = '';
$status = (int) $row->getData($this->getColumn()->getIndex());
$options = Mage::helper('xmlconnect')->getStatusOptions();
if ($status == Mage_XmlConnect_Model_Application::APP_STATUS_SUCCESS) {
$result = ' '
. (isset($options[$status]) ? $options[$status] : '');
} else if ($status == Mage_XmlConnect_Model_Application::APP_STATUS_INACTIVE) {
$result = ' '
. (isset($options[$status]) ? $options[$status] : '');
}
return $result;
}
}