You are here

private function LingotekNode::__construct in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.2 lib/Drupal/lingotek/LingotekNode.php \LingotekNode::__construct()
  2. 7.3 lib/Drupal/lingotek/LingotekNode.php \LingotekNode::__construct()

Constructor.

This is private since we want consumers to instantiate via the factory methods.

Parameters

object $node: A Drupal node.

File

lib/Drupal/lingotek/LingotekNode.php, line 48
Defines LingotekNode.

Class

LingotekNode
A class wrapper for Lingotek-specific behavior on nodes.

Code

private function __construct($node) {
  $this->node = $node;
  $this->nid = $node->nid;
  $this->language = $node->language;
}