Back to Adapter class

Method __construct

public
__construct
(mixed $basepath, mixed $classprefix = null, mixed $adapterfolder = null)
Constructor
Parameters
  • string $basepath Base Path of the adapters
  • string $classprefix Class prefix of adapters
  • string $adapterfolder Name of folder to append to base path
Since
  • 1.6
Class: Adapter
Project: Joomla

Method __construct - Source code

/**
 * 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   1.6
 */
public function __construct($basepath, $classprefix = null, $adapterfolder = null)
{
    $this->_basepath = $basepath;
    $this->_classprefix = $classprefix ?: 'J';
    $this->_adapterfolder = $adapterfolder ?: 'adapters';
    $this->_db = Factory::getDbo();
}