eZ Publish  [4.0]
ezimagefactory.php
Go to the documentation of this file.
00001 <?php
00002 //
00003 // Definition of eZImageFactory class
00004 //
00005 // Created on: <16-Oct-2003 13:58:34 amos>
00006 //
00007 // ## BEGIN COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
00008 // SOFTWARE NAME: eZ Publish
00009 // SOFTWARE RELEASE: 4.0.x
00010 // COPYRIGHT NOTICE: Copyright (C) 1999-2008 eZ Systems AS
00011 // SOFTWARE LICENSE: GNU General Public License v2.0
00012 // NOTICE: >
00013 //   This program is free software; you can redistribute it and/or
00014 //   modify it under the terms of version 2.0  of the GNU General
00015 //   Public License as published by the Free Software Foundation.
00016 //
00017 //   This program is distributed in the hope that it will be useful,
00018 //   but WITHOUT ANY WARRANTY; without even the implied warranty of
00019 //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020 //   GNU General Public License for more details.
00021 //
00022 //   You should have received a copy of version 2.0 of the GNU General
00023 //   Public License along with this program; if not, write to the Free
00024 //   Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00025 //   MA 02110-1301, USA.
00026 //
00027 //
00028 // ## END COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
00029 //
00030 
00031 /*! \file ezimagefactory.php
00032 */
00033 
00034 /*!
00035   \class eZImageFactory ezimagefactory.php
00036   \brief Base class for image factories
00037 
00038   The image factory is responsible for producing image handlers
00039   when requested. This class must be inherited by specific
00040   factories to create specific handlers.
00041 */
00042 
00043 class eZImageFactory
00044 {
00045     /*!
00046      Initializes the factory with the name \a $name.
00047     */
00048     function eZImageFactory( $name )
00049     {
00050         $this->Name = $name;
00051     }
00052 
00053     /*!
00054      \return the name of the factory, this is the name referenced in the INI file.
00055     */
00056     function name()
00057     {
00058         return $this->Name;
00059     }
00060 
00061     /*!
00062      \pure
00063      Creates a new image handler from the INI group \a $iniGroup and optionally INI file \a $iniFilename.
00064      \note The default implementation returns \c null.
00065     */
00066     static function produceFromINI( $iniGroup, $iniFilename = false )
00067     {
00068         $imageHandler = null;
00069         return $imageHandler;
00070     }
00071 
00072     /// \privatesection
00073     public $Name;
00074 }
00075 
00076 ?>