PHP Класс Pimcore\Db\PhpArrayFileTable

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$data
$filePath
$lastInsertId
$tables

Открытые методы

Метод Описание
__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 ( )

Защищенные методы

Метод Описание
load ( )
save ( )

Описание методов

__construct() публичный метод

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

delete() публичный метод

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

fetchAll() публичный метод

public fetchAll ( null $filter = null, null $order = null ) : array
$filter null
$order null
Результат array

get() публичный статический метод

public static get ( $filePath ) : self
$filePath
Результат self

getById() публичный метод

public getById ( string | integer $id ) : array | null
$id string | integer
Результат array | null

getLastInsertId() публичный метод

public getLastInsertId ( ) : integer
Результат integer

getNextId() публичный метод

public getNextId ( ) : integer
Результат integer

insertOrUpdate() публичный метод

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

load() защищенный метод

protected load ( )

save() защищенный метод

protected save ( )

setFilePath() публичный метод

public setFilePath ( $filePath )
$filePath

truncate() публичный метод

public truncate ( )

Описание свойств

$data защищенное свойство

protected $data

$filePath защищенное свойство

protected $filePath

$lastInsertId защищенное свойство

protected $lastInsertId

$tables защищенное статическое свойство

protected static $tables