PHP Class Pimcore\Db\PhpArrayFileTable

Show file Open project: pimcore/pimcore Class Usage Examples

Protected Properties

Property Type Description
$data
$filePath
$lastInsertId
$tables

Public Methods

Method Description
__construct ( string $filePath = null ) PhpArrayFileTable constructor.
delete ( string | integer $id )
fetchAll ( null $filter = null, null $order = null ) : array
get ( $filePath ) : self
getById ( string | integer $id ) : array | null
getLastInsertId ( ) : integer
getNextId ( ) : integer
insertOrUpdate ( $data, string | integer $id = null )
setFilePath ( $filePath )
truncate ( )

Protected Methods

Method Description
load ( )
save ( )

Method Details

__construct() public method

PhpArrayFileTable constructor.
public __construct ( string $filePath = null )
$filePath string

delete() public method

public delete ( string | integer $id )
$id string | integer

fetchAll() public method

public fetchAll ( null $filter = null, null $order = null ) : array
$filter null
$order null
return array

get() public static method

public static get ( $filePath ) : self
$filePath
return self

getById() public method

public getById ( string | integer $id ) : array | null
$id string | integer
return array | null

getLastInsertId() public method

public getLastInsertId ( ) : integer
return integer

getNextId() public method

public getNextId ( ) : integer
return integer

insertOrUpdate() public method

public insertOrUpdate ( $data, string | integer $id = null )
$data
$id string | integer

load() protected method

protected load ( )

save() protected method

protected save ( )

setFilePath() public method

public setFilePath ( $filePath )
$filePath

truncate() public method

public truncate ( )

Property Details

$data protected property

protected $data

$filePath protected property

protected $filePath

$lastInsertId protected property

protected $lastInsertId

$tables protected static property

protected static $tables