public function LingotekComment::__get in Lingotek Translation 7.2
Same name and namespace in other branches
- 7.3 lib/Drupal/lingotek/LingotekComment.php \LingotekComment::__get()
- 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 430 - 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;
}