當前位置: 首頁>>代碼示例>>PHP>>正文


PHP JAdapter類代碼示例

本文整理匯總了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'));
 }
開發者ID:nguyen1986vn,項目名稱:atj25,代碼行數:10,代碼來源:JAdapterTest.php

示例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'));
 }
開發者ID:nibra,項目名稱:joomla-platform,代碼行數:10,代碼來源:JAdapterTest.php

示例3: __construct

 public function __construct($basepath, $classprefix = null, $adapterfolder = null)
 {
     JAdapter::__construct(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_xmap', 'JInstaller');
 }
開發者ID:acculitx,項目名稱:fleetmatrixsite,代碼行數:4,代碼來源:installer.php

示例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');
 }
開發者ID:educakanchay,項目名稱:educared,代碼行數:14,代碼來源:installer.php

示例5: __construct

 /**
  * Constructor
  *
  * @since   11.1
  */
 public function __construct()
 {
     parent::__construct(__DIR__, 'JInstaller');
 }
開發者ID:interfaceslivres,項目名稱:ccmd-ufpb,代碼行數:9,代碼來源:installer.php

示例6: __construct

 /**
  * Constructor
  *
  * @access protected
  */
 public function __construct()
 {
     parent::__construct(dirname(__FILE__), 'jaExtUploader');
 }
開發者ID:vuchannguyen,項目名稱:hoctap,代碼行數:9,代碼來源:uploader.php

示例7: __construct

 /**
  * Constructor
  *
  * @since   11.1
  */
 public function __construct()
 {
     parent::__construct(dirname(__FILE__), 'JInstaller');
 }
開發者ID:christianesperar,項目名稱:joomla-example,代碼行數:9,代碼來源:installer.php

示例8: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     // adapter base path, class prefix
     parent::__construct(dirname(__FILE__), 'JUpdater');
 }
開發者ID:joebushi,項目名稱:joomla,代碼行數:8,代碼來源:updater.php

示例9: __construct

 /**
  * Constructor
  *
  * @since   3.1
  */
 public function __construct()
 {
     parent::__construct(__DIR__, 'JInstallerAdapter', __DIR__ . '/adapter');
     // Override the default adapter folder
     $this->_adapterfolder = 'adapter';
 }
開發者ID:JonatanLiecheski,項目名稱:MeditecJoomla,代碼行數:11,代碼來源:installer.php

示例10:

 /**
  * PHP style constructor!
  */
 function __construct()
 {
     // base directory is here (so here/adapters)
     // and the prefix is 'downloader'
     parent::__construct(dirname(__FILE__), 'Downloader');
 }
開發者ID:planetangel,項目名稱:Planet-Angel-Website,代碼行數:9,代碼來源:downloader.php

示例11: __construct

 public function __construct()
 {
     parent::__construct(dirname(__FILE__), 'JalangHelperTranslator');
     $this->params = JComponentHelper::getParams('com_jalang');
 }
開發者ID:thumbs-up-sign,項目名稱:TuVanDuAn,代碼行數:5,代碼來源:translator.php


注:本文中的JAdapter類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。