Пример #1
0
 /**
  * Check Internet connection.
  *
  * @final
  * @return integer Returns '1' if it is not connected to the Internet and stops the script with the exit() function.
  */
 private final function _checkInternetConnection()
 {
     if (!Server::checkInternetConnection()) {
         Page::message(t('Your server must be connected to the Internet to work properly.'));
     }
 }