console : tokenizer is static public
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5566 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -319,7 +319,7 @@ class console
|
|||||||
$end = mb_substr ($string, $pos + 1);
|
$end = mb_substr ($string, $pos + 1);
|
||||||
}
|
}
|
||||||
$completeArr = call_user_func ($this->completionFunction,
|
$completeArr = call_user_func ($this->completionFunction,
|
||||||
$this->tokenize ($start));
|
self::tokenize ($start));
|
||||||
$isAssoc = is_array ($completeArr) &&
|
$isAssoc = is_array ($completeArr) &&
|
||||||
array_diff_key ($completeArr, array_keys (array_keys ($completeArr)));
|
array_diff_key ($completeArr, array_keys (array_keys ($completeArr)));
|
||||||
// Remove from completeArr the proposed values which doesn't match with
|
// Remove from completeArr the proposed values which doesn't match with
|
||||||
@@ -945,7 +945,7 @@ class console
|
|||||||
* @param string $line The line to tokenize
|
* @param string $line The line to tokenize
|
||||||
* @return array The tokens
|
* @return array The tokens
|
||||||
*/
|
*/
|
||||||
private function tokenize ($line)
|
static public function tokenize ($line)
|
||||||
// {{{
|
// {{{
|
||||||
{
|
{
|
||||||
$tokens = array ();
|
$tokens = array ();
|
||||||
|
|||||||
Reference in New Issue
Block a user