com/Verify.php
/**
     * Check if the parameter is exists
     * @param $param
     * @return bool
     */
Check if the parameter is exists
@param $param
@return bool
Check if the parameter is exists @param $param @return bool
private static function unique($param)
    {
        if('' === self::$parameter[$param['key']]) return self::require(['key'=>$param['key']]);
        $value = self::$parameter[$param['key']];
        $table = 'awt_' . $param['rule'];
        $checkSQL = "SELECT {$param['key']} FROM {$table} WHERE {$param['key']}= '{$value}' LIMIT 1";
        $state = self::$link->prepare($checkSQL);
        $state->execute();
        return $state->fetch(\PDO::FETCH_ASSOC) ? self::assignment($param['key'], __FUNCTION__) : false;
    }
private static function unique ( $ param ) { if ( '' === self :: $ parameter [ $ param [ 'key' ] ] ) return self :: require ( [ 'key' => $ param [ 'key' ] ] ) ; $ value = self :: $ parameter [ $ param [ 'key' ] ] ; $ table = 'awt_' . $ param [ 'rule' ] ; $ checkSQL = " SELECT  { $ param [ 'key' ] }  FROM  { $ table }  WHERE  { $ param [ 'key' ] } = ' { $ value } ' LIMIT 1 " ; $ state = self :: $ link -> prepare ( $ checkSQL ) ; $ state -> execute ( ) ; return $ state -> fetch ( \ PDO :: FETCH_ASSOC ) ? self :: assignment ( $ param [ 'key' ] , __FUNCTION__ ) : false ; }
Check if the parameter is exists
 @param $param
 @return bool
Check if the parameter is exists @param $param @return bool
//        $table = pdo::$prefix.$param['key'];