Clean up for move to .php files an phan checks

This commit is contained in:
Clemens Schwaighofer
2019-09-13 16:08:49 +09:00
parent d9ad041c47
commit 56612cb13b
11 changed files with 27 additions and 20 deletions

View File

@@ -770,6 +770,15 @@ class Login extends \CoreLibs\DB\IO
return $is_valid_password;
}
// METHOD: loginPasswordForgot
// PARAMS: none
// RETURN: none
// DESC : dummy declare for password forget
private function loginPasswordForgot()
{
// will do some password recovert, eg send email
}
// METHOD: loginSetPasswordMinLength
// PARAMS: set the minimum length
// RETURN: true/false on success

View File

@@ -435,7 +435,7 @@ class PgSQL
return $offset;
}
} else {
$offset = pg_array_parse($text, $output[], $limit, $offset + 1);
$offset = $this->__dbArrayParse($text, $output[], $limit, $offset + 1);
}
} while ($limit > $offset);
}

View File

@@ -24,7 +24,7 @@ namespace CoreLibs\Language\Core;
// Preloads entire file in memory first, then creates a StringReader
// over it (it assumes knowledge of StringReader internals)
class CachedFileReader extends CoreLibs\Language\Core\StringReader
class CachedFileReader extends \CoreLibs\Language\Core\StringReader
{
public function __construct($filename)
{

View File

@@ -369,7 +369,7 @@ class GetTextReader
* Detects which plural form to take
*
* @access private
* @param n count
* @param string count
* @return int array index of the right plural form
*/
private function select_string($n)

View File

@@ -923,12 +923,12 @@ class Generate extends \CoreLibs\DB\Extended\ArrayIO
}
break;
case 'date': // YYYY-MM-DD
if (!check_date($this->table_array[$key]['value'], 1)) {
if (!$this->checkDate($this->table_array[$key]['value'], 1)) {
$this->msg .= sprintf($this->l->__('Please enter a vailid date (YYYY-MM-DD) for the <b>%s</b> Field!<br>'), $this->table_array[$key]['output_name']);
}
break;
case 'time': // HH:MM[:SS]
if (!check_time($this->table_array[$key]['value'])) {
if (!$this->checkDateTime($this->table_array[$key]['value'])) {
$this->msg .= sprintf($this->l->__('Please enter a vailid time (HH:MM[:SS]) for the <b>%s</b> Field!<br>'), $this->table_array[$key]['output_name']);
}
break;

View File

@@ -25,7 +25,8 @@ class SmartyExtend extends SmartyBC
SmartyBC::__construct();
$this->l10n = new \CoreLibs\Language\L10n($lang);
// variable variable register
$this->register_modifier('getvar', array(&$this, 'get_template_vars'));
// $this->register_modifier('getvar', array(&$this, 'get_template_vars'));
$this->registerPlugin('modifier', 'getvar', array(&$this, 'get_template_vars'));
}
}

View File

@@ -2,8 +2,7 @@
namespace FileUpload;
use \FileUpload\Core\qqUploadedFileForm;
use \FileUpload\Core\qqUploadedFileXhr;
use \FileUpload\Core;
class qqFileUploader
{
@@ -21,9 +20,9 @@ class qqFileUploader
$this->checkServerSettings();
if (isset($_GET['qqfile'])) {
$this->file = new qqUploadedFileXhr();
$this->file = new \FileUpload\Core\qqUploadedFileXhr();
} elseif (isset($_FILES['qqfile'])) {
$this->file = new qqUploadedFileForm();
$this->file = new \FileUpload\Core\qqUploadedFileForm();
} else {
$this->file = false;
}