This commit is contained in:
Paula V. Quispe
2016-09-22 13:38:20 -04:00
parent 91d5605365
commit 5162da2c07

View File

@@ -504,7 +504,7 @@ class G
* @param boolean $createPath if true this public function will create the path * @param boolean $createPath if true this public function will create the path
* @return boolean * @return boolean
*/ */
public function verifyPath ($strPath, $createPath = false) public static function verifyPath ($strPath, $createPath = false)
{ {
$folder_path = strstr( $strPath, '.' ) ? dirname( $strPath ) : $strPath; $folder_path = strstr( $strPath, '.' ) ? dirname( $strPath ) : $strPath;
@@ -1383,7 +1383,7 @@ class G
* @param string $id * @param string $id
* @return string * @return string
*/ */
public function createUID ($scope, $id) public static function createUID ($scope, $id)
{ {
$e = $scope . $id; $e = $scope . $id;
$e = G::encrypt( $e, URL_KEY ); $e = G::encrypt( $e, URL_KEY );
@@ -1750,7 +1750,7 @@ class G
* @fn() Evaluate string with the function "fn" * @fn() Evaluate string with the function "fn"
* @author David Callizaya <calidavidx21@hotmail.com> * @author David Callizaya <calidavidx21@hotmail.com>
*/ */
public function replaceDataField ($sqlString, $result, $DBEngine = 'mysql') public static function replaceDataField ($sqlString, $result, $DBEngine = 'mysql')
{ {
if (! is_array( $result )) { if (! is_array( $result )) {
$result = array (); $result = array ();
@@ -2389,7 +2389,7 @@ class G
* *
* @return string strtoupper($sText) * @return string strtoupper($sText)
*/ */
public function toUpper ($sText) public static function toUpper ($sText)
{ {
return strtoupper( $sText ); return strtoupper( $sText );
} }
@@ -2894,7 +2894,7 @@ class G
* @access public * @access public
* @return string * @return string
*/ */
public function generateCode ($iDigits = 4, $sType = 'NUMERIC') public static function generateCode ($iDigits = 4, $sType = 'NUMERIC')
{ {
if (($iDigits < 4) || ($iDigits > 50)) { if (($iDigits < 4) || ($iDigits > 50)) {
$iDigits = 4; $iDigits = 4;