0
Entity APIemail: yuri.gerasimov@gmail.comtwitter: ygerasimovskype: yuriy_gerasimov d.o.: http://drupal.org/user/257311
AgendaWhat are entities?What is Entity API for?hook_entity_info() to create entitiesCode examples
What are entities?Entity types defined in core: nodes, users, taxomony terms, vocabularies, comments, filesCore functional...
Entity APIentity_load(), entity_save(), entity_create(),entity_delete()entity_view(), entity_access(), entity_label(),enti...
Entity API metadataProvide property info for your entity type, to  Get tokens for all properties, via entity tokens.  Get ...
Code Demo
Entity API revisionshttp://drupal.org/node/996696
Documentationhttp://drupal.org/project/entityHandbook: http://drupal.org/node/878784http://bxl2011.drupaldays.org/node/313...
Entity APIemail: yuri.gerasimov@gmail.comtwitter: ygerasimovskype: yuriy_gerasimov d.o.: http://drupal.org/user/257311
Создание собственных сущностей с использованием Entity API
Создание собственных сущностей с использованием Entity API
Upcoming SlideShare
Loading in...5
×

Создание собственных сущностей с использованием Entity API

11,232

Published on

Published in: Education
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
11,232
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
6
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Transcript of "Создание собственных сущностей с использованием Entity API"

  1. 1. Entity APIemail: yuri.gerasimov@gmail.comtwitter: ygerasimovskype: yuriy_gerasimov d.o.: http://drupal.org/user/257311
  2. 2. AgendaWhat are entities?What is Entity API for?hook_entity_info() to create entitiesCode examples
  3. 3. What are entities?Entity types defined in core: nodes, users, taxomony terms, vocabularies, comments, filesCore functionality: Common hooks (hook_entity_load(), hook_entity_presave() …) Fieldable EntityFieldQuery Every entity should have Controller class
  4. 4. Entity APIentity_load(), entity_save(), entity_create(),entity_delete()entity_view(), entity_access(), entity_label(),entity_uri()entity_id(), entity_extract_ids()entity_export(), entity_import()entity_get_info(), entity_get_property_info()core
  5. 5. Entity API metadataProvide property info for your entity type, to Get tokens for all properties, via entity tokens. Get Views integration (as long the property has an equivalent column in the base table) Obtain support of modules building upon it lik Rules Search API
  6. 6. Code Demo
  7. 7. Entity API revisionshttp://drupal.org/node/996696
  8. 8. Documentationhttp://drupal.org/project/entityHandbook: http://drupal.org/node/878784http://bxl2011.drupaldays.org/node/313Examples: commerce, profile2
  9. 9. Entity APIemail: yuri.gerasimov@gmail.comtwitter: ygerasimovskype: yuriy_gerasimov d.o.: http://drupal.org/user/257311
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×