You are here

public function fcComplete::__get in Field Complete 7

File

./fc.inc, line 35
Field Complete - Provides field-based completeness for any entity - class.

Class

fcComplete
@file Field Complete - Provides field-based completeness for any entity - class.

Code

public function __get($var) {
  switch ($var) {
    case 'complete':
    case 'percentage':
    case 'completeness':
      $val = $this->{$var};
      break;
    default:
      $val = NULL;
      break;
  }
  return $val;
}