private static function _getLogHeadingLine($fCurrentTimeStamp, $nElapsed, $sCallerClass, $sCallerFunction) { static $_iPageLoadID; static $_nGMTOffset; $_nGMTOffset = isset($_nGMTOffset) ? $_nGMTOffset : get_option('gmt_offset'); $_iPageLoadID = $_iPageLoadID ? $_iPageLoadID : uniqid(); $_nNow = $fCurrentTimeStamp + $_nGMTOffset * 60 * 60; $_nMicroseconds = str_pad(round(($_nNow - floor($_nNow)) * 10000), 4, '0'); $_aOutput = array(date("Y/m/d H:i:s", $_nNow) . '.' . $_nMicroseconds, self::_getFormattedElapsedTime($nElapsed), $_iPageLoadID, SeamlessDonationsAdminPageFramework_Registry::getVersion(), $sCallerClass . '::' . $sCallerFunction, current_filter(), self::getCurrentURL()); return implode(' ', $_aOutput); }
protected function _getDebugInfo($sFieldsType) { if (!$this->isDebugModeEnabled()) { return ''; } if (!in_array($sFieldsType, array('widget', 'post_meta_box', 'page_meta_box', 'user_meta'))) { return ''; } return "<div class='admin-page-framework-info'>" . 'Debug Info: ' . SeamlessDonationsAdminPageFramework_Registry::NAME . ' ' . SeamlessDonationsAdminPageFramework_Registry::getVersion() . "</div>"; }
public static function _setLibraryData() { self::$_aLibraryData = array('sName' => SeamlessDonationsAdminPageFramework_Registry::NAME, 'sURI' => SeamlessDonationsAdminPageFramework_Registry::URI, 'sScriptName' => SeamlessDonationsAdminPageFramework_Registry::NAME, 'sLibraryName' => SeamlessDonationsAdminPageFramework_Registry::NAME, 'sLibraryURI' => SeamlessDonationsAdminPageFramework_Registry::URI, 'sPluginName' => '', 'sPluginURI' => '', 'sThemeName' => '', 'sThemeURI' => '', 'sVersion' => SeamlessDonationsAdminPageFramework_Registry::getVersion(), 'sDescription' => SeamlessDonationsAdminPageFramework_Registry::DESCRIPTION, 'sAuthor' => SeamlessDonationsAdminPageFramework_Registry::AUTHOR, 'sAuthorURI' => SeamlessDonationsAdminPageFramework_Registry::AUTHOR_URI, 'sTextDomain' => SeamlessDonationsAdminPageFramework_Registry::TEXT_DOMAIN, 'sDomainPath' => SeamlessDonationsAdminPageFramework_Registry::TEXT_DOMAIN_PATH, 'sNetwork' => '', '_sitewide' => ''); return self::$_aLibraryData; }