Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 77... Línea 77...
77
        $firstPartHeaderLength = \strlen(self::SHARED_STRINGS_XML_FILE_FIRST_PART_HEADER);
77
        $firstPartHeaderLength = \strlen(self::SHARED_STRINGS_XML_FILE_FIRST_PART_HEADER);
78
        $defaultStringsCountPartLength = \strlen(self::DEFAULT_STRINGS_COUNT_PART);
78
        $defaultStringsCountPartLength = \strlen(self::DEFAULT_STRINGS_COUNT_PART);
Línea 79... Línea 79...
79
 
79
 
80
        // Adding 1 to take into account the space between the last xml attribute and "count"
80
        // Adding 1 to take into account the space between the last xml attribute and "count"
81
        fseek($this->sharedStringsFilePointer, $firstPartHeaderLength + 1);
81
        fseek($this->sharedStringsFilePointer, $firstPartHeaderLength + 1);
Línea 82... Línea 82...
82
        fwrite($this->sharedStringsFilePointer, sprintf("%-{$defaultStringsCountPartLength}s", 'count="'.$this->numSharedStrings.'" uniqueCount="'.$this->numSharedStrings.'"'));
82
        fwrite($this->sharedStringsFilePointer, \sprintf("%-{$defaultStringsCountPartLength}s", 'count="'.$this->numSharedStrings.'" uniqueCount="'.$this->numSharedStrings.'"'));
83
 
83
 
84
        fclose($this->sharedStringsFilePointer);
84
        fclose($this->sharedStringsFilePointer);