record.php
来自「一款可以和GOOGLE媲美的开源统计系统,运用AJAX.功能强大. 无色提示:」· PHP 代码 · 共 56 行
PHP
56 行
<?php/** * Piwik - Open source web analytics * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later * @version $Id: Record.php 444 2008-04-11 13:38:22Z johmathe $ * * @package Piwik_ArchiveProcessing */require_once "ArchiveProcessing/Record/Blob.php";require_once "ArchiveProcessing/Record/BlobArray.php";require_once "ArchiveProcessing/Record/Numeric.php";require_once "ArchiveProcessing/Record/Manager.php";/** * A Record is a tuple (name, value) to be saved in the database. * At its creation, the record registers itself to the RecordManager. * The record will then be automatically saved in the DB once the Archiving process is finished. * * We have two record types available: * - numeric ; the value will be saved as float in the DB. * It should be used for INTEGER, FLOAT * - blob ; the value will be saved in a binary field in the DB * It should be used for all the other types: PHP variables, STRING, serialized OBJECTS or ARRAYS, etc. * * @package Piwik_ArchiveProcessing * @subpackage Piwik_ArchiveProcessing_Record */abstract class Piwik_ArchiveProcessing_Record{ public $name; public $value; function __construct( $name, $value) { $this->name = $name; $this->value = $value; Piwik_ArchiveProcessing_Record_Manager::getInstance()->registerRecord($this); } public function delete() { Piwik_ArchiveProcessing_Record_Manager::getInstance()->unregister($this); } public function __destruct() { }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?