public function getSource($attributeName)
    {
        if ($this->hasAttribute($attributeName) && isset($this->attributeRules[$attributeName][0]['source'])) {
            return $this->attributeRules[$attributeName][0]['source'];
        }
        return 'idp';
    }
public function getSource($attributeName)
    {
        if ($this->hasAttribute($attributeName) && isset($this->attributeRules[$attributeName][0]['source'])) {
            return $this->attributeRules[$attributeName][0]['source'];
        }
        return 'idp';
    }
public function getSource ( $ attributeName ) { if ( $ this -> hasAttribute ( $ attributeName ) && isset ( $ this -> attributeRules [ $ attributeName ] [ 0 ] [ 'source' ] ) ) { return $ this -> attributeRules [ $ attributeName ] [ 0 ] [ 'source' ] ; } return 'idp' ; }
Loads the first source it finds in the list of attribute rules for the given attributeName.

@param $attributeName
@return string
Loads the first source it finds in the list of attribute rules for the given attributeName .