PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
wpml-string-translation
/
classes
/
db-mappers
<?php namespace WPML\ST\DB\Mappers; use function WPML\FP\curryN; class StringTranslations { /** * @param \wpdb $wpdb * @param int $stringId * @param string $language * * @return callable|bool */ public static function hasTranslation( $wpdb = null, $stringId = null, $language = null ) { $has = function ( \wpdb $wpdb, $stringId, $language ) { $sql = "SELECT COUNT(id) FROM {$wpdb->prefix}icl_string_translations WHERE string_id = %d AND language = %s"; return $wpdb->get_var( $wpdb->prepare( $sql, $stringId, $language ) ) > 0; }; return call_user_func_array( curryN( 3, $has ), func_get_args() ); } }
[-] Update.php
[edit]
[-] class-wpml-st-db-mappers-strings.php
[edit]
[-] class-wpml-st-db-mappers-string-positions.php
[edit]
[-] wpml-st-word-count-package-records.php
[edit]
[-] StringTranslations.php
[edit]
[-] class-wpml-st-models-string.php
[edit]
[-] StringsRetrieve.php
[edit]
[-] wpml-st-word-count-string-records.php
[edit]
[-] class-wpml-st-bulk-strings-insert.php
[edit]
[-] class-wpml-st-models-string-translation.php
[edit]
[+]
..
[-] class-wpml-st-bulk-update-strings-status.php
[edit]
[-] Hooks.php
[edit]
[-] DomainsRepository.php
[edit]