Get original model attribute
@param $name
@return mixed
191580
protected function getOriginalAttribute($name)
    {
        $method = "get" . ucfirst(camel_case($name)) . "Attribute";
        $value = method_exists($this, $method) ? $this->$method($this->attributes[$name]) : $this->attributes[$name];
        return $this->setAttributeType($name, $value);
    }
1046496
function attribute( $name )
    {
        switch ( $name )
        {
            case 'input_xml':
            {
                return $this->inputXML();
            } break;
            case 'edit_template_name':
            {
                return $this->editTemplateName();
            }break;
            case 'information_template_name':
            {
                return $this->informationTemplateName();
            }break;
            case 'aliased_type':
            {
                eZDebug::writeWarning( "'aliased_type' is deprecated as of 4.1 and not in use anymore, meaning it will always return false.", __METHOD__ );
                return $this->AliasedType;
            }break;
            case 'aliased_handler':
            {
                if ( $this->AliasedHandler === null )
                {
                    $this->AliasedHandler = eZXMLText::inputHandler( $this->XMLData,
                                                                     $this->AliasedType,
                                                                     false,
                                                                     $this->ContentObjectAttribute );
                }
                return $this->AliasedHandler;
            }break;
            default:
            {
                eZDebug::writeError( "Attribute '$name' does not exist", __METHOD__ );
                return null;
            }break;
        }
    }
1124673
public function attribute($name)
    {
        if (!$this->hasAttribute($name)) {
            return;
        }

        // If $name corresponds to a closure, just execute it passing it current value object as argument.
        if ($this->attributesMap[$name] instanceof \Closure) {
            return $this->attributesMap[$name]($this->valueObject);
        }

        return $this->valueObject->{$this->attributesMap[$name]};
    }
1090921
private static function getModelProperty($name)
    {
        self::initModelProperties();

        return isset(self::$modelProperties[static::class][$name]) ?
            self::$modelProperties[static::class][$name] : null;
    }
1141748
protected function inspectAttribute($name)
	{
		if(isset($this->__attr[$name]))
		{
			$value = $this->__attr[$name](true);
			
			if($value instanceof InspectedValue)
			{
				return $value;
			}
			
			$inspection = new InspectedValue();
			$inspection->value = $value;
			
			return $inspection;
		}
		
		return new InspectedValue();
	}
1063509
public function getAttr(string $name)
    {
        if (!isset($this->attr[$name]))
        {
            return NULL;
        }

        return $this->attr[$name];
    }
465940
public static function get($name)
    {
        if (!isset(self::$converterMap[$name])) {
            throw new InvalidArgumentException(sprintf('Attribute converter "%s" is not valid.', $name));
        }

        return self::getInstanceOfConverter($name);
    }
626438
public function getAttribute($name)
    {
        if (!count($this)) {
            throw new \InvalidArgumentException('The current node list is empty.');
        }
        $node = $this->getNode(0);
        return $node->hasAttribute($name) ? $node->getAttribute($name) : null;
    }
872587
public function getAttributeValue($name){
        $returnValue = null;
        if($this->hasAttribute($name)){
            $returnValue = $this->attributes[$name]->getValue();
        }
        return $returnValue;
    }
779542
public function get( $name ) {

		$attr = $this->all();

		return isset( $attr[ $name ] ) ? $attr[ $name ] : '';
	}
1156787
protected function missing_old_and_model( $name ) {
		return ( is_null( $this->old( $name ) ) && is_null( $this->get_model_value_attribute( $name ) ) );
	}
167144
public function getParameterValue($name)
    {
        return (isset($this->attributes[$name])) ? $this->attributes[$name] : null;
    }
718912
public function attribute( $name )
    {
        if ( isset( $this->dynamicAttributeFunctions[$name] ) )
        {
            if ( is_array( $this->dynamicAttributeFunctions[$name] ) )
            {
                return $this->dynamicAttributeFunctions[$name];
            }
            else
            {
                $attribute = call_user_func( array( $this, $this->dynamicAttributeFunctions[$name] ) );
                return $attribute;
            }
        }
        else
        {
            if ( $this->hasAttribute( $name ) )
            {
                return $this->attributes[$name];
            }
            else
            {
                $value = null;
                return $value;
            }
        }
    }
754826
public function getAttribute($name)
    {
        if(strlen($name) < 1)
        {
            throw new HTMLTagException("Attribute name is empty");
        }

        if(!isset($this->tag_attributes[strtolower($name)]))
        {
            return null;
        }

        return $this->tag_attributes[strtolower($name)];
    }
543265
public function getOriginalFieldValue($name)
    {
        if ($this->isFieldModified($name)) {
            return $this->fieldsModified[$name];
        }

        if (isset($this->data['fields'][$name])) {
            return $this->data['fields'][$name];
        }

        return null;
    }
1247628
public static function model($name = "default")
    {
        if (!isset(self::$instance[$name])) {
            return null;
        }

        return self::$instance[$name];
    }
1278060
protected function getModelValueAttribute($model, $name)
    {
        $transformedName = $this->transformKey($name);
        if (is_string($model)) {
            return $model;
        } elseif (is_object($model)) {
            return object_get($model, $transformedName);
        } elseif (is_array($model)) {
            return array_get($model, $transformedName);
        }
    }