piwik/plugins/SitesManager/API.php
/**
     * Utility function that throws if a value is not valid for the 'keep_url_fragment'
     * column of the piwik_site table.
     *
     * @param int $keepURLFragments
     * @throws Exception
     */
Utility function that throws if a value is not valid for the 'keep_url_fragment'
column of the piwik_site table.

@param int $keepURLFragments
@throws Exception
Utility function that throws if a value is not valid for the ' keep_url_fragment ' column of the piwik_site table . @param int $keepURLFragments @throws Exception
private static function checkKeepURLFragmentsValue($keepURLFragments)
    {
        if (!in_array($keepURLFragments, array(0, 1, 2))) {
            throw new Exception("Error in SitesManager.updateSite: keepURLFragments must be between 0 & 2" .
                " (actual value: $keepURLFragments).");
        }
    }
private static function checkKeepURLFragmentsValue ( $ keepURLFragments ) { if ( ! in_array ( $ keepURLFragments , array ( 0 , 1 , 2 ) ) ) { throw new Exception ( " Error in SitesManager.updateSite: keepURLFragments must be between 0 & 2 " . "  (actual value:  $ keepURLFragments ). " ) ; } }
Utility function that throws if a value is not valid for the 'keep_url_fragment'
 column of the piwik_site table.
Utility function that throws if a value is not valid for the ' keep_url_fragment ' column of the piwik_site table .
// make sure value is between 0 & 2