コード例 #1
0
 /**
  * Returns the base (root) field map 
  * @return null|epFieldMap
  */
 protected function &getBase()
 {
     // return cached one
     if ($this->base) {
         return $this->base;
     }
     // class map exists?
     if (!$this->class_map) {
         return self::$false;
     }
     // get the base
     if (!($this->base = $this->class_map->getBaseField($this->name))) {
         $this->base = $this;
     }
     return $this->base;
 }