Programming Drupal 7 Entities

Sammy Spets

  • 出版商: Packt Publishing
  • 出版日期: 2013-06-20
  • 售價: $1,400
  • 貴賓價: 9.5$1,330
  • 語言: 英文
  • 頁數: 134
  • 裝訂: Paperback
  • ISBN: 1782166521
  • ISBN-13: 9781782166528
  • 相關分類: Drupal
  • 下單後立即進貨 (約3~4週)

商品描述

Expose local or remote data as Drupal 7 entities and build custom solutions

Overview

  • Understand and develop using the entity paradigm and entity metadata wrappers
  • Create, retrieve, update, and delete (CRUD) operations on all entities
  • Programmatically attach fields to entities and manipulate their data
  • Expose remote data in a non-fieldable or fieldable entity with support for the import and export of bundle configurations
  • Thorough coverage of common core and contributed entity types along with custom data exposure

In Detail

Writing code for manipulating Drupal data has never been easier! Learn to dice and serve your data as you slowly peel back the layers of the Drupal entity onion. Next, expose your legacy local and remote data to take full advantage of Drupal's vast solution space.

Programming Drupal 7 Entities is a practical, hands-on guide that provides you with a thorough knowledge of Drupal's entity paradigm and a number of clear step-by-step exercises, which will help you take advantage of the real power that is available when developing using entities.

This book looks at the Drupal 7 entity paradigm, and breaks down the mystery and confusion that developers face when building custom solutions using entities. It will take you through a number of clear, practical recipes that will help you to take full advantage of Drupal entities in your web solutions without much coding.

You will also learn how to expose local and remote data to give your legacy data new life as fully-fledged Drupal entities that can be used by other modules such as views, rules, and so on. In addition to this, you'll learn to create, retrieve, update, and delete (CRUD) entities, their properties and fields, along with some programmatic wizardry to manipulate complex entities such as field collections. If you want to develop quickly and easily using Drupal entities, then this is the book for you.

You will learn everything you need to know to develop code and expose data using entities in Programming Drupal 7 Entities.

What you will learn from this book

  • Manipulate and utilize comment, file, field collection, node, term, user, and vocabulary entities
  • Attach, manipulate, and utilize date, file, image, link, number, text, and term reference fields
  • Write type-agnostic code dealing with more types of Drupal data than ever before
  • Upgrade a legacy Drupal node module to expose and utilize entities
  • Expose your legacy database tables as fully-fledged Drupal entities
  • Batch import remote data and expose them as entities
  • Glean good coding practices for dealing with entities

Approach

The book follows a standard tutorial-based approach to create, retrieve, update, and delete Drupal 7 entities, their properties and fields.

Who this book is written for

Programming Drupal 7 Entities is perfect for intermediate or advanced developers new to Drupal entity development who are looking to get a good grounding in how to code using the new paradigm. It’s assumed that you will have some experience in PHP development already, and being vaguely familiar with Drupal, GIT, and Drush will also help.

商品描述(中文翻譯)

將本書的內容翻譯成繁體中文如下:

「將本地或遠程數據作為Drupal 7實體公開並構建自定義解決方案」

概述:
- 理解並使用實體範例和實體元數據包進行開發
- 在所有實體上進行創建、檢索、更新和刪除(CRUD)操作
- 以編程方式附加字段到實體並操作其數據
- 以支持捆綁配置的方式將遠程數據公開為非可字段或可字段實體
- 全面涵蓋常見的核心和貢獻實體類型以及自定義數據公開

詳細內容:
- 編寫操作Drupal數據的代碼從未如此簡單!學習如何將數據切片並提供,同時逐步揭開Drupal實體的層層面紗。接下來,公開您的本地和遠程遺留數據,充分利用Drupal廣闊的解決方案空間。

《Programming Drupal 7 Entities》是一本實用的、實踐性的指南,它為您提供了對Drupal實體範例的全面了解,並提供了一系列清晰的逐步練習,幫助您充分利用使用實體開發時可用的真正力量。

本書探討了Drupal 7實體範例,並解釋了開發人員在使用實體構建自定義解決方案時所面臨的神秘和困惑。它將帶您進行一系列清晰、實用的食譜,幫助您在不需要太多編碼的情況下充分利用Drupal實體在網絡解決方案中的應用。

您還將學習如何公開本地和遠程數據,使您的遺留數據成為完全成熟的Drupal實體,可以被其他模塊(如視圖、規則等)使用。除此之外,您還將學習創建、檢索、更新和刪除(CRUD)實體、它們的屬性和字段,以及一些程序化技巧來操作複雜的實體,如字段集合。如果您想快速輕鬆地使用Drupal實體進行開發,那麼這本書就是為您而寫的。

在《Programming Drupal 7 Entities》中,您將學到開發代碼和公開數據使用實體所需的一切知識。

本書的內容包括:
- 操作和利用評論、文件、字段集合、節點、術語、用戶和詞彙實體
- 附加、操作和利用日期、文件、圖像、鏈接、數字、文本和術語引用字段
- 編寫處理比以往更多類型的Drupal數據的類型不可知代碼
- 將遺留的Drupal節點模塊升級為公開和利用實體
- 將遺留的數據庫表公開為完全成熟的Drupal實體
- 批量導入遠程數據並將其公開為實體
- 獲取處理實體的良好編碼實踐

本書的方法:
- 本書遵循標準的基於教程的方法,用於創建、檢索、更新和刪除Drupal 7實體、它們的屬性和字段。

本書的讀者:
- 《Programming Drupal 7 Entities》適合中級或高級開發人員,他們對Drupal實體開發尚不熟悉,並希望在如何使用這種新範例進行編碼方面有一個良好的基礎。假設您已經具有一些PHP開發經驗,並且對Drupal、GIT和Drush有一定的了解也會有所幫助。