Add a Table Element

@param mixed $style
@return PHPWord_Section_Table
430110
public function addTable($style = null) {
		$table = new PHPWord_Section_Table('footer', $this->_footerCount, $style);
		$this->_elementCollection[] = $table;
		return $table;
	}
49275
public function addStyle(Style $style)
    {
        if (null === $style->getId()) {
            $this->register($style->getFont(), $this->fonts);
            $this->register($style->getFill(), $this->fills);
            $this->register($style->getBorder(), $this->borders);
            $this->register($style, $this->styles);
            $style->lock();
        }
    }
448260
public function style($style)
    {
        if (in_array($style, ['arrow', 'dot', 'bar'])) {
            $this->attributes->removeAttributeClass('breadcrumb-*');
            $this->attributes->addAttributeClass('breadcrumb-' . $style);
        }

        return $this;
    }
584975
public function addMemoryImage($link, $style = null) {
		$memoryImage = new PHPWord_Section_MemoryImage($link, $style);
		if(!is_null($memoryImage->getSource())) {
			if($this->_insideOf == 'section') {
				$rID = PHPWord_Media::addSectionMediaElement($link, 'image', $memoryImage);
			} elseif($this->_insideOf == 'header') {
				$rID = PHPWord_Media::addHeaderMediaElement($this->_pCount, $link, $memoryImage);
			} elseif($this->_insideOf == 'footer') {
				$rID = PHPWord_Media::addFooterMediaElement($this->_pCount, $link, $memoryImage);
			}
			$memoryImage->setRelationId($rID);
			
			$this->_elementCollection[] = $memoryImage;
			return $memoryImage;
		} else {
			trigger_error('Unsupported image type.');
		}
	}
1205932
public function parseStyle($style) {
        $groups = $this->formatParser->parseStyle($style);

        foreach ($groups as $group) {
            $type = $group[1];
            $value = $group[2];

            if (array_contains(['color', 'clr', 'fg'], $type)) {
                foreach (explode(',', $value) as $color) {
                    $this->setColor($color);
                }
            }

            if (array_contains(['background', 'bg'], $type)) {
                foreach (explode(',', $value) as $background) {
                    $this->setBackground($background);
                }
            }

            if (array_contains(['format', 'fmt'], $type)) {
                foreach (explode(',', $value) as $format) {
                    $this->addFormat($format);
                }
            }
        }

        return $this;
    }
1048258
public function registerStyle($style)
    {
        $registeredStyle = parent::registerStyle($style);
        $this->registerFill($registeredStyle);
        $this->registerBorder($registeredStyle);
        return $registeredStyle;
    }
892305
public function addImage($src, $style = null) {
		$image = new PHPWord_Section_Image($src, $style);
		
		if(!is_null($image->getSource())) {
			if($this->_insideOf == 'section') {
				$rID = PHPWord_Media::addSectionMediaElement($src, 'image');
			} elseif($this->_insideOf == 'header') {
				$rID = PHPWord_Media::addHeaderMediaElement($this->_pCount, $src);
			} elseif($this->_insideOf == 'footer') {
				$rID = PHPWord_Media::addFooterMediaElement($this->_pCount, $src);
			}
			$image->setRelationId($rID);
			
			$this->_elementCollection[] = $image;
			return $image;
		} else {
			trigger_error('Source does not exist or unsupported image type.');
		}
	}
667121
public function createTable($nbColonnes=4,$styleTableau='border:1px;',$classTableau='',$cellProperty='',$tableauProperties='')
	{
		return $this->createHtmlTableFromArray($nbColonnes,$styleTableau,$classTableau,$cellProperty,$tableauProperties);
	}
1147159
private function getTextPropertiesSectionContent($style)
    {
        $content = '';

        if ($style->shouldApplyFont()) {
            $content .= $this->getFontSectionContent($style);
        }

        return $content;
    }
717339
public function addText($text, $styleFont = null, $styleParagraph = null) {
		$text = new PHPWord_Section_Text($text, $styleFont, $styleParagraph);
		$this->_elementCollection[] = $text;
		return $text;
	}
303294
public function setStyle(string $style): Bootstrap3Button
    {
        if (in_array($style, $this->supported_styles) === true) {
            $this->style = $style;
        } else {
            $this->style = 'default';
        }

        return $this;
    }
292768
public function addSection(PHPRtfLite_Container_Section $section = null)
    {
        if ($section === null) {
            $section = new PHPRtfLite_Container_Section($this);
        }

        $this->_sections[] = $section;

        return $section;
    }
147791
public function addStyle(Style $style)
    {
        if (!in_array($style, $this->styles, true)) {
            array_push($this->styles, $style);
        }
        return $this;
    }
237683
public function addStyles(array $styles) {
		foreach ($styles as $param => $value) {
			$this->addStyle($param, $value);
		}
		
		return $this;
	}
493905
public function addTable(Table $table)
    {
        $this->tables->set($table->getTableName(), $table);
        
        return $this;
    }
1069651
public function appendStyle($cssStyle)
    {
        $cssStyle = trim($cssStyle, " \n;");
        $cssStyle && $this->styles[] = $cssStyle;
        return $this;
    }
998399
public function addMemoryImage($link, $style = null) {
		$memoryImage = new PHPWord_Section_MemoryImage($link, $style);
		if(!is_null($memoryImage->getSource())) {
			$rID = PHPWord_Media::addFooterMediaElement($this->_footerCount, $link, $memoryImage);
			$memoryImage->setRelationId($rID);
			
			$this->_elementCollection[] = $memoryImage;
			return $memoryImage;
		} else {
			trigger_error('Unsupported image type.');
		}
	}