You are here

public function ContentTypeGroup::__get in Content type groups 7.2

Same name and namespace in other branches
  1. 7 content_type_groups.module \ContentTypeGroup::__get()

Property getter

File

./content_type_groups.class.inc, line 286

Class

ContentTypeGroup
Utility class to handle content type groups

Code

public function __get($property) {
  switch ($property) {
    case 'type':
    case 'name':
      return $this->{$property};
    default:
      return NULL;
  }
}