/** * @param string $field * @return bool */ public function hasField($field) { if (parent::hasField($field)) { return true; } return $this->CopyContentFrom()->hasField($field); }
/** * Allow attributes on the master page to pass * through to the virtual page * * @param string $field * @return mixed */ public function __get($field) { if (parent::hasMethod($funcName = "get{$field}")) { return $this->{$funcName}(); } else { if (parent::hasField($field)) { return $this->getField($field); } else { return $this->copyContentFrom()->{$field}; } } }
/** * Allow attributes on the master page to pass * through to the virtual page * * @param string $field * @return mixed */ function __get($field) { if(parent::hasMethod($funcName = "get$field")) { return $this->$funcName(); } else if(parent::hasField($field)) { return $this->getField($field); } else { return $this->copyContentFrom()->$field; } }