예제 #1
0
 /**
  * Returns the field map for the variable 
  * Note that param $var_name will be replaced with the best matched var name
  * @param string $var_name
  * @return false|epFieldMap
  */
 protected function &_getFieldMap($var_name)
 {
     // check if we have class map
     if (!$this->ep_cm || !$var_name) {
         return self::$false;
     }
     // check if field map is cached
     if (isset($this->ep_fms[$var_name])) {
         return $this->ep_fms[$var_name];
     }
     // get field map
     $fm = $this->ep_cm->getField($var_name);
     // cache it
     $this->ep_fms[$var_name] = $fm;
     // return the field map for the var
     return $fm;
 }