ascvh@#%(^-^)V ?host,ip,port,protocol,title,domain,country,city,link,org ???à JFIF x x ?? C ?? C ?à " ?? ?? μ } !1AQa "q2?‘?#B±áR?e$3br? %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz??…???‰?’“”?–—???¢£¤¥|§¨?a23′μ?·?1o??????èéêòó???×?ùúáa?????èéê?òó???÷?ùú?? ?? μ w !1AQ aq"2?B‘?±á #3Rebr?{
File "db-tools.php"
Full Path: /home/zcziejy/ryadselyen/-20260112071320/include/db-tools.php
File size: 1.01 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* @package Polylang
*/
defined( 'ABSPATH' ) || exit;
/**
* Small set of tools to work with the database.
*
* @since 3.2
*/
class PLL_Db_Tools {
/**
* Changes an array of values into a comma separated list, ready to be used in a `IN ()` clause.
* Only string and integers and supported for now.
*
* @since 3.2
*
* @param (int|string)[] $values An array of values.
* @return string A comma separated list of values.
*/
public static function prepare_values_list( $values ) {
$values = array_map( array( __CLASS__, 'prepare_value' ), (array) $values );
return implode( ',', $values );
}
/**
* Wraps a value in escaped double quotes or casts as an integer.
* Only string and integers and supported for now.
*
* @since 3.2
*
* @global wpdb $wpdb
*
* @param int|string $value A value.
* @return int|string
*/
public static function prepare_value( $value ) {
if ( ! is_numeric( $value ) ) {
return $GLOBALS['wpdb']->prepare( '%s', $value );
}
return (int) $value;
}
}