public static function link_checkbox($page = null) { $checked = true; if (is_array($page) && isset($page['b_link']) && $page['b_link'] == 0) { $checked = false; } parent::generic_input_checkbox('b_link', "1", $checked); }
public static function show_email_checkbox($item = null) { if ($item == null) { $item = osc_item(); } if (Session::newInstance()->_getForm('showEmail') != 0) { $item['b_show_email'] = Session::newInstance()->_getForm('showEmail'); } parent::generic_input_checkbox('showEmail', '1', isset($item['b_show_email']) ? $item['b_show_email'] : false); return true; }
public static function required_checkbox($field = null) { parent::generic_input_checkbox('field_required', 1, $field != null && isset($field['b_required']) && $field['b_required'] == 1 ? true : false); }
public static function rememberme_login_checkbox($user = null) { parent::generic_input_checkbox("remember", '1', false); }
public static function apply_changes_to_subcategories($category = null) { if ($category['fk_i_parent_id'] == NULL) { parent::generic_input_checkbox("apply_changes_to_subcategories", "1", true); } }
public static function searchable_checkbox($field = null) { parent::generic_input_checkbox('field_searchable', 1, $field != null && isset($field['b_searchable']) && $field['b_searchable'] == 1 ? true : false); }
public static function show_email_checkbox($item = null) { if ($item == null) { $item = osc_item(); } parent::generic_input_checkbox('showEmail', '1', isset($item['b_show_email']) ? $item['b_show_email'] : false); return true; }
public static function enabled_bo_input_checkbox($locale = null) { parent::generic_input_checkbox("b_enabled_bo", "1", $locale["b_enabled_bo"] == 1 ? true : false); return true; }
public static function enabled_input_checkbox($category = null) { parent::generic_input_checkbox("b_enabled", "1", isset($category) && isset($category['b_enabled']) && $category["b_enabled"] == 1 ? true : false); return true; }
public static function price_enabled_for_category($category = null) { parent::generic_input_checkbox("b_price_enabled", "1", isset($category) && isset($category['b_price_enabled']) && $category["b_price_enabled"] == 1 ? true : false); }