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);
114 throw new Exception(
"File $pValue not found!");
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;