Overview

Namespaces

  • Net
    • Bazzline
      • Component
        • Database
          • FileStorage
            • IdGenerator
            • Storage
            • Writer

Classes

  • Storage
  • StorageFactory

Interfaces

  • StorageInterface
  • Overview
  • Namespace
  • Class

Class Storage

Class Storage

Net\Bazzline\Component\Database\FileStorage\Storage\Storage implements Net\Bazzline\Component\Database\FileStorage\Storage\StorageInterface
Namespace: Net\Bazzline\Component\Database\FileStorage\Storage
Package: Net\Bazzline\Component\Database\FileStorage\Storage
Located at Storage/Storage.php
Methods summary
public
# __construct( )
public
# injectGenerator( Net\Bazzline\Component\Database\FileStorage\IdGenerator\IdGeneratorInterface $generator )

Parameters

$generator

Returns


$this
public
# injectPath( string $path )

Parameters

$path

Returns


$this

Throws

Net\Bazzline\Component\Database\FileStorage\InvalidArgumentException|Net\Bazzline\Component\Database\FileStorage\RuntimeException
public
# injectReader( Net\Bazzline\Component\Csv\Reader\Reader $reader )

Parameters

$reader

Returns


$this
public
# injectWriter( Net\Bazzline\Component\Database\FileStorage\Writer\LockableWriterInterface $writer )

Parameters

$writer

Returns


$this
public string
# create( array $data, boolean $resetRuntimeProperties = true )

Parameters

$data
$resetRuntimeProperties

Returns

string
  • unique identifier

Implementation of

Net\Bazzline\Component\Database\FileStorage\Storage\StorageInterface::create()
public array
# readMany( boolean $resetRuntimeProperties = true )

Parameters

$resetRuntimeProperties

Returns

array

Implementation of

Net\Bazzline\Component\Database\FileStorage\Storage\StorageInterface::readMany()
public null|mixed
# readOne( boolean $resetRuntimeProperties = true )

Parameters

$resetRuntimeProperties

Returns

null|mixed
  • nothing or data

Implementation of

Net\Bazzline\Component\Database\FileStorage\Storage\StorageInterface::readOne()
public boolean
# update( array $data, array $resetRuntimeProperties = true )

Parameters

$data
$resetRuntimeProperties
$resetRuntimeProperties
$data

Returns

boolean

Implementation of

Net\Bazzline\Component\Database\FileStorage\Storage\StorageInterface::update()
public boolean
# delete( boolean $resetRuntimeProperties = true )

Parameters

$resetRuntimeProperties

Returns

boolean

Implementation of

Net\Bazzline\Component\Database\FileStorage\Storage\StorageInterface::delete()
public
# filterBy( mixed $key, mixed $value )

Parameters

$key
$value

Returns


$this

Implementation of

Net\Bazzline\Component\Database\FileStorage\Storage\StorageInterface::filterBy()
public
# filterById( mixed $id )

Parameters

$id

Returns


$this

Implementation of

Net\Bazzline\Component\Database\FileStorage\Storage\StorageInterface::filterById()
public
# limitBy( integer $count, null|integer $offset = null )

Parameters

$count
$offset

Returns


$this

Implementation of

Net\Bazzline\Component\Database\FileStorage\Storage\StorageInterface::limitBy()
public boolean
# has( integer $atLeast = 1, null|integer $atMost = null )

Parameters

$atLeast
$atMost

Returns

boolean

Implementation of

Net\Bazzline\Component\Database\FileStorage\Storage\StorageInterface::has()
public
# resetRuntimeProperties( )

Implementation of

Net\Bazzline\Component\Database\FileStorage\Storage\StorageInterface::resetRuntimeProperties()
Constants summary
integer KEY_ID
# 0
integer KEY_DATA
# 1
PHP Database File Storage by bazzline.net API documentation generated by ApiGen