本文整理汇总了PHP中JAdapter类的典型用法代码示例。如果您正苦于以下问题:PHP JAdapter类的具体用法?PHP JAdapter怎么用?PHP JAdapter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了JAdapter类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testLoadAllAdapters
/**
* @todo Implement testLoadAllAdapters().
*/
public function testLoadAllAdapters()
{
require_once JPATH_BASE . '/libraries/joomla/base/adapterinstance.php';
$this->object = new JAdapter(dirname(__FILE__), 'Test', 'adapters');
$this->object->loadAllAdapters();
$this->assertThat($this->object->getAdapter('Testadapter4'), $this->isInstanceOf('TestTestadapter4'));
}
示例2: testLoadAllAdapters
/**
* @todo Implement testLoadAllAdapters().
*/
public function testLoadAllAdapters()
{
require_once JPATH_PLATFORM . '/joomla/base/adapterinstance.php';
$this->object = new JAdapter(JUnitHelper::normalize(dirname(__FILE__)), 'Test', 'TestAdapters');
$this->object->loadAllAdapters();
$this->assertThat($this->object->getAdapter('Testadapter4'), $this->isInstanceOf('TestTestadapter4'));
}
示例3: __construct
public function __construct($basepath, $classprefix = null, $adapterfolder = null)
{
JAdapter::__construct(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_xmap', 'JInstaller');
}
示例4: __construct
/**
* Constructor
*
* @param string $basepath Base Path of the adapters
* @param string $classprefix Class prefix of adapters
* @param string $adapterfolder Name of folder to append to base path
*
* @since 3.1
*/
public function __construct($basepath = __DIR__, $classprefix = 'JInstallerAdapter', $adapterfolder = 'adapter')
{
parent::__construct($basepath, $classprefix, $adapterfolder);
$this->extension = JTable::getInstance('extension');
}
示例5: __construct
/**
* Constructor
*
* @since 11.1
*/
public function __construct()
{
parent::__construct(__DIR__, 'JInstaller');
}
示例6: __construct
/**
* Constructor
*
* @access protected
*/
public function __construct()
{
parent::__construct(dirname(__FILE__), 'jaExtUploader');
}
示例7: __construct
/**
* Constructor
*
* @since 11.1
*/
public function __construct()
{
parent::__construct(dirname(__FILE__), 'JInstaller');
}
示例8: __construct
/**
* Constructor
*/
public function __construct()
{
// adapter base path, class prefix
parent::__construct(dirname(__FILE__), 'JUpdater');
}
示例9: __construct
/**
* Constructor
*
* @since 3.1
*/
public function __construct()
{
parent::__construct(__DIR__, 'JInstallerAdapter', __DIR__ . '/adapter');
// Override the default adapter folder
$this->_adapterfolder = 'adapter';
}
示例10:
/**
* PHP style constructor!
*/
function __construct()
{
// base directory is here (so here/adapters)
// and the prefix is 'downloader'
parent::__construct(dirname(__FILE__), 'Downloader');
}
示例11: __construct
public function __construct()
{
parent::__construct(dirname(__FILE__), 'JalangHelperTranslator');
$this->params = JComponentHelper::getParams('com_jalang');
}