_locale_string_seek_query
includes/locale.inc, строка 1320
- Версии
- 5
_locale_string_seek_query()
Build object out of search criteria specified in request variables
Код
<?php
function _locale_string_seek_query() {
static $query;
if (!isset($query)) {
$fields = array('string', 'language', 'searchin');
$query = new stdClass();
if (is_array($_REQUEST['edit'])) {
foreach ($_REQUEST['edit'] as $key => $value) {
if (!empty($value) && in_array($key, $fields)) {
$query->$key = $value;
}
}
}
else {
foreach ($_REQUEST as $key => $value) {
if (!empty($value) && in_array($key, $fields)) {
$query->$key = strpos(',', $value) ? explode(',', $value) : $value;
}
}
}
}
return $query;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии