concrete/src/Captcha/Library.php
public static function getByHandle($sclHandle)
    {
        $app = Facade::getFacadeApplication();
        $db = $app->make('database')->connection();
        $r = $db->fetchAssoc('select sclHandle, sclIsActive, pkgID, sclName from SystemCaptchaLibraries where sclHandle = ?', [$sclHandle]);
        if ($r !== false) {
            $sc = new static();
            $sc->setPropertiesFromArray($r);

            return $sc;
        }
    }
public static function getByHandle($sclHandle)
    {
        $app = Facade::getFacadeApplication();
        $db = $app->make('database')->connection();
        $r = $db->fetchAssoc('select sclHandle, sclIsActive, pkgID, sclName from SystemCaptchaLibraries where sclHandle = ?', [$sclHandle]);
        if ($r !== false) {
            $sc = new static();
            $sc->setPropertiesFromArray($r);

            return $sc;
        }
    }
public static function getByHandle ( $ sclHandle ) { $ app = Facade :: getFacadeApplication ( ) ; $ db = $ app -> make ( 'database' ) -> connection ( ) ; $ r = $ db -> fetchAssoc ( 'select sclHandle, sclIsActive, pkgID, sclName from SystemCaptchaLibraries where sclHandle = ?' , [ $ sclHandle ] ) ; if ( $ r !== false ) { $ sc = new static ( ) ; $ sc -> setPropertiesFromArray ( $ r ) ; return $ sc ; } }
Get a library given its handle.

@param string $sclHandle the library handle

@return static|null
Get a library given its handle .