Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
lithium
data
Model
title
lithium\data\Model::title PHP Method
Model Class Documentation
Exibir arquivo
Open project: unionofrad/lithium
title()
public
method
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.
See also:
lithium\data\Model::$_meta
See also:
lithium\data\Entity::__toString()
public
title
(
object
$entity
) :
string
$entity
object
The `Entity` instance on which the title method is called.
return
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