本文整理汇总了PHP中InternalAutoloader类的典型用法代码示例。如果您正苦于以下问题:PHP InternalAutoloader类的具体用法?PHP InternalAutoloader怎么用?PHP InternalAutoloader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了InternalAutoloader类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dirname
*
* @category PHP
* @package Autoloader
* @subpackage Index
* @author Markus Malkusch <markus@malkusch.de>
* @copyright 2009 - 2010 Markus Malkusch
* @license http://php-autoloader.malkusch.de/en/license/ GPL 3
* @version SVN: $Id: AutoloaderIndex_SerializedHashtable_GZ.php,v 1.5 2011/01/11 14:25:31 nicke Exp $
* @link http://php-autoloader.malkusch.de/en/
*/
/**
* The parent class is needed.
*/
InternalAutoloader::getInstance()->registerClass('AutoloaderIndex_SerializedHashtable', dirname(__FILE__) . '/AutoloaderIndex_SerializedHashtable.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_Index_IO', dirname(__FILE__) . '/exception/AutoloaderException_Index_IO.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_Index_IO_FileNotExists', dirname(__FILE__) . '/exception/AutoloaderException_Index_IO_FileNotExists.php');
/**
* Extends AutoloaderIndex_SerializedHashtable by compressing the
* serialized hashtable
*
* This index works similar to AutoloaderIndex_SerializedHashtable. Its only
* difference is that the index file is compressed. In environments with
* a hugh count of class definitions a plain text index file would produce
* too much IO costs.
*
* @category PHP
* @package Autoloader
* @subpackage Index
* @author Markus Malkusch <markus@malkusch.de>
* @license http://php-autoloader.malkusch.de/en/license/ GPL 3
* @version Release: 1.11
示例2: dirname
* along with this program.
* If not, see <http://php-autoloader.malkusch.de/en/license/>.
*
* @category PHP
* @package Autoloader
* @subpackage Index
* @author Markus Malkusch <markus@malkusch.de>
* @copyright 2009 - 2010 Markus Malkusch
* @license http://php-autoloader.malkusch.de/en/license/ GPL 3
* @version SVN: $Id$
* @link http://php-autoloader.malkusch.de/en/
*/
/**
* The parent class is needed.
*/
InternalAutoloader::getInstance()->registerClass('AutoloaderIndex_File', dirname(__FILE__) . '/AutoloaderIndex_File.php');
/**
* Implements AutoloaderIndex_File with PHP code
*
* This index is working in every PHP environment. It should be fast enough
* for most applications. The index is a file in the temporary directory.
* The content of this file is PHP code which produces the index.
*
* This implementation uses eval() to execute the code of the index file.
* If other users have access to the index file your application might
* easily compromitted by this index. This index should really not be used!
*
* This implementation is threadsafe.
*
* @category PHP
* @package Autoloader
示例3:
* @category PHP
* @package Autoloader
* @subpackage Index
* @author Markus Malkusch <markus@malkusch.de>
* @copyright 2009 - 2010 Markus Malkusch
* @license http://php-autoloader.malkusch.de/en/license/ GPL 3
* @version SVN: $Id$
* @link http://php-autoloader.malkusch.de/en/
*/
namespace malkusch\autoloader;
/**
* These classes must be loaded.
*/
InternalAutoloader::getInstance()->registerClass('AutoloaderIndexFilter', __DIR__ . '/AutoloaderIndexFilter.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_Index_Filter_RelativePath_InvalidBasePath', __DIR__ . '/exception/AutoloaderException_Index_Filter_RelativePath_InvalidBasePath.php');
/**
* Transforms absolute paths into relative paths and vice versa
*
* @category PHP
* @package Autoloader
* @subpackage Index
* @author Markus Malkusch <markus@malkusch.de>
* @license http://php-autoloader.malkusch.de/en/license/ GPL 3
* @version Release: 1.12
* @link http://php-autoloader.malkusch.de/en/
* @see AutoloaderIndex::addFilter()
* @see AutoloaderIndex::getPath()
* @see AutoloaderIndex::setPath()
*/
class AutoloaderIndexFilter_RelativePath implements AutoloaderIndexFilter
示例4: dirname
* along with this program.
* If not, see <http://php-autoloader.malkusch.de/en/license/>.
*
* @category PHP
* @package Autoloader
* @subpackage Exception
* @author Markus Malkusch <markus@malkusch.de>
* @copyright 2009 - 2010 Markus Malkusch
* @license http://php-autoloader.malkusch.de/en/license/ GPL 3
* @version SVN: $Id$
* @link http://php-autoloader.malkusch.de/en/
*/
/**
* The parent class must be loaded.
*/
InternalAutoloader::getInstance()->registerClass('AutoloaderException', dirname(__FILE__) . '/AutoloaderException.php');
/**
* Raised if searching for a class fails
*
* @category PHP
* @package Autoloader
* @subpackage Exception
* @author Markus Malkusch <markus@malkusch.de>
* @license http://php-autoloader.malkusch.de/en/license/ GPL 3
* @version Release: 1.11
* @link http://php-autoloader.malkusch.de/en/
* @see Autoloader::searchPath()
*/
class AutoloaderException_SearchFailed extends AutoloaderException
{
private $_class = '';
示例5:
*
* @category PHP
* @package Autoloader
* @subpackage Index
* @author Markus Malkusch <markus@malkusch.de>
* @copyright 2009 - 2010 Markus Malkusch
* @license http://php-autoloader.malkusch.de/en/license/ GPL 3
* @version SVN: $Id$
* @link http://php-autoloader.malkusch.de/en/
*/
namespace malkusch\autoloader;
/**
* The parent class is needed.
*/
InternalAutoloader::getInstance()->registerClass('AutoloaderIndex_File', __DIR__ . '/AutoloaderIndex_File.php');
/**
* Implements AutoloaderIndex_File with a CSV file
*
* This index is working in every PHP environment. It should be fast enough
* for most applications. The index is a file in the temporary directory.
* The content of this file is a CSV file.
*
* This implementation is threadsafe.
*
* @category PHP
* @package Autoloader
* @subpackage Index
* @author Markus Malkusch <markus@malkusch.de>
* @license http://php-autoloader.malkusch.de/en/license/ GPL 3
* @version Release: 1.12
示例6:
*
* @category PHP
* @package Autoloader
* @subpackage Exception
* @author Markus Malkusch <markus@malkusch.de>
* @copyright 2009 - 2010 Markus Malkusch
* @license http://php-autoloader.malkusch.de/en/license/ GPL 3
* @version SVN: $Id$
* @link http://php-autoloader.malkusch.de/en/
*/
namespace malkusch\autoloader;
/**
* The parent class must be loaded.
*/
InternalAutoloader::getInstance()->registerClass('AutoloaderException_Configuration_Setting', __DIR__ . '/AutoloaderException_Configuration_Setting.php');
/**
* Object creation error
*
* @category PHP
* @package Autoloader
* @subpackage Exception
* @author Markus Malkusch <markus@malkusch.de>
* @license http://php-autoloader.malkusch.de/en/license/ GPL 3
* @version Release: 1.12
* @link http://php-autoloader.malkusch.de/en/
* @see AutoloaderConfiguration::getObject()
*/
class AutoloaderException_Configuration_Setting_Object extends AutoloaderException_Configuration_Setting
{
}
开发者ID:malkusch,项目名称:php-autoloader,代码行数:31,代码来源:AutoloaderException_Configuration_Setting_Object.php
示例7: dirname
* If not, see <http://php-autoloader.malkusch.de/en/license/>.
*
* @category PHP
* @package Autoloader
* @subpackage Index
* @author Markus Malkusch <markus@malkusch.de>
* @copyright 2009 - 2010 Markus Malkusch
* @license http://php-autoloader.malkusch.de/en/license/ GPL 3
* @version SVN: $Id: AutoloaderIndex_PDO.php,v 1.5 2011/01/11 14:25:31 nicke Exp $
* @link http://php-autoloader.malkusch.de/en/
*/
/**
* The parent class is needed.
*/
InternalAutoloader::getInstance()->registerClass('AutoloaderIndex', dirname(__FILE__) . '/AutoloaderIndex.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_Index_NotFound', dirname(__FILE__) . '/exception/AutoloaderException_Index_NotFound.php');
/**
* Implements AutoloaderIndex with PDO
*
* This index uses a PDO object to store its data in any
* database wich understands SQL. There is no need to
* create any table. The index creates its structure by itself.
*
* @category PHP
* @package Autoloader
* @subpackage Index
* @author Markus Malkusch <markus@malkusch.de>
* @license http://php-autoloader.malkusch.de/en/license/ GPL 3
* @version Release: 1.11
* @link http://php-autoloader.malkusch.de/en/
* @see Autoloader::setIndex()
示例8: dirname
*
* @category PHP
* @package Autoloader
* @subpackage Parser
* @author Markus Malkusch <markus@malkusch.de>
* @copyright 2009 - 2010 Markus Malkusch
* @license http://php-autoloader.malkusch.de/en/license/ GPL 3
* @version SVN: $Id: AutoloaderFileParser.php,v 1.4 2011/01/11 14:25:31 nicke Exp $
* @link http://php-autoloader.malkusch.de/en/
*/
/**
* These classes must be loaded.
*/
InternalAutoloader::getInstance()->registerClass('AutoloaderException_Parser_IO', dirname(__FILE__) . '/exception/AutoloaderException_Parser_IO.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderFileParser_Tokenizer', dirname(__FILE__) . '/AutoloaderFileParser_Tokenizer.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderFileParser_RegExp', dirname(__FILE__) . '/AutoloaderFileParser_RegExp.php');
/**
* An abstract parser for class definitions
*
* An implementation of this class should be able to parse a file and
* find a class definition.
*
* @category PHP
* @package Autoloader
* @subpackage Parser
* @author Markus Malkusch <markus@malkusch.de>
* @license http://php-autoloader.malkusch.de/en/license/ GPL 3
* @version Release: 1.11
* @link http://php-autoloader.malkusch.de/en/
* @see Autoloader::searchPath()
*/
示例9:
*
* @category PHP
* @package Autoloader
* @subpackage FileIterator
* @author Markus Malkusch <markus@malkusch.de>
* @copyright 2009 - 2010 Markus Malkusch
* @license http://php-autoloader.malkusch.de/en/license/ GPL 3
* @version SVN: $Id$
* @link http://php-autoloader.malkusch.de/en/
*/
namespace malkusch\autoloader;
/**
* This class must be loaded.
*/
InternalAutoloader::getInstance()->registerClass('Autoloader', __DIR__ . '/../Autoloader.php');
/**
* Finds potential files with class definitions
*
* As AutoloaderFileIterator implements the Iterator interface iterating through
* a class path recursively is as simple as:
*
* <code>
* <?php
*
* foreach ($fileIterator as $path) {
*
* }
* </code>
*
* @category PHP
示例10:
* @category PHP
* @package Autoloader
* @subpackage Parser
* @author Markus Malkusch <markus@malkusch.de>
* @copyright 2009 - 2010 Markus Malkusch
* @license http://php-autoloader.malkusch.de/en/license/ GPL 3
* @version SVN: $Id$
* @link http://php-autoloader.malkusch.de/en/
*/
namespace malkusch\autoloader;
/**
* These class must be loaded.
*/
InternalAutoloader::getInstance()->registerClass("AutoloaderException_Parser", __DIR__ . "/exception/AutoloaderException_Parser.php");
InternalAutoloader::getInstance()->registerClass("AutoloaderFileParser", __DIR__ . "/AutoloaderFileParser.php");
/**
* A reliable AutoloaderFileParser implementation which uses PHP's tokenizer
*
* @category PHP
* @package Autoloader
* @subpackage Parser
* @author Markus Malkusch <markus@malkusch.de>
* @license http://php-autoloader.malkusch.de/en/license/ GPL 3
* @version Release: 1.12
* @link http://php-autoloader.malkusch.de/en/
* @see Autoloader::searchPath()
* @see token_get_all()
*/
class AutoloaderFileParser_Tokenizer extends AutoloaderFileParser
{
示例11:
* @package Autoloader
* @subpackage Parser
* @author Markus Malkusch <markus@malkusch.de>
* @copyright 2009 - 2010 Markus Malkusch
* @license http://php-autoloader.malkusch.de/en/license/ GPL 3
* @version SVN: $Id$
* @link http://php-autoloader.malkusch.de/en/
*/
namespace malkusch\autoloader;
/**
* These classes must be loaded.
*/
InternalAutoloader::getInstance()->registerClass('AutoloaderException_Parser_IO', __DIR__ . '/exception/AutoloaderException_Parser_IO.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderFileParser_Tokenizer', __DIR__ . '/AutoloaderFileParser_Tokenizer.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderFileParser_RegExp', __DIR__ . '/AutoloaderFileParser_RegExp.php');
/**
* An abstract parser for class definitions
*
* An implementation of this class should be able to parse a file and
* find a class definition.
*
* @category PHP
* @package Autoloader
* @subpackage Parser
* @author Markus Malkusch <markus@malkusch.de>
* @license http://php-autoloader.malkusch.de/en/license/ GPL 3
* @version Release: 1.12
* @link http://php-autoloader.malkusch.de/en/
* @see Autoloader::searchPath()
*/
示例12: dirname
}
}
}
/**
* These classes are needed by the Autoloader itself.
* They have to be registered statically.
*/
InternalAutoloader::getInstance()->registerClass('AutoloaderIndex', dirname(__FILE__) . '/index/AutoloaderIndex.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_SearchFailed', dirname(__FILE__) . '/exception/AutoloaderException_SearchFailed.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_SearchFailed_EmptyClassPath', dirname(__FILE__) . '/exception/AutoloaderException_SearchFailed_EmptyClassPath.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_Include', dirname(__FILE__) . '/exception/AutoloaderException_Include.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_Include_FileNotExists', dirname(__FILE__) . '/exception/AutoloaderException_Include_FileNotExists.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_Include_ClassNotDefined', dirname(__FILE__) . '/exception/AutoloaderException_Include_ClassNotDefined.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_ClassPath', dirname(__FILE__) . '/exception/AutoloaderException_ClassPath.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_ClassPath_NotExists', dirname(__FILE__) . '/exception/AutoloaderException_ClassPath_NotExists.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_Index_NotDefined', dirname(__FILE__) . '/index/exception/AutoloaderException_Index_NotDefined.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_GuessPathFailed', dirname(__FILE__) . '/index/exception/AutoloaderException_GuessPathFailed.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderIndex_Dummy', dirname(__FILE__) . '/index/AutoloaderIndex_Dummy.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderIndex_PDO', dirname(__FILE__) . '/index/AutoloaderIndex_PDO.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderIndex_CSV', dirname(__FILE__) . '/index/AutoloaderIndex_CSV.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderIndex_IniFile', dirname(__FILE__) . '/index/AutoloaderIndex_IniFile.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderIndex_PHPArrayCode', dirname(__FILE__) . '/index/AutoloaderIndex_PHPArrayCode.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderIndex_SerializedHashtable', dirname(__FILE__) . '/index/AutoloaderIndex_SerializedHashtable.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderIndex_SerializedHashtable_GZ', dirname(__FILE__) . '/index/AutoloaderIndex_SerializedHashtable_GZ.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderFileParser', dirname(__FILE__) . '/parser/AutoloaderFileParser.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderFileIterator_Simple', dirname(__FILE__) . '/fileIterator/AutoloaderFileIterator_Simple.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderFileIterator_SimpleCached', dirname(__FILE__) . '/fileIterator/AutoloaderFileIterator_SimpleCached.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderFileIterator_PriorityList', dirname(__FILE__) . '/fileIterator/AutoloaderFileIterator_PriorityList.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_IndexBuildCollision', dirname(__FILE__) . '/exception/AutoloaderException_IndexBuildCollision.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderIndexFilter_RelativePath', dirname(__FILE__) . '/index/filter/AutoloaderIndexFilter_RelativePath.php');
示例13: OldPHPAPI
* @link http://php-autoloader.malkusch.de/en/
*/
namespace malkusch\autoloader;
/**
* fix PHP version
*/
include_once __DIR__ . "/../Autoloader/OldPHPAPI.php";
$__oldAPI = new OldPHPAPI();
$__oldAPI->checkAPI();
unset($__oldAPI);
/**
* Autoloader classes
*/
require __DIR__ . "/../Autoloader/Autoloader.php";
InternalAutoloader::getInstance()->registerClass("AutoloaderBuilder", __DIR__ . "/../Autoloader/AutoloaderBuilder.php");
/**
* Run the script
*/
$_script = new AutoloaderBuildScript();
$_script->run();
/**
* run() might kill the script. So the following code might not be executed.
* Who cares?
*/
unset($_script);
/**
* Build script
*
* @category PHP
* @package Autoloader
示例14:
* @category PHP
* @package Autoloader
* @subpackage Index
* @author Markus Malkusch <markus@malkusch.de>
* @copyright 2009 - 2010 Markus Malkusch
* @license http://php-autoloader.malkusch.de/en/license/ GPL 3
* @version SVN: $Id$
* @link http://php-autoloader.malkusch.de/en/
*/
namespace malkusch\autoloader;
/**
* These classes are needed.
*/
InternalAutoloader::getInstance()->registerClass('AutoloaderIndex', __DIR__ . '/AutoloaderIndex.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_Index_NotFound', __DIR__ . '/exception/AutoloaderException_Index_NotFound.php');
/**
* A dummy implementation without any persistent abilities
*
* There is no sense except testing in using this index.
*
* @category PHP
* @package Autoloader
* @subpackage Index
* @author Markus Malkusch <markus@malkusch.de>
* @license http://php-autoloader.malkusch.de/en/license/ GPL 3
* @version Release: 1.12
* @link http://php-autoloader.malkusch.de/en/
* @see Autoloader::setIndex()
* @see Autoloader::getIndex()
*/
示例15:
/**
* These classes are needed by the Autoloader itself.
* They have to be registered statically.
*/
InternalAutoloader::getInstance()->registerClass('AutoloaderIndex', __DIR__ . '/index/AutoloaderIndex.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_SearchFailed', __DIR__ . '/exception/AutoloaderException_SearchFailed.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_SearchFailed_EmptyClassPath', __DIR__ . '/exception/AutoloaderException_SearchFailed_EmptyClassPath.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_Include', __DIR__ . '/exception/AutoloaderException_Include.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_Include_FileNotExists', __DIR__ . '/exception/AutoloaderException_Include_FileNotExists.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_Include_ClassNotDefined', __DIR__ . '/exception/AutoloaderException_Include_ClassNotDefined.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_ClassPath', __DIR__ . '/exception/AutoloaderException_ClassPath.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_ClassPath_NotExists', __DIR__ . '/exception/AutoloaderException_ClassPath_NotExists.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_Index_NotDefined', __DIR__ . '/index/exception/AutoloaderException_Index_NotDefined.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_GuessPathFailed', __DIR__ . '/index/exception/AutoloaderException_GuessPathFailed.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderIndex_Dummy', __DIR__ . '/index/AutoloaderIndex_Dummy.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderIndex_PDO', __DIR__ . '/index/AutoloaderIndex_PDO.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderIndex_CSV', __DIR__ . '/index/AutoloaderIndex_CSV.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderIndex_IniFile', __DIR__ . '/index/AutoloaderIndex_IniFile.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderIndex_PHPArrayCode', __DIR__ . '/index/AutoloaderIndex_PHPArrayCode.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderIndex_SerializedHashtable', __DIR__ . '/index/AutoloaderIndex_SerializedHashtable.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderIndex_SerializedHashtable_GZ', __DIR__ . '/index/AutoloaderIndex_SerializedHashtable_GZ.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderIndex_Memcache', __DIR__ . '/index/AutoloaderIndex_Memcache.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderFileParser', __DIR__ . '/parser/AutoloaderFileParser.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderFileIterator_Simple', __DIR__ . '/fileIterator/AutoloaderFileIterator_Simple.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderFileIterator_SimpleCached', __DIR__ . '/fileIterator/AutoloaderFileIterator_SimpleCached.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderFileIterator_PriorityList', __DIR__ . '/fileIterator/AutoloaderFileIterator_PriorityList.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderException_IndexBuildCollision', __DIR__ . '/exception/AutoloaderException_IndexBuildCollision.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderIndexFilter_RelativePath', __DIR__ . '/index/filter/AutoloaderIndexFilter_RelativePath.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderConfiguration', __DIR__ . '/AutoloaderConfiguration.php');
InternalAutoloader::getInstance()->registerClass('AutoloaderLocale', __DIR__ . '/locale/AutoloaderLocale.php');