Ignore:
Timestamp:
Jul 30, 2014 10:43:49 PM (10 years ago)
Author:
anonymous
Message:

Changed private methods and properties to protected. A few minor bug fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/ImageThumb.inc.php

    r479 r484  
    4343
    4444    // General object parameters.
    45     private $_params = array(
     45    protected $_params = array(
    4646        // The location for images to create thumbnails from.
    4747        'source_dir' => null,
     
    7272
    7373    // Default image size specs.
    74     private $_default_image_specs = array(
     74    protected $_default_image_specs = array(
    7575        // The destination for an image thumbnail size.
    7676        // Use initial / to specify absolute paths, leave off to specify a path relative to source_dir (eg: ../thumbs).
     
    108108
    109109    // Final specifications for image sizes, set with setSpec().
    110     private $_image_specs = array();
     110    protected $_image_specs = array();
    111111
    112112    /**
     
    452452    * @since    19 May 2006 13:55:46
    453453    */
    454     private function _resizeWithNetpbm($source_file, $dest_file, $spec)
     454    protected function _resizeWithNetpbm($source_file, $dest_file, $spec)
    455455    {
    456456        $app =& App::getInstance();
     
    521521    * @since    19 May 2006 15:46:02
    522522    */
    523     private function _resizeWithGD($source_file, $dest_file, $spec)
     523    protected function _resizeWithGD($source_file, $dest_file, $spec)
    524524    {
    525525        $app =& App::getInstance();
     
    754754     * @return  bool    True on success, false on failure.
    755755     */
    756     private function _validFileExtension($file_name)
     756    protected function _validFileExtension($file_name)
    757757    {
    758758        preg_match('/.*?\.(\w+)$/i', $file_name, $ext);
     
    766766     * @return  bool true on success, false on failure.
    767767     */
    768     private function _createDestDirs($filename=null)
     768    protected function _createDestDirs($filename=null)
    769769    {
    770770        $app =& App::getInstance();
     
    824824     * @param string $line    __LINE__.
    825825     */
    826     private function _raiseMsg($message, $type, $file, $line)
     826    protected function _raiseMsg($message, $type, $file, $line)
    827827    {
    828828        $app =& App::getInstance();
     
    844844     * @since   15 Nov 2005 20:55:22
    845845     */
    846     private function _glob($pattern, $directory)
     846    protected function _glob($pattern, $directory)
    847847    {
    848848        $file_list = glob(sprintf('%s/%s', $directory, $pattern));
Note: See TracChangeset for help on using the changeset viewer.