FeaturePhp/Model/Feature.php
public static function findByName($features, $featureName, $permissive = false) {
        if ($permissive)
            $featureName = self::_getPermissiveName($featureName);
        return fphp\Helper\_Array::findByKey($features, $permissive ? "getPermissiveName" : "getName", $featureName);
    }
public static function findByName($features, $featureName, $permissive = false) {
        if ($permissive)
            $featureName = self::_getPermissiveName($featureName);
        return fphp\Helper\_Array::findByKey($features, $permissive ? "getPermissiveName" : "getName", $featureName);
    }
public static function findByName ( $ features , $ featureName , $ permissive = false ) { if ( $ permissive ) $ featureName = self :: _getPermissiveName ( $ featureName ) ; return fphp \ Helper \ _Array :: findByKey ( $ features , $ permissive ? "getPermissiveName" : "getName" , $ featureName ) ; }
Finds a feature by its name in a list of features.
Permissive search ignores case and substitutes hyphens.
@param Feature[] $features
@param string $featureName
@param bool $permissive
@return Feature
Finds a feature by its name in a list of features . Permissive search ignores case and substitutes hyphens .