js\wms7-script.jsView Source

Show: PublicProtectedPrivateinherited
    Table of Contents
    Description: Used to manage the plug-in on the client side.
    Author
    Oleg Klenitskiy  
    Category
    Wms7_script.js  
    Copyright
    2018 Oleg Klenitskiy  
    License
    GPLv2 or later  
    Package
    WatchMan-Site7  
    Version
    3.0.0  

    Functions

    functiongeocodeLatLng(string $geocoder, string $map, string $infowindow, string $myLat, string $myLon, string $marker) : void

    The subordinate function for wms7_initMap().

    Parameters
    NameTypeDescription
    $geocoderstring

    Object google.maps.

    $mapstring

    Object google.maps.

    $infowindowstring

    Object google.maps.

    $myLatstring

    Latitude.

    $myLonstring

    Longitude.

    $markerstring

    Marker on the map.

    Details
    Package
    WatchMan-Site7  
    functionget_cookie(string $cookie_name) : void

    Get content cookie.

    Parameters
    NameTypeDescription
    $cookie_namestring

    Cookie name.

    Details
    Package
    WatchMan-Site7  
    functionmailbox_selector(string $folder) : void

    Updating the modal Mailbox window when saving the URL address of the main plugin pages.

    Parameters
    NameTypeDescription
    $folderstring

    Item of folder mailbox.

    Details
    Package
    WatchMan-Site7  
    functionvisit(string $visit) : void

    Refresh the main plugin screen.

    Parameters
    NameTypeDescription
    $visitstring

    Item of visit.

    Details
    Package
    WatchMan-Site7  
    functionwms7_beep() : void

    Start of sound notification when visiting the site.

    Details
    Package
    WatchMan-Site7  
    functionwms7_check_boxes(string $id) : void

    Check access to the current mailbox.

    Parameters
    NameTypeDescription
    $idstring

    Item of mailbox.

    Details
    Package
    WatchMan-Site7  
    functionwms7_check_pwd(string $id) : void

    Hide password value.

    Parameters
    NameTypeDescription
    $idstring

    Item of mailbox.

    Details
    Package
    WatchMan-Site7  
    functionwms7_check_smtp(string $id) : void

    Check access to the current smtp server.

    Parameters
    NameTypeDescription
    $idstring

    Item of smtp server.

    Details
    Package
    WatchMan-Site7  
    functionwms7_drawChart() : void

    Callback that creates and populates a data table, instantiates the pie chart, passes in the data and draws it.

    Details
    Package
    WatchMan-Site7  
    functionwms7_getUrlVars() : \array.

    Get vars from URL address.

    Returns
    TypeDescription
    \array.
    Details
    Package
    WatchMan-Site7  
    functionwms7_graph_statistic(array $data) : void

    Data preparation for chart statistic.

    Parameters
    NameTypeDescription
    $dataarray

    Used to pass data into a chart.

    Details
    Package
    WatchMan-Site7  
    functionwms7_initMap(string $Login, string $Lat, string $Lon, string $Acc, string $Err, string $Msg) : void

    Output of data on visitor's geolocation in the modal window Map.

    Parameters
    NameTypeDescription
    $Loginstring

    Item of visitor.

    $Latstring

    Latitude.

    $Lonstring

    Longitude.

    $Accstring

    Accuracy.

    $Errstring

    Error.

    $Msgstring

    Message.

    Details
    Package
    WatchMan-Site7  
    functionwms7_link_focus(string $page, string $result) : void

    Setting radio buttons visits in the main window of plugin.

    Parameters
    NameTypeDescription
    $pagestring

    Plugin page name.

    $resultstring

    Item of visit.

    Details
    Package
    WatchMan-Site7  
    functionwms7_mail_focus() : void

    Setting radio buttons in the modal Mailbox window.

    Details
    Package
    WatchMan-Site7  
    functionwms7_mail_folders(string $box, string $id_tbl, string $id_textarea, string $id_textarea_alt) : void

    Saving access settings to the folders of the current mailbox.

    Parameters
    NameTypeDescription
    $boxstring

    Item of mailbox.

    $id_tblstring

    Item folder of mailbox.

    $id_textareastring

    Item of textarea.

    $id_textarea_altstring

    Item of textarea_alt.

    Details
    Package
    WatchMan-Site7  
    functionwms7_popup_close() : void

    Reload the plug-in page after closing the modal window.

    Details
    Package
    WatchMan-Site7  
    functionwms7_popup_loader() : void

    Visualization of the process of loading a modal window.

    Details
    Package
    WatchMan-Site7  
    functionwms7_quit_btn() : void

    Reset the modal Mailbox window after pressing the Quit button.

    Details
    Package
    WatchMan-Site7  
    functionwms7_setup_sound() : void

    Saving audio alert settings to cookie.

    Details
    Package
    WatchMan-Site7  
    functionwms7_show() : void

    Settings for the sound notification object when visit the site.

    Details
    Package
    WatchMan-Site7  
    functionwms7_sse() : void

    Process Control Server Sent Events on the client side.

    Details
    Package
    WatchMan-Site7  
    functionwms7_stat_btn() : void

    Saving the current value of the radio button Statistics to cookies.

    Details
    Package
    WatchMan-Site7  
    functionwms7_stat_focus() : void

    Setting radio buttons in the modal Statistics window.

    Details
    Package
    WatchMan-Site7  
    functionwms_ctrl_btn_href() : void

    Blocks the controls (buttons) on the plug-in screen if SSE mode is enabled.

    Details
    Package
    WatchMan-Site7  
    Documentation was generated by phpDocumentor 2.8.5.