pdbrecordset.class.php

来自「一个用PHP编写的」· PHP 代码 · 共 51 行

PHP
51
字号
<?php

	

    /**
     * \ingroup PDb
     *
     * Abstract representation of a record set. Child classes are expected to extend this class
     * to provide database-specific handling of record sets
     */
	class PdbRecordSet 
	{
		
		var $_dbRes;
	
		function PdbRecordSet( $dbRes = null )
		{
			$this->_dbRes = $dbRes;
		}
		
		/**
		 * Returns a row from the resultset
		 *
		 * @return an associative array
		 */
		function FetchRow()
		{
			// to be implemented by chid classes
		}
		
		/**
		 * Returns the number of rows fetched in the last SELECT operation
		 *
		 * @return an integer
		 */
		function RecordCount()
		{
			
		}
		
		/**
		 * Alias for RecordCount()		 
		 *
		 * @see RecordCount
		 */
		function RowCount()
		{
		    return( $this->RecordCount());
		}		
	}
?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?