Enviar pesquisa
Carregar
Drupalize your data use entities
•
2 gostaram
•
639 visualizações
均民 戴
Seguir
Drupalize your data use entities Druapl 7
Leia menos
Leia mais
Tecnologia
Educação
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 46
Baixar agora
Baixar para ler offline
Recomendados
Tutorial dekho queries
Tutorial dekho queries
dekhoslides
Search api d8
Search api d8
Dropsolid
Drupal Commerce 2014
Drupal Commerce 2014
Sergiu Savva
Concurrency: Rubies, plural
Concurrency: Rubies, plural
ehuard
Drupal Commerce contributed modules overview
Drupal Commerce contributed modules overview
Pedro Cambra
Drupal 7 entities & TextbookMadness.com
Drupal 7 entities & TextbookMadness.com
JD Leonard
Entities in Drupal 8 - Drupal Tech Talk - Bart Feenstra
Entities in Drupal 8 - Drupal Tech Talk - Bart Feenstra
Triquanta
Entity API in Drupal 8 (Drupal Tech Talk October 2014)
Entity API in Drupal 8 (Drupal Tech Talk October 2014)
Bart Feenstra
Recomendados
Tutorial dekho queries
Tutorial dekho queries
dekhoslides
Search api d8
Search api d8
Dropsolid
Drupal Commerce 2014
Drupal Commerce 2014
Sergiu Savva
Concurrency: Rubies, plural
Concurrency: Rubies, plural
ehuard
Drupal Commerce contributed modules overview
Drupal Commerce contributed modules overview
Pedro Cambra
Drupal 7 entities & TextbookMadness.com
Drupal 7 entities & TextbookMadness.com
JD Leonard
Entities in Drupal 8 - Drupal Tech Talk - Bart Feenstra
Entities in Drupal 8 - Drupal Tech Talk - Bart Feenstra
Triquanta
Entity API in Drupal 8 (Drupal Tech Talk October 2014)
Entity API in Drupal 8 (Drupal Tech Talk October 2014)
Bart Feenstra
Drupal as a Programmer-Friendly CMS at ConFoo
Drupal as a Programmer-Friendly CMS at ConFoo
Suzanne Dergacheva
Entities, Bundles, and Fields: You need to understand this!
Entities, Bundles, and Fields: You need to understand this!
tedbow
DACS - The Internet of Things (IoT)
DACS - The Internet of Things (IoT)
Steve Posick
FIWARE IoT Introduction 1
FIWARE IoT Introduction 1
Fernando Lopez Aguilar
Solid OOPS
Solid OOPS
Toshish Jawale
OOP, API Design and MVP
OOP, API Design and MVP
Harshith Keni
Synapse india reviews on drupal 7 entities (stanford)
Synapse india reviews on drupal 7 entities (stanford)
Tarunsingh198
Killing Shark-Riding Dinosaurs with ORM
Killing Shark-Riding Dinosaurs with ORM
Ortus Solutions, Corp
DataSploit - Tool Demo at Null Bangalore - March Meet.
DataSploit - Tool Demo at Null Bangalore - March Meet.
Shubham Mittal
D7 Entities
D7 Entities
Abayomi Ayoola
Lightning connect london'15
Lightning connect london'15
agarciaodeian
Integrating the Solr search engine
Integrating the Solr search engine
th0masr
Drupal In 1 Hour
Drupal In 1 Hour
Joshua Simmons
Entities 101: Understanding Data Structures in Drupal
Entities 101: Understanding Data Structures in Drupal
Acquia
Basic PowerShell Toolmaking - Spiceworld 2016 session
Basic PowerShell Toolmaking - Spiceworld 2016 session
Rob Dunn
Semantically Enabled Personal Information Management with Cluug.com
Semantically Enabled Personal Information Management with Cluug.com
Bernhard Schandl
Extending Zend_Tool
Extending Zend_Tool
Ralph Schindler
Drupal 8 Basic Training - DrupalEurope 2018 - Maarten De Block
Drupal 8 Basic Training - DrupalEurope 2018 - Maarten De Block
Maarten De Block
Searchlight + Horizon - Mitaka march 2016
Searchlight + Horizon - Mitaka march 2016
Travis Tripp
The Hacking Game - Think Like a Hacker Meetup 12072023.pptx
The Hacking Game - Think Like a Hacker Meetup 12072023.pptx
lior mazor
CKmates - AWS 三大 AI 解決方案:應用影像辨識、聊天機器人與語音轉換以及 Serverless 應用
CKmates - AWS 三大 AI 解決方案:應用影像辨識、聊天機器人與語音轉換以及 Serverless 應用
均民 戴
CKmates - AWS 雲端運算 基礎服務介紹
CKmates - AWS 雲端運算 基礎服務介紹
均民 戴
Mais conteúdo relacionado
Semelhante a Drupalize your data use entities
Drupal as a Programmer-Friendly CMS at ConFoo
Drupal as a Programmer-Friendly CMS at ConFoo
Suzanne Dergacheva
Entities, Bundles, and Fields: You need to understand this!
Entities, Bundles, and Fields: You need to understand this!
tedbow
DACS - The Internet of Things (IoT)
DACS - The Internet of Things (IoT)
Steve Posick
FIWARE IoT Introduction 1
FIWARE IoT Introduction 1
Fernando Lopez Aguilar
Solid OOPS
Solid OOPS
Toshish Jawale
OOP, API Design and MVP
OOP, API Design and MVP
Harshith Keni
Synapse india reviews on drupal 7 entities (stanford)
Synapse india reviews on drupal 7 entities (stanford)
Tarunsingh198
Killing Shark-Riding Dinosaurs with ORM
Killing Shark-Riding Dinosaurs with ORM
Ortus Solutions, Corp
DataSploit - Tool Demo at Null Bangalore - March Meet.
DataSploit - Tool Demo at Null Bangalore - March Meet.
Shubham Mittal
D7 Entities
D7 Entities
Abayomi Ayoola
Lightning connect london'15
Lightning connect london'15
agarciaodeian
Integrating the Solr search engine
Integrating the Solr search engine
th0masr
Drupal In 1 Hour
Drupal In 1 Hour
Joshua Simmons
Entities 101: Understanding Data Structures in Drupal
Entities 101: Understanding Data Structures in Drupal
Acquia
Basic PowerShell Toolmaking - Spiceworld 2016 session
Basic PowerShell Toolmaking - Spiceworld 2016 session
Rob Dunn
Semantically Enabled Personal Information Management with Cluug.com
Semantically Enabled Personal Information Management with Cluug.com
Bernhard Schandl
Extending Zend_Tool
Extending Zend_Tool
Ralph Schindler
Drupal 8 Basic Training - DrupalEurope 2018 - Maarten De Block
Drupal 8 Basic Training - DrupalEurope 2018 - Maarten De Block
Maarten De Block
Searchlight + Horizon - Mitaka march 2016
Searchlight + Horizon - Mitaka march 2016
Travis Tripp
The Hacking Game - Think Like a Hacker Meetup 12072023.pptx
The Hacking Game - Think Like a Hacker Meetup 12072023.pptx
lior mazor
Semelhante a Drupalize your data use entities
(20)
Drupal as a Programmer-Friendly CMS at ConFoo
Drupal as a Programmer-Friendly CMS at ConFoo
Entities, Bundles, and Fields: You need to understand this!
Entities, Bundles, and Fields: You need to understand this!
DACS - The Internet of Things (IoT)
DACS - The Internet of Things (IoT)
FIWARE IoT Introduction 1
FIWARE IoT Introduction 1
Solid OOPS
Solid OOPS
OOP, API Design and MVP
OOP, API Design and MVP
Synapse india reviews on drupal 7 entities (stanford)
Synapse india reviews on drupal 7 entities (stanford)
Killing Shark-Riding Dinosaurs with ORM
Killing Shark-Riding Dinosaurs with ORM
DataSploit - Tool Demo at Null Bangalore - March Meet.
DataSploit - Tool Demo at Null Bangalore - March Meet.
D7 Entities
D7 Entities
Lightning connect london'15
Lightning connect london'15
Integrating the Solr search engine
Integrating the Solr search engine
Drupal In 1 Hour
Drupal In 1 Hour
Entities 101: Understanding Data Structures in Drupal
Entities 101: Understanding Data Structures in Drupal
Basic PowerShell Toolmaking - Spiceworld 2016 session
Basic PowerShell Toolmaking - Spiceworld 2016 session
Semantically Enabled Personal Information Management with Cluug.com
Semantically Enabled Personal Information Management with Cluug.com
Extending Zend_Tool
Extending Zend_Tool
Drupal 8 Basic Training - DrupalEurope 2018 - Maarten De Block
Drupal 8 Basic Training - DrupalEurope 2018 - Maarten De Block
Searchlight + Horizon - Mitaka march 2016
Searchlight + Horizon - Mitaka march 2016
The Hacking Game - Think Like a Hacker Meetup 12072023.pptx
The Hacking Game - Think Like a Hacker Meetup 12072023.pptx
Mais de 均民 戴
CKmates - AWS 三大 AI 解決方案:應用影像辨識、聊天機器人與語音轉換以及 Serverless 應用
CKmates - AWS 三大 AI 解決方案:應用影像辨識、聊天機器人與語音轉換以及 Serverless 應用
均民 戴
CKmates - AWS 雲端運算 基礎服務介紹
CKmates - AWS 雲端運算 基礎服務介紹
均民 戴
COSCUP 2016 Workshop: 用 Docker 架設班級 git-it 練習環境
COSCUP 2016 Workshop: 用 Docker 架設班級 git-it 練習環境
均民 戴
寫程式?那些老師沒教的事 (Git 部分節錄)
寫程式?那些老師沒教的事 (Git 部分節錄)
均民 戴
在 DigitalOcean 架設 Gitlab
在 DigitalOcean 架設 Gitlab
均民 戴
Bootstrap個人網站 20141117
Bootstrap個人網站 20141117
均民 戴
Bootstrap個人網站 20141027
Bootstrap個人網站 20141027
均民 戴
資訊創意課程 - Create A Personal Website 1
資訊創意課程 - Create A Personal Website 1
均民 戴
MIS MySQL 入門
MIS MySQL 入門
均民 戴
SITCON 2014 - Regular Expression Introduce
SITCON 2014 - Regular Expression Introduce
均民 戴
興大資訊社 CPE 訓練宣傳
興大資訊社 CPE 訓練宣傳
均民 戴
20130706閃電秀
20130706閃電秀
均民 戴
Drupal 7 Entity & Entity API
Drupal 7 Entity & Entity API
均民 戴
植基於個人本體論的新聞推薦系統
植基於個人本體論的新聞推薦系統
均民 戴
JSON 和 Android 的火花
JSON 和 Android 的火花
均民 戴
寫程式?那些老師沒教的事
寫程式?那些老師沒教的事
均民 戴
Mais de 均民 戴
(16)
CKmates - AWS 三大 AI 解決方案:應用影像辨識、聊天機器人與語音轉換以及 Serverless 應用
CKmates - AWS 三大 AI 解決方案:應用影像辨識、聊天機器人與語音轉換以及 Serverless 應用
CKmates - AWS 雲端運算 基礎服務介紹
CKmates - AWS 雲端運算 基礎服務介紹
COSCUP 2016 Workshop: 用 Docker 架設班級 git-it 練習環境
COSCUP 2016 Workshop: 用 Docker 架設班級 git-it 練習環境
寫程式?那些老師沒教的事 (Git 部分節錄)
寫程式?那些老師沒教的事 (Git 部分節錄)
在 DigitalOcean 架設 Gitlab
在 DigitalOcean 架設 Gitlab
Bootstrap個人網站 20141117
Bootstrap個人網站 20141117
Bootstrap個人網站 20141027
Bootstrap個人網站 20141027
資訊創意課程 - Create A Personal Website 1
資訊創意課程 - Create A Personal Website 1
MIS MySQL 入門
MIS MySQL 入門
SITCON 2014 - Regular Expression Introduce
SITCON 2014 - Regular Expression Introduce
興大資訊社 CPE 訓練宣傳
興大資訊社 CPE 訓練宣傳
20130706閃電秀
20130706閃電秀
Drupal 7 Entity & Entity API
Drupal 7 Entity & Entity API
植基於個人本體論的新聞推薦系統
植基於個人本體論的新聞推薦系統
JSON 和 Android 的火花
JSON 和 Android 的火花
寫程式?那些老師沒教的事
寫程式?那些老師沒教的事
Último
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Maria Levchenko
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
HampshireHUG
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Katpro Technologies
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Puma Security, LLC
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
hans926745
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
apidays
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
Pixlogix Infotech
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
Results
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Safe Software
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Principled Technologies
Slack Application Development 101 Slides
Slack Application Development 101 Slides
praypatel2
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Gabriella Davis
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Anna Loughnan Colquhoun
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
naman860154
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
Enterprise Knowledge
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
Igalia
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
RTylerCroy
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
UK Journal
Último
(20)
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Slack Application Development 101 Slides
Slack Application Development 101 Slides
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Drupalize your data use entities
1.
2.
Codinganddevelopment DrupalizeYour Data: UseEntities! PresentedbyWolfgangZiegler //
fago
3.
Wolfgang Ziegler //
fago • from Vienna, Austria • studied at the TU Vienna • Drupal since 2005. wolfgangziegler.net twitter.com/the_real_fago gplus.to/fago
4.
Outline • Introduction • Interact
with entities • Providing a new entity type • Expose non-DB entities • Outlook
5.
Drupal 7: Fields everywhere!
6.
Bundles Entity type ↔
Node Bundle ↔ Node type Entity type ↔ Taxonomy term Bundle ↔ Vocabulary Entity type ↔ User Bundle ↔ {}
7.
Which entities are
there? • Core • Modules: • Drupal commerce • Organic groups • Profile2 • Heartbeat and Message • File entity
8.
Node modules Entity modules
9.
Entity API -
What for? Unified way to access data.
10.
User Node Comment Profile Product Search Vote Groups Entity reference Rules Entity
11.
Interacting with entities
12.
Entity API module Assists
you with • interacting with entities • and providing new entity types
13.
Entity API Functions Drupal
Core Entity API module entity_save() entity_load() entity_get_info() entity_metadata_wrapper() entity_view() entity_access() entity_create() entity_id() entity_get_property_info() entity_delete()
14.
Metadata Wrapper $wrapper = entity_metadata_wrapper('node', $nid); $mail = $wrapper>author>mail>value(); $wrapper>author>mail>set('fago@example.com'); $text = $wrapper>field_text>value(); $wrapper>language('de')>field_text>value(); $terms = $wrapper>field_tags>value(); $wrapper>field_tags[] = $term; $options = $wrapper>field_tags>optionsList(); $label = $wrapper>field_tags[0]>label(); $access = $wrapper>field_tags>access('edit');
15.
Metadata Wrapper $wrapper = entity_metadata_wrapper('node', $nid); $mail = $wrapper>author>mail>value(); $wrapper>author>mail>set('fago@example.com'); $text = $wrapper>field_text>value(); $wrapper>language('de')>field_text>value(); $terms = $wrapper>field_tags>value(); $wrapper>field_tags[] = $term; $options = $wrapper>field_tags>optionsList(); $label = $wrapper>field_tags[0]>label(); $access = $wrapper>field_tags>access('edit');
16.
Entity property info $properties['mail'] = array( 'label' => t("Email"), 'type' => 'text', 'description' => t("The email address of ..."), 'setter callback' => 'entity_property_verbatim_set', 'validation callback' => 'valid_email_address', 'required' => TRUE, 'access callback' => 'user_properties_access', 'schema field' => 'mail', );
17.
Property info? • Unified
access to entity data • Validation • Access information
18.
How modules use
it • Drupal Commerce, VBO, OG • Rules, Search API • Microdata • RestWS, WSClient • Entity tokens • Entity Views
19.
Providing an entity
type • Implement hook_entity_info() • Specify your 'controller class' • Implement hook_schema()
20.
Entity API module $profile = entity_create('profile2', array( 'type' => 'main', 'user'=> $account, )); $profile>save(); $profile>delete(); entity_delete_multiple('profile2', array(1, 2, 3));
21.
Integrating your entity
type TokensViews Rules Property Info Field API Schema CRUD controller Info XY
22.
Exportable entities similar to
CTools exportables, but... • unified CRUD interface • synced to the DB • regular CRUD hooks • Views, Tokens, Features, i18n, ...
23.
Integrating your exportable
entity Schema CRUD controller Info Tokens Property Info Views i18nFeatures Admin UI
24.
Apocalypse now? • Provide
an entity • get a bullshit of not fitting stuff • • Find a good metafa, or cite for it. • is it an elephant or moskito?
25.
Module developers: Think •
what makes it applicable? • label, URI? • field? • custom on,off • example: no display,no page → no metadata tags
26.
27.
Example: Profile2 Profile2: • Entity
type Profile2 types: • Entity type • Bundle of Profile2 • Exportable
28.
Profile2 torn apart •
CRUD, Field API • Permissions, Access • Profile form, display • Admin UI, I18n • Views, CTools, Rules, Tokens, Features, Search API Your job
29.
homework done, let's enjoy
it.
30.
• NoSQL, Doctrine,
PHPCR • Remote entities • Data integration
31.
Non-DB entities + Fields?
32.
Non-DB entities Field storage Info Property Info Field API SchemaControllerInfo
TokensRulesViews XY CRUD controller
33.
Non-DB entities CRUD controller Info Property Info SchemaControllerInfo TokensRulesViews
XY
34.
What does it
buy us? • Classed CRUD API • CRUD Hooks • Tokens • Entity reference • Rules, Rules Links • Search API, Views integration, RestWS • …
35.
Drupalize your data!
36.
howto slide?
37.
Example...
38.
Google Picasa entities http://drupal.org/sandbox/fago/1493180
39.
40.
41.
Room for improvements •
EFQ Views • Ready-only mode • Generated display • Generated form
42.
Drupal 8
43.
Comments in Drupal
8 $comment = entity_create('comment', array( 'nid' => $node>nid, )); $comment>save(); echo $comment>id(); $comment>delete(); entity_delete_multiple('comment', array(1, 2, 3));
44.
Comments in Drupal
8 class CommentStorageController extends EntityDatabaseStorageController { … } class Comment extends Entity { … } class Entity implements EntityInterface { … }
45.
Questions?
46.
What didyouthink? Locatethissessiononthe DrupalConDenver website http://denver2012.drupal.org/program Clickthe“TaketheSurvey”
link. ThankYou!
Baixar agora