Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
lithium
data
Model
title
lithium\data\Model::title PHP Метод
Документация по классу Model
Показать файл
Открыть проект
title()
публичный
Метод
By default, when generating the title for an object, it uses the the field specified in the
'title'
key of the model's meta data definition. Override this method to generate custom titles for objects of this model's type.
См. также:
lithium\data\Model::$_meta
См. также:
lithium\data\Entity::__toString()
public
title
(
object
$entity
) :
string
$entity
object
The `Entity` instance on which the title method is called.
Результат
string
Returns the title representation of the entity on which this method is called.
public function title($entity) { $field = static::meta('title'); return $entity->{$field}; }
Model
__call
__callStatic
_filter
_finders
_getMetaKey
_inherit
_inherited
_initialize
_instance
_key
_object
_relationFieldName
_relations
_relationsToLoad
applyFilter
bind
config
connection
create
delete
find
finder
hasField
instanceMethods
key
meta
query
relations
remove
reset
respondsTo
save
schema
title
update
validates