54 parent::__construct();
63 return basename($this->_path);
73 $fileName = str_replace(
' ',
'_', $fileName);
83 $exploded = explode(
".", basename($this->_path));
84 return $exploded[count($exploded) - 1];
104 public function setPath($pValue =
'', $pVerifyFile =
true) {
106 if (file_exists($pValue)) {
107 $this->_path = $pValue;
109 if ($this->_width == 0 && $this->_height == 0) {
111 list($this->_width, $this->_height) = getimagesize($pValue);
117 $this->_path = $pValue;
130 . parent::getHashCode()
139 $vars = get_object_vars($this);
140 foreach ($vars as
$key => $value) {
141 if (is_object($value)) {
142 $this->
$key = clone $value;
144 $this->
$key = $value;
setPath($pValue='', $pVerifyFile=true)
Set Path.
getIndexedFilename()
Get indexed filename (using image index)
getExtension()
Get Extension.
__clone()
Implement PHP __clone to create a deep clone, not just a shallow copy.
getImageIndex()
Get image index.
getHashCode()
Get hash code.
getFilename()
Get Filename.
__construct()
Create a new PHPExcel_Worksheet_Drawing.