[SearchEngine] Add support for queries by date

This commit is contained in:
Romain Neutron
2012-10-26 20:09:05 +02:00
parent 8a829f03b1
commit c5e9b1f7b5
30 changed files with 804 additions and 189 deletions

View File

@@ -1380,29 +1380,6 @@ class User_Adapter implements User_Interface, cache_cacheableInterface
return $this;
}
public static function avLanguages()
{
$lngs = array();
$path = __DIR__ . "/../../../locale";
if ($hdir = opendir($path)) {
while (false !== ($file = readdir($hdir))) {
if (substr($file, 0, 1) == "." || strtolower($file) == "cvs")
continue;
if (is_dir($path . "/" . $file) && strpos($file, '_') == 2 && strlen($file) == 5) {
if (!array_key_exists($file, self::$locales))
continue;
$supFile = explode('_', $file);
if (!isset($lngs[$supFile[0]]))
$lngs[$supFile[0]] = array();
$lngs[$supFile[0]][$file] = array('name' => self::$locales[$file], 'selected' => false);
}
}
}
return $lngs;
}
public static function get_wrong_email_users(Application $app)
{

View File

@@ -146,8 +146,6 @@ interface User_Interface
public function get_nonce();
public static function avLanguages();
public function setPrefs($prop, $value);
public function getPrefs($prop);