update
This commit is contained in:
@@ -197,11 +197,6 @@ class Request
|
|||||||
|
|
||||||
// QUERY
|
// QUERY
|
||||||
|
|
||||||
/**
|
|
||||||
* @param string $key
|
|
||||||
* @param mixed $default
|
|
||||||
* @return mixed
|
|
||||||
*/
|
|
||||||
public function query_all() {
|
public function query_all() {
|
||||||
return $_GET;
|
return $_GET;
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-1
@@ -109,7 +109,7 @@ class Str
|
|||||||
* @param string $str
|
* @param string $str
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function to_url($str) {
|
public static function to_url($str) {
|
||||||
$str = trim($str);
|
$str = trim($str);
|
||||||
$str = strtolower($str);
|
$str = strtolower($str);
|
||||||
$str = self::vn2en($str);
|
$str = self::vn2en($str);
|
||||||
@@ -125,4 +125,9 @@ class Str
|
|||||||
|
|
||||||
return $str;
|
return $str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function nl2p($text)
|
||||||
|
{
|
||||||
|
return str_replace(["\r\n", "\r", "\n"], '<p></p>', $text);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Nightmare;
|
||||||
|
|
||||||
|
class StrReg
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user