예제 #1
0
파일: Zip.php 프로젝트: cnglobal-sl/caterez
 /**
  * Get value
  * 
  * @return string
  */
 public function _getValue(Varien_Object $row)
 {
     $value = parent::_getValue($row);
     if ($value === '') {
         return '*';
     } else {
         return $value;
     }
 }
예제 #2
0
 public function _getValue(Varien_Object $row)
 {
     $value = parent::_getValue($row);
     if ($row->getIsRequired()) {
         $value = '<div class="is_required_attribute">' . $value . ' *' . '</div>';
     } elseif (!$row->getMappingAttributeId()) {
         $value = '<div class="is_custom_attribute">' . $value . '</div>';
     }
     return $value;
 }
예제 #3
0
 /**
  * Renders grid column
  *
  * @param Varien_Object $row
  * @return mixed
  */
 public function _getValue(Varien_Object $row)
 {
     // If no format and it column not filtered specified return data as is.
     $_data = (int) parent::_getValue($row);
     $_string = is_null($_data) ? 0 : (int) $_data;
     $_w = floor($_string / 10080);
     $_d = floor(($_string - $_w * 10080) / 1440);
     $_h = floor(($_string - $_w * 10080 - $_d * 1440) / 60);
     $_m = $_string - $_w * 10080 - $_d * 1440 - $_h * 60;
     $_gridString = '';
     if ($_w) {
         $_gridString .= $_w . ' weeks ';
     }
     if ($_d) {
         $_gridString .= $_d . ' days ';
     }
     if ($_h) {
         $_gridString .= $_h . ' hours ';
     }
     if ($_m) {
         $_gridString .= $_m . ' minutes';
     }
     return $this->escapeHtml($_gridString);
 }