PHP Интерфейс ManaPHP\Mvc\Model\MetadataInterface

Показать файл Открыть проект

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

Метод Описание
getAttributes ( string | ManaPHP\Mvc\ModelInterface $model ) : array Returns table attributes names (fields)
getAutoIncrementAttribute ( string | ManaPHP\Mvc\ModelInterface $model ) : string | null Returns attribute which is auto increment or null
getColumnProperties ( string | ManaPHP\Mvc\ModelInterface $model ) : array
getNonPrimaryKeyAttributes ( string | ManaPHP\Mvc\ModelInterface $model ) : array Returns an array of fields which are not part of the primary key
getPrimaryKeyAttributes ( string | ManaPHP\Mvc\ModelInterface $model ) : array Returns an array of fields which are part of the primary key
hasAttribute ( string | ManaPHP\Mvc\ModelInterface $model, string $attribute ) : boolean Check if a model has certain attribute

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

getAttributes() публичный Метод

Returns table attributes names (fields)
public getAttributes ( string | ManaPHP\Mvc\ModelInterface $model ) : array
$model string | ManaPHP\Mvc\ModelInterface
Результат array

getAutoIncrementAttribute() публичный Метод

Returns attribute which is auto increment or null
public getAutoIncrementAttribute ( string | ManaPHP\Mvc\ModelInterface $model ) : string | null
$model string | ManaPHP\Mvc\ModelInterface
Результат string | null |null

getColumnProperties() публичный Метод

public getColumnProperties ( string | ManaPHP\Mvc\ModelInterface $model ) : array
$model string | ManaPHP\Mvc\ModelInterface
Результат array

getNonPrimaryKeyAttributes() публичный Метод

Returns an array of fields which are not part of the primary key
public getNonPrimaryKeyAttributes ( string | ManaPHP\Mvc\ModelInterface $model ) : array
$model string | ManaPHP\Mvc\ModelInterface
Результат array

getPrimaryKeyAttributes() публичный Метод

Returns an array of fields which are part of the primary key
public getPrimaryKeyAttributes ( string | ManaPHP\Mvc\ModelInterface $model ) : array
$model string | ManaPHP\Mvc\ModelInterface
Результат array

hasAttribute() публичный Метод

Check if a model has certain attribute
public hasAttribute ( string | ManaPHP\Mvc\ModelInterface $model, string $attribute ) : boolean
$model string | ManaPHP\Mvc\ModelInterface
$attribute string
Результат boolean