Пример #1
0
 /**
  * Disable "delete" button if product has been sold
  * @param array
  * @param string
  * @param string
  * @param string
  * @param string
  * @param string
  * @return string
  */
 public function forDelete($row, $href, $label, $title, $icon, $attributes)
 {
     if (in_array($row['id'], Permission::getUndeletableIds())) {
         return \Image::getHtml(preg_replace('/\\.gif$/i', '_.gif', $icon)) . ' ';
     }
     return '<a href="' . \Backend::addToUrl($href . '&amp;id=' . $row['id']) . '" title="' . specialchars($title) . '"' . $attributes . '>' . \Image::getHtml($icon, $label) . '</a> ';
 }