SCHLIX\cmsSkin
Inherits bootstrap3
Protected Attributes
protected | $allowed_namespaces | = ['x-ui'] |
protected | $name | = 'basic' |
protected | $data | |
protected | $html_document | |
protected | $errors | |
protected | $replacements | = [] |
protected | $sc_replacements | = [] |
Protected Methods
protected | cleanUpNameSpaces($html) |
protected | addNewClassNameToClassList($class_list, $new_class_name) |
protected string | addClassAttribute(string $value, array $attributes) Add class attribute
|
protected string | addStringAttribute(string $attributes, string $key, string $value) Add a string attribute
|
protected | loadHTMLAsXML(string $html, $add_xui_ns=true) Convert HTML fragment into XML
|
protected | getFormattedXMLErrors($xml_errors) |
protected | html2node(string $html) Returns doc fragment from string
|
protected | xml2node(\SimpleXMLElement $xml) Returns a dom node from simple XML Element
|
protected | getSpecificTag($tagname, $source) |
protected | getApp() |
protected | isSCHLIXConfig() |
protected | isAuthenticated() |
protected | isAdminApp() |
protected | addCustomHTML($html) |
protected | performReplacements($html) |
protected | traverseArray(array $treecat, string $method_folder, string $method_item, int $parent, int $depth, string $field_id='id', string $field_cid='cid', string $field_parent_id='parent_id', string $field_title='title', string $primary_category_text='Primary Category') Traverse array
|
protected | traverseList(\DOMElement $nl, function $method_folder, function $method_item, string $ns='x-ui', string $ul_tag='ul', string $li_tag='li') Walk ul/li recursively
|
protected | whitelistAttributes(\DOMNode $node, array $whitelist) Clean up unwanted attributes
|
protected | cleanUpAttributes(\DOMNode $node, array $blacklist) Clean up unwanted attributes
|
protected | _comment(string $string) Returns a new commnet
|
protected | _nl() Returns a new line
|
protected | _e(string $element, array $attrs=null, string $node_val=null, array $node_children=null) Internal - create dom element
|
protected | _es(string $element, array $attrs=null, string $node_val=null) Internal - create dom element with simple text value
|
protected | _el(string $element, array $attrs=null, array $node_children=null) Internal - create dom element with nodes
|
protected | _t(string $t) Return a new text node
|
protected | _n() Create a new document fragment
|
protected | cloneChildNodes(\DOMNode $origin, \DOMNode $new_node, bool $prevent_xui_clone=false) Clone all child nodes. $prevent_xui_clone parameter is set to true by default, will have to be forced to
|
protected | getRadioCheckboxCheckedValue($origin, $standalone) |
protected | getFormDataArray() |
protected | getFormDataKey() |
protected | getFormData($key) |
protected bool | formDataKeyExists(string $key) Return true if a key exists in the form data key
|
protected | getSanitizedFormData($key) |
protected mixed | getInputValue(\DOMElement $node, string $attr_name='') Get input value from any of the following attributes: data-field, data-var, default-value. You can also specify the alternative name attribute on the second parameter
If there is a postback, the value will be retrieved from the $_POST variable if the posted CSRF token is valid
|
protected | autoSetFormAttributeValue($node, $attr_field_value='value') |
protected type | _input(\DOMNode $original_node, string $input, array $attrs=null, string $node_val=null, array $node_children=null, $set_view_data=true) Clone a node
|
protected type | _elems(\DOMNode $original_node, string $input, array $attrs=null, string $node_val=null, array $node_children=null) Clone a node
|
protected | dom_font_icon($icon) |
protected | nodeHasChildAnyType($node, $possibles) |
protected | determineConfigValue($origin) |
protected | determineInputValue($origin, $attr_value='value', $attr_default_value='default-value', $attr_data_field='data-field', $generate_warning=false) |
protected string | parseAttributes(\DOMElement $origin) Parse attributes from a taag, e.g.
|
protected | safe_attribute_name($name) Old version
protected function parseAttributes($str_attribute) {
v2.1.0-2 $regex = "@(\S+)=(\"|'|)(.*)("|'|>)"; v2.1.1-1 update regex $regex = "@(?:(\S+)\s*=\s*(\"[^"]*"|'[^']*'|[^"'<>]+)+)+"; preg_match_all($regex, $str_attribute, $matches); $match_count = ___c($matches[0]); $attrs = []; if ($match_count > 0) { for ($i = 0; $i < $match_count; $i++) { $quoted_value = $matches[2][$i]; $unquoted_value = substr($quoted_value,1,strlen($quoted_value)-2); $key = $matches[1][$i]; $value = $unquoted_value; // $matches[3][$i]; $attrs[$key] = $value; } } $result = $this->generateNewAttributes($attrs);
return $result; }
|
protected | safe_var($var, $encode) |
protected string | xui_echo_safe_html_var(\DOMElement $origin) Safe html, not html-encoded to use html-encoding, add parameter html-encode="1"
|
protected | xui_echo_safe_html_field($origin) |
protected | xui_echo_safe_config_value($origin) |
protected | getSchlixConfigTempFixDOMAttr($origin) Temporary fix
|
protected | schlixconfig_action_buttons(\DOMElement $origin) Config action toolbar buttons
|
protected | schlixconfig_app_alias(\DOMElement $origin) Config - application alias
|
protected | schlixconfig_app_description(\DOMElement $origin) Config - application description
|
protected | xui_schlix_multi_source_media_uploader($origin) |
protected | schlixconfig_schlix_multi_source_media_uploader($origin) |
protected | schlixconfig_image_selector($origin) |
protected | schlixconfig_colorpicker($origin) |
protected | schlixconfig_fonticon($origin) |
protected | schlixconfig_hidden($origin) |
protected | schlixconfig_textarea($origin) |
protected | schlixconfig_checkbox($origin) |
protected | schlixconfig_textbox($origin) |
protected | schlixconfig_integerbox($origin) |
protected | schlixconfig_meta_options($origin) |
protected | schlixconfig_item_meta_options($origin) |
protected | schlixconfig_category_meta_options($origin) |
protected | schlixconfig_main_page_meta_options($origin) |
protected string | _schlixconfig_legacy_code(\DOMElement $origin, string $tag_type) TODO: This function needs to be refactored. Legacy code from pre-2.2.0
|
protected | _schlixconfig_checkbox_radio_group($input_type, $origin) |
protected | schlixconfig_radiogroup($origin) |
protected | schlixconfig_checkboxgroup($origin) |
protected | schlixconfig_radio_group($origin) |
protected | schlixconfig_checkbox_group($origin) |
protected | schlixconfig_permission_usergroups($origin) |
protected | internal_radio_checkbox_group(\DOMElement $origin, string $input_type) Generates radio/checkbox group
|
protected | schlixconfig_dropdownlist($origin) |
protected | internal_schlix_data_explorer($origin, $element_name, $type='item') |
protected | xui_schlix_data_explorer_categorized_list($origin) |
protected | xui_schlix_data_explorer_hierarchical_treelist($origin) |
protected | xui_schlix_data_explorer_many_to_many($origin) |
protected | xui_schlix_data_explorer_list($origin) |
protected | xui_schlix_data_explorer_blank($origin) |
protected | xui_schlix_data_editor($origin) |
protected | xui_schlix_category_editor($origin) |
protected | xui_schlix_item_editor($origin) |
protected | schlixconfig_data_editor($origin) |
protected | xui_alert($origin) |
protected | xui_button_cancel($origin) |
protected | xui_button_default($origin) |
protected | xui_button_info($origin) |
protected | xui_button_ok($origin) |
protected | xui_button_primary($origin) |
protected | xui_button_warning($origin) |
protected | xui_captcha($origin) |
protected | xui_checkbox($origin) |
protected | xui_checkbox_group($origin) |
protected | xui_clearboth($origin) |
protected | xui_clearfix($origin) |
protected | xui_column($origin) |
protected | xui_container($origin) |
protected | xui_csrf($origin) |
protected | xui_fieldset($origin) |
protected | xui_file_upload($origin) |
protected | xui_form($origin) |
protected | xui_form_group($origin) |
protected | xui_form_simple_ajax($origin) |
protected | xui_hidden($origin) |
protected | xui_input_addon($origin) |
protected | xui_input_addon_button($origin) |
protected | xui_input_group($origin) |
protected | xui_input_group_addon($origin) |
protected | xui_members_mainpage_column_box($origin) |
protected | xui_panel($origin) |
protected | xui_password($origin) |
protected | xui_radio($origin) |
protected | xui_radio_group($origin) |
protected | xui_row($origin) |
protected | xui_schlix_cms_common_dialog($origin) |
protected | xui_schlix_cms_dialog_button_cancel($origin) |
protected | xui_schlix_cms_dialog_button_submit($origin) |
protected | xui_schlix_config_action_buttons($origin) |
protected | xui_schlix_config_save_result($origin) |
protected | xui_schlix_datetime_picker($origin) |
protected | xui_schlix_document_image_uploader($origin) |
protected | xui_schlix_document_multi_category_selector($origin) |
protected | xui_schlix_document_save_result($origin) |
protected | xui_schlix_document_status($origin) |
protected | xui_schlix_document_title($origin) |
protected | xui_schlix_document_version($origin) |
protected | xui_schlix_document_virtual_filename($origin) |
protected | xui_schlix_editor_action_buttons($origin) |
protected | xui_schlix_editor_category_meta_options($origin) |
protected | xui_schlix_editor_form($origin) |
protected | xui_schlix_editor_item_meta_options($origin) |
protected | xui_schlix_editor_top_left($origin) |
protected | xui_schlix_editor_top_right($origin) |
protected | xui_schlix_editor_top_row($origin) |
protected | xui_schlix_explorer_breadcrumb($origin) |
protected | xui_schlix_explorer_left_column($origin) |
protected | xui_schlix_explorer_menu_command_divider($origin) |
protected | xui_schlix_explorer_pagination($origin) |
protected | xui_schlix_explorer_right_column($origin) |
protected | xui_schlix_explorer_row($origin) |
protected | xui_schlix_explorer_sub_application_header($origin) |
protected | xui_schlix_explorer_toolbar($origin) |
protected | xui_schlix_explorer_toolbar_menu($origin) |
protected | xui_schlix_explorer_toolbar_search($origin) |
protected | xui_schlix_file_upload($origin) |
protected | xui_schlix_info_box($origin) |
protected | xui_schlix_permission_read($origin) |
protected | xui_schlix_permission_write($origin) |
protected | xui_schlix_stat_box($origin) |
protected | xui_schlix_sub_application_toolbar($origin) |
protected | xui_schlix_tab_container($origin) |
protected | xui_schlix_user_selection($origin) |
protected | xui_schlix_versioning_control($origin) |
protected | xui_select($origin) |
protected | xui_tagbox($origin) |
protected | xui_textarea($origin) |
protected | xui_textbox($origin) |
protected | xui_well($origin) |
protected | xui_wysiwyg($origin) |
Public Methods
public | __construct($allowed_namespaces, $viewdata) |
public | containsAllowableNS($str) |
public string | Run(string $html) Run all tags tags
|
public | copyAttributesFromNode(\DOMElement $origin, \DOMElement $new_dom_node, array $whitelist=[]) Copy attributes from one node to another
|
public | copyAttributesFromArray($new_dom_node, $attrs) |
public | processAllNodes() |
Public Static Methods
public static string | encodeArray(array $array) Encodes an array and return it as a string
|
public static array | decodeArray(string $str) Decodes a base-64, JSON-encoded array
|
public static string | loadConfigFile(string $component_name, string $item, string $item_name, string $instance_name) Load config file for components
|