Back to PhocacartRenderAdmincolumns class

Method commonColumn

public
commonColumn
(mixed $item, mixed $options)

Method commonColumn - Source code

/* COLUMN BODY */
public function commonColumn($item, $options)
{
    if ($item['params']['edit'] && ($item['cancreate'] || $item['canedit'])) {
        return $this->r->td('<span class="ph-editinplace-text ph-eip-' . $item['editclass'] . ' ph-eip-' . $item['name'] . '" id="' . $item['idtoken'] . '">' . PhocacartText::filterValue($item['value'], $item['editfilter']) . '</span>', 'small');
    } else {
        return $this->r->td('<span class="ph-' . $item['name'] . '">' . PhocacartText::filterValue($item['value'], $item['editfilter']) . '</span>', 'small');
    }
}