You are here

public function LingotekComment::__get in Lingotek Translation 7.3

Same name and namespace in other branches
  1. 7.2 lib/Drupal/lingotek/LingotekComment.php \LingotekComment::__get()
  2. 7.4 lib/Drupal/lingotek/LingotekComment.php \LingotekComment::__get()

Magic get for access to node and node properties.

File

lib/Drupal/lingotek/LingotekComment.php, line 473
Defines LingotekComment.

Class

LingotekComment
A class wrapper for Lingotek-specific behavior on Comments.

Code

public function __get($property_name) {
  $property = NULL;
  if ($property === self::DRUPAL_ENTITY_TYPE) {
    $property = $this->comment;
  }
  elseif (isset($this->comment->{$property_name})) {
    $property = $this->comment->{$property_name};
  }
  return $property;
}