Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F24893381
EmptyDatabaseResult.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
EmptyDatabaseResult.php
View Options
<?php
/**
* _, __, _, _ __, _ _, _, _
* / \ |_) (_ | | \ | /_\ |\ |
* \ / |_) , ) | |_/ | | | | \|
* ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
*
* Empty database result class
*
* @package ObsidianWorkspaces
* @subpackage Keruald
* @author Sébastien Santoro aka Dereckson <dereckson@espace-win.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @filesource
*
*/
/**
* Represents an empty database result
*/
class
EmptyDatabaseResult
extends
DatabaseResult
{
///
/// The methods to implement
///
/**
* Gets number of rows in result
*
* @return int 0
*/
public
function
numRows
()
{
return
0
;
}
/**
* Fetches a row of the result
*
* @param DatabaseResult $result The query result
* @return array An associative array with the databae result
*/
public
function
fetchRow
()
{
return
null
;
}
///
/// IteratorAggregate implementation
///
/**
* Gets an iterator
*
* @return Generator an iterator on the query result
*/
public
function
getIterator
()
{
return
;
yield
;
//This unreachable code indicates to the PHP parser this method is a generator
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Mar 18, 11:34 (13 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3526326
Default Alt Text
EmptyDatabaseResult.php (1 KB)
Attached To
Mode
rOBSIDIAN Obsidian Workspaces
Attached
Detach File
Event Timeline
Log In to Comment