concrete/src/Captcha/Library.php
public static function add($sclHandle, $sclName, $pkg = false)
    {
        if (is_object($pkg)) {
            $pkgID = $pkg->getPackageID();
        } else {
            $pkgID = (int) $pkg;
        }
        $app = Facade::getFacadeApplication();
        $db = $app->make('database')->connection();
        $db->executeQuery('insert into SystemCaptchaLibraries (sclHandle, sclName, pkgID) values (?, ?, ?)', [$sclHandle, $sclName, $pkgID]);

        return static::getByHandle($sclHandle);
    }
public static function add($sclHandle, $sclName, $pkg = false)
    {
        if (is_object($pkg)) {
            $pkgID = $pkg->getPackageID();
        } else {
            $pkgID = (int) $pkg;
        }
        $app = Facade::getFacadeApplication();
        $db = $app->make('database')->connection();
        $db->executeQuery('insert into SystemCaptchaLibraries (sclHandle, sclName, pkgID) values (?, ?, ?)', [$sclHandle, $sclName, $pkgID]);

        return static::getByHandle($sclHandle);
    }
public static function add ( $ sclHandle , $ sclName , $ pkg = false ) { if ( is_object ( $ pkg ) ) { $ pkgID = $ pkg -> getPackageID ( ) ; } else { $ pkgID = ( int ) $ pkg ; } $ app = Facade :: getFacadeApplication ( ) ; $ db = $ app -> make ( 'database' ) -> connection ( ) ; $ db -> executeQuery ( 'insert into SystemCaptchaLibraries (sclHandle, sclName, pkgID) values (?, ?, ?)' , [ $ sclHandle , $ sclName , $ pkgID ] ) ; return static :: getByHandle ( $ sclHandle ) ; }
Add a new library.

@param string $sclHandle the library handle
@param string $sclName the library name
@param \Concrete\Core\Entity\Package|int|false $pkg the package that installs this library

@return static
Add a new library .