concrete/src/Authentication/AuthenticationType.php
public static function load($arr)
    {
        $extract = [
            'authTypeID',
            'authTypeName',
            'authTypeHandle',
            'authTypeDisplayOrder',
            'authTypeIsEnabled',
            'pkgID',
        ];
        $obj = new self();
        foreach ($extract as $key) {
            if (!isset($arr[$key])) {
                return false;
            }
            $obj->{$key} = $arr[$key];
        }
        $obj->loadController();

        return $obj;
    }
public static function load($arr)
    {
        $extract = [
            'authTypeID',
            'authTypeName',
            'authTypeHandle',
            'authTypeDisplayOrder',
            'authTypeIsEnabled',
            'pkgID',
        ];
        $obj = new self();
        foreach ($extract as $key) {
            if (!isset($arr[$key])) {
                return false;
            }
            $obj->{$key} = $arr[$key];
        }
        $obj->loadController();

        return $obj;
    }
public static function load ( $ arr ) { $ extract = [ 'authTypeID' , 'authTypeName' , 'authTypeHandle' , 'authTypeDisplayOrder' , 'authTypeIsEnabled' , 'pkgID' , ] ; $ obj = new self ( ) ; foreach ( $ extract as $ key ) { if ( ! isset ( $ arr [ $ key ] ) ) { return false ; } $ obj -> { $ key } = $ arr [ $ key ] ; } $ obj -> loadController ( ) ; return $ obj ; }
Load an AuthenticationType from an array.

@param array $arr should be an array of the following key/value pairs to create an object from:
<pre>
array(
'authTypeID' => int,
'authTypeHandle' => string,
'authTypeName' => string,
'authTypeDisplayOrder' => int,
'authTypeIsEnabled' => tinyint,
'pkgID' => int
)
</pre>

@return bool|\Concrete\Core\Authentication\AuthenticationType
Load an AuthenticationType from an array .