Changeset 439 for branches/eli_branch/lib/ImageThumb.inc.php
- Timestamp:
- Nov 30, 2013 7:30:44 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eli_branch/lib/ImageThumb.inc.php
r438 r439 43 43 44 44 // General object parameters. 45 var$_params = array(45 private $_params = array( 46 46 // The location for images to create thumbnails from. 47 47 'source_dir' => null, … … 72 72 73 73 // Default image size specs. 74 var$_default_image_specs = array(74 private $_default_image_specs = array( 75 75 // The destination for an image thumbnail size. 76 76 // Use initial / to specify absolute paths, leave off to specify a path relative to source_dir (eg: ../thumbs). … … 108 108 109 109 // Final specifications for image sizes, set with setSpec(). 110 var$_image_specs = array();110 private $_image_specs = array(); 111 111 112 112 /** … … 116 116 * @param array $params Array of parameters (key => val pairs). 117 117 */ 118 function setParam($params)118 public function setParam($params) 119 119 { 120 120 $app =& App::getInstance(); … … 160 160 * @return mixed Configured parameter value. 161 161 */ 162 function getParam($param)162 public function getParam($param) 163 163 { 164 164 $app =& App::getInstance(); … … 180 180 * Use to overwrite existing spec array values. 181 181 */ 182 function setSpec($spec, $index=null)182 public function setSpec($spec, $index=null) 183 183 { 184 184 $app =& App::getInstance(); … … 259 259 * @since 08 May 2007 15:26:39 260 260 */ 261 function getSpec($key, $index=null)261 public function getSpec($key, $index=null) 262 262 { 263 263 $index = isset($index) ? $index : 0; … … 271 271 * @return bool true on success, false on failure. 272 272 */ 273 function processAll($runtime_specs=null)273 public function processAll($runtime_specs=null) 274 274 { 275 275 $app =& App::getInstance(); … … 313 313 * @return bool true on success, false on failure. 314 314 */ 315 function processFile($file_name, $runtime_specs=null)315 public function processFile($file_name, $runtime_specs=null) 316 316 { 317 317 $app =& App::getInstance(); … … 452 452 * @since 19 May 2006 13:55:46 453 453 */ 454 function _resizeWithNetpbm($source_file, $dest_file, $spec)454 private function _resizeWithNetpbm($source_file, $dest_file, $spec) 455 455 { 456 456 $app =& App::getInstance(); … … 521 521 * @since 19 May 2006 15:46:02 522 522 */ 523 function _resizeWithGD($source_file, $dest_file, $spec)523 private function _resizeWithGD($source_file, $dest_file, $spec) 524 524 { 525 525 $app =& App::getInstance(); … … 662 662 * @return bool true on success, false on failure. 663 663 */ 664 function deleteThumbs($file_name, $use_glob=false)664 public function deleteThumbs($file_name, $use_glob=false) 665 665 { 666 666 $app =& App::getInstance(); … … 700 700 * @return bool true on success, false on failure. 701 701 */ 702 function deleteOriginal($file_name)702 public function deleteOriginal($file_name) 703 703 { 704 704 $app =& App::getInstance(); … … 733 733 * @return bool true on success, false on failure. 734 734 */ 735 function exists($file_name)735 public function exists($file_name) 736 736 { 737 737 $app =& App::getInstance(); … … 754 754 * @return bool True on success, false on failure. 755 755 */ 756 function _validFileExtension($file_name)756 private function _validFileExtension($file_name) 757 757 { 758 758 preg_match('/.*?\.(\w+)$/i', $file_name, $ext); … … 766 766 * @return bool true on success, false on failure. 767 767 */ 768 function _createDestDirs($filename=null)768 private function _createDestDirs($filename=null) 769 769 { 770 770 $app =& App::getInstance(); … … 844 844 * @param string $line __LINE__. 845 845 */ 846 function _raiseMsg($message, $type, $file, $line)846 private function _raiseMsg($message, $type, $file, $line) 847 847 { 848 848 $app =& App::getInstance(); … … 864 864 * @since 15 Nov 2005 20:55:22 865 865 */ 866 function _glob($pattern, $directory)866 private function _glob($pattern, $directory) 867 867 { 868 868 $file_list = glob(sprintf('%s/%s', $directory, $pattern));
Note: See TracChangeset
for help on using the changeset viewer.