Getter for the AbstractData instances.

@param string $name
the entity name of the desired Data instance

@return AbstractData
the AbstractData instance or null on invalid name
500902
public function getData($name)
    {
        if (!array_key_exists($name, $this->datas)) {
            return null;
        }
        return $this->datas[$name];
    }
1061646
public function get($name)
    {
        if (! $this->has($name)) return null;

        $def = $this->components[$name];

        // already initialized.
        if (! $def instanceof ComponentDefine) {
            return $def;
        }

        // initialize.
        return $def->getInstance();
    }
729444
public function __getData(string $name)
    {
        if (isset($this->data[$name])) {
            return $this->data[$name];
        }

        return null;
    }
804815
public function getDataSource($name)
    {
        if (false === $this->hasDataSource($name)) {
            throw new \RuntimeException(sprintf('Data source: "%s" not found.', $name));
        }

        return $this->dataSources[$name];
    }
1833
final public function &__get($name)
    {
        $value = $this->data[$name];

        //Apply accessor
        $this->applyModifier($name, $value, 'get');

        return $value;
    }
891675
protected function getAttribute($name)
    {
        if (isset($this->data[$name])) {
            return $this->data[$name];
        }

        return null;
    }
987027
public function get($name = '')
    {
        if ('' == $name) {
            return $this->data;
        } else {
            $data = $this->data;

            foreach (explode('.', $name) as $key => $val) {
                if (isset($data[$val])) {
                    $data = $data[$val];
                } else {
                    $data = null;
                    break;
                }
            }

            return $data;
        }
    }
992486
public function getByName($name)
    {
        if (!isset($this->nameMap[$name])) {
            return null;
        }

        return $this->get($this->nameMap[$name]);
    }
752096
public function get($name)
    {
        $name = ltrim($name, '\\');
        if (! isset($this->instances[$name])) {
            $this->instances[$name] = $this->newInstance($name);
        }
        return $this->instances[$name];
    }
190938
public static function get($name = null)
    {
        if ($name === null) {
            $name = array_shift(array_keys(self::$containers));
        }
        return self::$containers[$name] ? self::$containers[$name] : null;
    }
469086
public function getMeta($name)
    {
        if (!$this->hasMeta($name)) {
            throw new InvalidArgumentException('Meta data with name "'.$name.'" does not exists.');
        }

        $meta = $this->objectData('meta', []);

        return $meta[$this->sanitizeMetaName($name)];
    }
74504
public function getDatabase($name = null)
    {
        if (empty($name)) {
            $name = $this->getCurrentDatabaseName();
        }

        if (!isset($this->databasePool[$name])) {
            // init db
            $database = new Database($this, $name);
            if (isset($this->mapping[$name])) {
                $database->map($this->mapping[$name]);
            }

            // configure db
            $this->databasePool[$name] = $database;
        }
        
        return $this->databasePool[$name];
    }
880400
final protected function getAttribute($name)
    {
        if (isset($this->internalCache[$name])) {
            return $this->internalCache[$name];
        }
        if (isset($this->data[$name])) {
            return $this->data[$name];
        }

        return null;
    }
621250
public function get($name = null)
    {
        if ($name === null) {
            $data = $this->data;
            foreach ($this->_expressions as $key => $field) {
                $data[$key] = $field->getValue($this, $this->data);
            }
            foreach ($this->elements as $key => $field) {
                if ($field instanceof Field || $field instanceof Field_Base) {
                    if ($field->defaultValue() !== null && !isset($data[$key])) {
                        $data[$key] = $field->defaultValue();
                    }
                }
            }

            return $data;
        }

        /** @type Field_Base $f */
        $f = $this->hasElement($name);
        if ($this->strict_fields && !$f) {
            throw $this->exception('No such field', 'Logic')
                ->addMoreInfo('field', $name);
        }

        if ($f instanceof Field_Calculated) {
            return $f->getValue($this, $this->data);
        }

        // See if we have data for the field
        if (!$this->loaded() && !@array_key_exists($name, $this->data)) {
            if ($f && $f->has_default_value) {
                return $f->defaultValue();
            }

            if ($this->strict_fields) {
                throw $this->exception('Model field was not loaded')
                    ->addMoreInfo('id', $this->id)
                    ->addMoreInfo('field', $name);
            }

            return;
        }

        return $this->data[$name];
    }
1319387
public function get($name = null, $default = null)
    {
        if(null === $name)
        {
            return $this->data;
        }
        $name = $this->parseName($name);
        return ObjectArrayHelper::get($this->data, $name, $default);
    }
1086432
public static function getByName($name)
    {
        $name = (string)$name;
        $class = get_called_class();
        if (isset(self::$instances[$class][$name])) {
            return self::$instances[$class][$name];
        }
        $const = $class . '::' . $name;
        if (!defined($const)) {
            throw new \InvalidArgumentException($const . ' not defined');
        }
        return self::$instances[$class][$name] = new $class(constant($const));
    }
106288
public static function get($name)
    {
        $name = ltrim($name, '\\');
        if (!$data = self::getInternal($name)) {
            return null;
        }

        return $data;
    }