_src = $src; $this->_style = new PHPWord_Style_Image(); if(!is_null($style) && is_array($style)) { foreach($style as $key => $value) { if(substr($key, 0, 1) != '_') { $key = '_'.$key; } $this->_style->setStyleValue($key, $value); } } return $this; } else { return false; } } /** * Get Image style * * @return PHPWord_Style_Image */ public function getStyle() { return $this->_style; } /** * Get Source * * @return string */ public function getSource() { return $this->_src; } /** * Get Object Relation ID * * @return int */ public function getRelationId() { return $this->_rId; } /** * Set Object Relation ID * * @param int $rId */ public function setRelationId($rId) { $this->_rId = $rId; } /** * Get Image Relation ID * * @return int */ public function getImageRelationId() { return $this->_rIdImg; } /** * Set Image Relation ID * * @param int $rId */ public function setImageRelationId($rId) { $this->_rIdImg = $rId; } /** * Get Object ID * * @return int */ public function getObjectId() { return $this->_objId; } /** * Set Object ID * * @param int $objId */ public function setObjectId($objId) { $this->_objId = $objId; } } ?>