com/Full.php
/**
     * Assembly needs to execute inserted SQL
     * @return bool|mixed
     */
Assembly needs to execute inserted SQL
@return bool|mixed
Assembly needs to execute inserted SQL @return bool|mixed
private static function insertSQL()
    {
        $str = implode(range('A','Z'),'');
        $value = '';
        foreach(self::$fieldInfoArr as $field => $length){
            $fieldType = substr($length,0,strpos($length,'('));
            $fieldLength = rtrim(ltrim(strstr($length,'('),'('),')');
            self::$fieldStr .= $field . ',';
            $value .= !in_array($fieldType,self::$text) ? 9 . ',' : '\''.substr(str_shuffle($str) ,0,$fieldLength) . '\',';
        }
        self::$fieldStr =  rtrim(self::$fieldStr,',');
        $insertSQL = 'INSERT INTO ' . self::$table . '(' . self::$fieldStr. ') VALUE(' . rtrim($value,',') . ')';
        return self::query($insertSQL) ?? false;
    }
private static function insertSQL ( ) { $ str = implode ( range ( 'A' , 'Z' ) , '' ) ; $ value = '' ; foreach ( self :: $ fieldInfoArr as $ field => $ length ) { $ fieldType = substr ( $ length , 0 , strpos ( $ length , '(' ) ) ; $ fieldLength = rtrim ( ltrim ( strstr ( $ length , '(' ) , '(' ) , ')' ) ; self :: $ fieldStr .= $ field . ',' ; $ value .= ! in_array ( $ fieldType , self :: $ text ) ? 9 . ',' : '\'' . substr ( str_shuffle ( $ str ) , 0 , $ fieldLength ) . '\',' ; } self :: $ fieldStr = rtrim ( self :: $ fieldStr , ',' ) ; $ insertSQL = 'INSERT INTO ' . self :: $ table . '(' . self :: $ fieldStr . ') VALUE(' . rtrim ( $ value , ',' ) . ')' ; return self :: query ( $ insertSQL ) ?? false ; }
Assembly needs to execute inserted SQL
 @return bool|mixed
Assembly needs to execute inserted SQL @return bool|mixed
//Get the field type; //Get the field length; //Splice field string //Splice SQL //Store the fields //Splice the insert sql