Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Apress.Pro.Drupal.7.Development.3rd.Edition.Dec.2010.pdf
Скачиваний:
73
Добавлен:
14.03.2016
Размер:
12.64 Mб
Скачать

CHAPTER 7 WORKING WITH NODES

Figure 7-6. Path of execution for displaying a node page

How Nodes Are Stored

Nodes live in the database as separate parts. The node table contains most of the metadata describing the node. The node_revisions table contains the node’s body and teaser, along with revision-specific information. And as you’ve seen in the job_post.module example, other nodes are free to add data to the node at node load time and store whatever data they want in their own tables.

A node object containing the most common attributes is pictured in Figure 7-7. Note that the table created by the field API to store the job post company is separate from the main node table. Depending on which other modules are enabled, the node objects in your Drupal installation might contain more or fewer properties.

155

CHAPTER 7 WORKING WITH NODES

Figure 7-7. The node object

156

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]