/**
  *
  * @param string $pProperty
  * @return int | string
  */
 public function get_efficiency($pProperty, $pString = FALSE)
 {
     $eff = $this->__get("group_{$pProperty}");
     if (is_null($eff)) {
         return $pString ? '(unknown)' : NULL;
     } else {
         return $pString ? Zupal_Util_Format::percent(Ultimatum_Model_Ultgroups::eff_factor($eff), FALSE) : $eff;
     }
 }
Example #2
0
 /**
  *
  * @param string $pProperty
  * @return int | string
  */
 public function get_efficiency($pProperty, $pString = FALSE)
 {
     $eff = $this->__get($pProperty);
     $eff_factor = self::eff_factor($eff);
     if ($pString) {
         return Zupal_Util_Format::percent($eff_factor, FALSE);
     } else {
         return $eff_factor;
     }
 }