Drupal 8  8.0.2
ForumIndexStorage Class Reference
Inheritance diagram for ForumIndexStorage:

Public Member Functions

 __construct (Connection $database)
 
 getOriginalTermId (NodeInterface $node)
 
 create (NodeInterface $node)
 
 read (array $vids)
 
 delete (NodeInterface $node)
 
 deleteRevision (NodeInterface $node)
 
 update (NodeInterface $node)
 
 updateIndex (NodeInterface $node)
 
 createIndex (NodeInterface $node)
 
 deleteIndex (NodeInterface $node)
 

Protected Attributes

 $database
 

Detailed Description

Handles CRUD operations to {forum_index} table.

Constructor & Destructor Documentation

__construct ( Connection  $database)

Constructs a ForumIndexStorage object.

Parameters
\Drupal\Core\Database\Connection$databaseThe current database connection.

References Drupal\database().

Here is the call graph for this function:

Member Function Documentation

create ( NodeInterface  $node)

{Creates a record in {forum} table for the given node.

Parameters
\Drupal\node\NodeInterface$nodeThe node for which the record is to be created.
}

Implements ForumIndexStorageInterface.

References Drupal\database(), RevisionableInterface\getRevisionId(), and EntityInterface\id().

Here is the call graph for this function:

createIndex ( NodeInterface  $node)

{Creates a {forum_index} entry for the given node.

Parameters
\Drupal\node\NodeInterface$nodeThe node for which the index records are to be created.
}

Implements ForumIndexStorageInterface.

References Drupal\database(), NodeInterface\getCreatedTime(), TranslatableInterface\getTranslation(), TranslatableInterface\getTranslationLanguages(), EntityInterface\id(), EntityInterface\isNew(), NodeInterface\isSticky(), and ForumIndexStorage\updateIndex().

Here is the call graph for this function:

delete ( NodeInterface  $node)

{Deletes the records in {forum} table for the given node.

Parameters
\Drupal\node\NodeInterface$nodeThe node for which the records are to be deleted.
}

Implements ForumIndexStorageInterface.

References Drupal\database().

Here is the call graph for this function:

deleteIndex ( NodeInterface  $node)

{Deletes the {forum_index} records for a given node.

Parameters
\Drupal\node\NodeInterface$nodeThe node for which the index records are to be deleted.
}

Implements ForumIndexStorageInterface.

References Drupal\database(), and EntityInterface\id().

Here is the call graph for this function:

deleteRevision ( NodeInterface  $node)

{Deletes the records in {forum} table for a given node revision.

Parameters
\Drupal\node\NodeInterface$nodeThe node revision for which the records are to be deleted.
}

Implements ForumIndexStorageInterface.

References Drupal\database(), RevisionableInterface\getRevisionId(), and EntityInterface\id().

Here is the call graph for this function:

getOriginalTermId ( NodeInterface  $node)

{Returns the forum term id associated with an existing forum node.

Parameters
\Drupal\node\NodeInterface$nodeThe existing forum node.
Returns
int The forum term id currently associated with the node.
}

Implements ForumIndexStorageInterface.

References Drupal\database(), and EntityInterface\id().

Here is the call graph for this function:

read ( array  $vids)

{Reads an array of {forum} records for the given revision ids.

Parameters
array$vidsAn array of node revision ids.
Returns
The records from {forum} for the given vids.
}

Implements ForumIndexStorageInterface.

References Drupal\database().

Here is the call graph for this function:

update ( NodeInterface  $node)

{Updates the {forum} table for the given node.

Parameters
\Drupal\node\NodeInterface$nodeThe node for which the record is to be updated.
}

Implements ForumIndexStorageInterface.

References Drupal\database(), and RevisionableInterface\getRevisionId().

Here is the call graph for this function:

updateIndex ( NodeInterface  $node)

{Updates the {forum_index} records for a given node.

Parameters
\Drupal\node\NodeInterface$nodeThe node for which the index records are to be updated.
}

Implements ForumIndexStorageInterface.

References Drupal\database(), NodeInterface\getCreatedTime(), EntityInterface\id(), and CommentInterface\PUBLISHED.

Referenced by ForumIndexStorage\createIndex().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: