PHP Class Imbo\Model\Stats

Author: Christer Edvartsen ([email protected])
Inheritance: implements Imbo\Model\ModelInterface, implements ArrayAcces\ArrayAccess
Show file Open project: imbo/imbo Class Usage Examples

Public Methods

Method Description
getCustomStats ( ) : array Get custom stats
getData ( )
getNumBytes ( ) : integer Get the total amount of bytes
getNumImages ( ) : integer Get the total amount of bytes
getNumUsers ( ) : integer Get the number of users
offsetExists ( $offset )
offsetGet ( $offset )
offsetSet ( $offset, $value )
offsetUnset ( $offset )
setNumBytes ( integer $numBytes ) : Stats Set the number of bytes stored in Imbo
setNumImages ( integer $numImages ) : Stats Set the number of images stored in Imbo
setNumUsers ( integer $numUsers ) : Stats Set the number of users

Method Details

getCustomStats() public method

Get custom stats
public getCustomStats ( ) : array
return array

getData() public method

public getData ( )

getNumBytes() public method

Get the total amount of bytes
public getNumBytes ( ) : integer
return integer

getNumImages() public method

Get the total amount of bytes
public getNumImages ( ) : integer
return integer

getNumUsers() public method

Get the number of users
public getNumUsers ( ) : integer
return integer

offsetExists() public method

public offsetExists ( $offset )

offsetGet() public method

public offsetGet ( $offset )

offsetSet() public method

public offsetSet ( $offset, $value )

offsetUnset() public method

public offsetUnset ( $offset )

setNumBytes() public method

Set the number of bytes stored in Imbo
public setNumBytes ( integer $numBytes ) : Stats
$numBytes integer The number of bytes stored in Imbo
return Stats

setNumImages() public method

Set the number of images stored in Imbo
public setNumImages ( integer $numImages ) : Stats
$numImages integer The number of images stored in Imbo
return Stats

setNumUsers() public method

Set the number of users
public setNumUsers ( integer $numUsers ) : Stats
$numUsers integer The number of users that has one or more images
return Stats