You are here

public function LingotekComment::__get in Lingotek Translation 7.4

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

Magic get for access to node and node properties.

File

lib/Drupal/lingotek/LingotekComment.php, line 468
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;
}