Back to PhocacartRenderAdmincolumns class

Method item

public
item
(mixed $function, mixed $item, mixed &$options)

Method item - Source code

public function item($function, $item, &$options)
{
    if ($function == '') {
        return false;
    }
    $function = strtolower($function) . '';
    if (!is_callable(array($this, $function))) {
        throw new \InvalidArgumentException('Function ' . $function . ' not supported', 500);
    }
    return call_user_func_array(array($this, $function), array($item, &$options));
}