public static
approve
(mixed $value, mixed $i, mixed $prefix = '', mixed $enabled = true, mixed $checkbox = 'cb', mixed $publish_up = null, mixed $publish_down = null)
public static function approve($value, $i, $prefix = '', $enabled = true, $checkbox = 'cb', $publish_up = null, $publish_down = null)
{
if (is_array($prefix)) {
$options = $prefix;
$enabled = array_key_exists('enabled', $options) ? $options['enabled'] : $enabled;
$checkbox = array_key_exists('checkbox', $options) ? $options['checkbox'] : $checkbox;
$prefix = array_key_exists('prefix', $options) ? $options['prefix'] : '';
}
$states = array(1 => array('unpublish', 'COM_PHOCACART_APPROVED', 'COM_PHOCACART_DISAPPROVE_ITEM', 'COM_PHOCACART_APPROVED', true, 'publish', 'publish'), 0 => array('publish', 'COM_PHOCACART_NOT_APPROVED', 'COM_PHOCACART_APPROVE_ITEM', 'COM_PHOCACART_NOT_APPROVED', true, 'unpublish', 'unpublish'));
return static::state($states, $value, $i, $prefix, $enabled, true, $checkbox);
}