/**
  * @param string $field
  * @return bool
  */
 public function hasField($field)
 {
     if (parent::hasField($field)) {
         return true;
     }
     return $this->CopyContentFrom()->hasField($field);
 }
Example #2
0
 /**
  * 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};
         }
     }
 }
Example #3
0
	/**
	 * 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;
		}
	}