nicolaas

In ViewableData.php

  1. /**
  2. * Get the value of a property/field on this object. This will check if a method called get{$property} exists, then
  3. * check if a field is available using {@link ViewableData::getField()}, then fall back on a failover object.
  4. *
  5. * @param string $property
  6. * @return mixed
  7. */
  8. public function __get($property) {
  9. // getField() isn't a field-specific getter and shouldn't be treated as such
  10. if (strtolower($property) !== 'field' && $this->hasMethod($method = "get$property")) {
  11. return $this->$method();
  12.  
  13. } elseif ($this->hasField($property)) {
  14. return $this->getField($property);
  15.  
  16. } elseif ($this->failover) {
  17. return $this->failover->$property;
  18. }
  19. return null;
  20. }
nicolaas

And there can be infinite manager groups 😉

nicolaas

but the other one, the default one, is also a variable in the CMS