本文整理汇总了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;
}
示例2: instance
function & instance()
{
return instantiate_object('stats_search_phrase');
}
示例3: instance
function & instance()
{
$obj =& instantiate_object('access_policy');
return $obj;
}
示例4:
function &instance()
{
$obj =& instantiate_object('search_fetcher');
return $obj;
}
示例5: instance
function & instance($cart_id = null, $handler = null)
{
$obj =& instantiate_object('cart', array($cart_id, $handler));
return $obj;
}
示例6: instantiate_object
function &instance($db_table_name)
{
$obj =& instantiate_object($db_table_name . '_db_table', '/core/db_tables/');
return $obj;
}
示例7: instantiate_object
function &instance()
{
$obj =& instantiate_object('request');
return $obj;
}
示例8: instantiate_object
function &instance()
{
return instantiate_object('sys');
}
示例9: instance
function & instance()
{
$obj =& instantiate_object('full_text_indexer');
return $obj;
}
示例10: array
function &instance($driver = null)
{
$obj =& instantiate_object('tree', array($driver));
return $obj;
}
示例11: instance
function & instance($class_name)
{
include_class($class_name, '/core/model/search/normalizers/');
$obj =& instantiate_object($class_name);
return $obj;
}
示例12: instantiate_object
function &instance()
{
$impl =& instantiate_object('debug_mock');
return $impl;
}
示例13: include_class
function &instance($class_name)
{
include_class($class_name, '/core/model/site_objects/');
$obj =& instantiate_object($class_name);
return $obj;
}