Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 334... Línea 334...
334
    {
334
    {
335
        if (!$style->hasSetCellAlignment()) {
335
        if (!$style->hasSetCellAlignment()) {
336
            return '';
336
            return '';
337
        }
337
        }
Línea 338... Línea 338...
338
 
338
 
339
        return sprintf(
339
        return \sprintf(
340
            ' fo:text-align="%s" ',
340
            ' fo:text-align="%s" ',
341
            $this->transformCellAlignment($style->getCellAlignment())
341
            $this->transformCellAlignment($style->getCellAlignment())
342
        );
342
        );
Línea 349... Línea 349...
349
    {
349
    {
350
        if (!$style->hasSetCellVerticalAlignment()) {
350
        if (!$style->hasSetCellVerticalAlignment()) {
351
            return '';
351
            return '';
352
        }
352
        }
Línea 353... Línea 353...
353
 
353
 
354
        return sprintf(
354
        return \sprintf(
355
            ' fo:vertical-align="%s" ',
355
            ' fo:vertical-align="%s" ',
356
            $this->transformCellVerticalAlignment($style->getCellVerticalAlignment())
356
            $this->transformCellVerticalAlignment($style->getCellVerticalAlignment())
357
        );
357
        );
Línea 421... Línea 421...
421
    {
421
    {
422
        $borders = array_map(static function (BorderPart $borderPart) {
422
        $borders = array_map(static function (BorderPart $borderPart) {
423
            return BorderHelper::serializeBorderPart($borderPart);
423
            return BorderHelper::serializeBorderPart($borderPart);
424
        }, $border->getParts());
424
        }, $border->getParts());
Línea 425... Línea 425...
425
 
425
 
426
        return sprintf(' %s ', implode(' ', $borders));
426
        return \sprintf(' %s ', implode(' ', $borders));
Línea 427... Línea 427...
427
    }
427
    }
428
 
428
 
429
    /**
429
    /**
430
     * Returns the contents of the background color definition for the "<style:table-cell-properties>" section.
430
     * Returns the contents of the background color definition for the "<style:table-cell-properties>" section.
431
     */
431
     */
432
    private function getBackgroundColorXMLContent(string $bgColor): string
432
    private function getBackgroundColorXMLContent(string $bgColor): string
433
    {
433
    {
434
        return sprintf(' fo:background-color="#%s" ', $bgColor);
434
        return \sprintf(' fo:background-color="#%s" ', $bgColor);