当前位置: 首页>>代码示例>>PHP>>正文


PHP instantiate_object函数代码示例

本文整理汇总了PHP中instantiate_object函数的典型用法代码示例。如果您正苦于以下问题:PHP instantiate_object函数的具体用法?PHP instantiate_object怎么用?PHP instantiate_object使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了instantiate_object函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: instantiate_object

 function &instance()
 {
     if (class_exists('debug_mock')) {
         $impl =& instantiate_object('debug_mock');
     } else {
         $impl =& instantiate_object('debug');
     }
     return $impl;
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:9,代码来源:debug.class.php

示例2: instance

	function & instance()
	{
		return instantiate_object('stats_search_phrase');
	}
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:4,代码来源:stats_search_phrase.class.php

示例3: instance

	function & instance()
	{	
		$obj =&	instantiate_object('access_policy');
		return $obj;
	}
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:5,代码来源:access_policy.class.php

示例4:

	function &instance()
	{
		$obj =&	instantiate_object('search_fetcher');
		return $obj;
	}
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:5,代码来源:search_fetcher.class.php

示例5: instance

 function & instance($cart_id = null, $handler = null)
 {
   $obj =& instantiate_object('cart', array($cart_id, $handler));
   return $obj;
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:5,代码来源:cart.class.php

示例6: instantiate_object

 function &instance($db_table_name)
 {
     $obj =& instantiate_object($db_table_name . '_db_table', '/core/db_tables/');
     return $obj;
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:5,代码来源:db_table_factory.class.php

示例7: instantiate_object

 function &instance()
 {
     $obj =& instantiate_object('request');
     return $obj;
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:5,代码来源:request.class.php

示例8: instantiate_object

 function &instance()
 {
   return instantiate_object('sys');
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:4,代码来源:sys.class.php

示例9: instance

	function & instance()
	{
		$obj =&	instantiate_object('full_text_indexer');
		return $obj;
	}
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:5,代码来源:full_text_indexer.class.php

示例10: array

	function &instance($driver = null)
	{
		$obj =&	instantiate_object('tree', array($driver));
		return $obj;
	}
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:5,代码来源:tree.class.php

示例11: instance

 function & instance($class_name)
 {
   include_class($class_name, '/core/model/search/normalizers/');
   $obj =&	instantiate_object($class_name);
   return $obj;
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:6,代码来源:search_text_normalizer_factory.class.php

示例12: instantiate_object

 function &instance()
 {
     $impl =& instantiate_object('debug_mock');
     return $impl;
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:5,代码来源:debug_mock.class.php

示例13: include_class

 function &instance($class_name)
 {
     include_class($class_name, '/core/model/site_objects/');
     $obj =& instantiate_object($class_name);
     return $obj;
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:6,代码来源:site_object_factory.class.php


注:本文中的instantiate_object函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。