PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
wpml-string-translation
/
classes
/
translations-file-scan
<?php namespace WPML\ST\TranslationFile; class EntryQueries { /** * @param string $type * * @return \Closure */ public static function isType( $type ) { return function ( \WPML_ST_Translations_File_Entry $entry ) use ( $type ) { return $entry->get_component_type() === $type; }; } /** * @param string $extension * * @return \Closure */ public static function isExtension( $extension ) { return function ( \WPML_ST_Translations_File_Entry $file ) use ( $extension ) { return $file->get_extension() === $extension; }; } /** * @return \Closure */ public static function getResourceName() { return function ( \WPML_ST_Translations_File_Entry $entry ) { $function = 'get' . ucfirst( $entry->get_component_type() ) . 'Name'; return self::$function( $entry ); }; } /** * @return \Closure */ public static function getDomain() { return function( \WPML_ST_Translations_File_Entry $file ) { return $file->get_domain(); }; } /** * @param \WPML_ST_Translations_File_Entry $entry * * @return string */ private static function getPluginName( \WPML_ST_Translations_File_Entry $entry ) { $data = get_plugin_data( WPML_PLUGINS_DIR . '/' . $entry->get_component_id(), false, false ); return $data['Name']; } /** * @param \WPML_ST_Translations_File_Entry $entry * * @return string */ private static function getThemeName( \WPML_ST_Translations_File_Entry $entry ) { return $entry->get_component_id(); } /** * @param \WPML_ST_Translations_File_Entry $entry * * @return mixed|string|void */ private static function getOtherName( \WPML_ST_Translations_File_Entry $entry ) { return 'WordPress'; } }
[-] QueueFilter.php
[edit]
[+]
translations-file
[-] wpml-st-translations-file-translation.php
[edit]
[-] wpml-st-translations-file-scan.php
[edit]
[-] wpml-st-translations-file-string-status-update.php
[edit]
[-] wpml-st-translations-file-unicode-characters-filter.php
[edit]
[+]
components
[-] wpml-st-translations-file-registration.php
[edit]
[+]
dictionary
[-] wpml-st-translations-file-scan-storage.php
[edit]
[-] wpml-st-translations-file-dictionary.php
[edit]
[-] wpml-st-translations-file-entry.php
[edit]
[+]
..
[-] wpml-st-translations-file-queue.php
[edit]
[+]
UI
[-] wpml-st-translations-file-component-stats-update-hooks.php
[edit]
[-] wpml-st-translations-file-scan-ui-block.php
[edit]
[-] wpml-st-translations-file-scan-factory.php
[edit]
[+]
charset-validation
[-] EntryQueries.php
[edit]