* @package generis */ abstract class common_uri_AbstractUriProvider implements common_uri_UriProvider { // --- ASSOCIATIONS --- // --- ATTRIBUTES --- /** * The database driver the UriProvider is using. * * @access protected * @var string */ protected $driver = ''; // --- OPERATIONS --- /** * Returns the database driver that the UriProvider implementation is * using. * * @access public * @author Jerome Bogaerts, * @return string */ public function getDriver() { $returnValue = (string) ''; $returnValue = $this->driver; return (string) $returnValue; } /** * Sets the database driver that will be used for further URI generations. * * @access public * @author Jerome Bogaerts, * @param string driver A driver name such as 'mysql', 'postgres', ... * @return void */ public function setDriver($driver) { $this->driver = strtolower($driver); } /** * Instantiates an instance of UriProvider for a given database driver. * * @access public * @author Jerome Bogaerts, * @param string driver A driver name such as 'mysql', 'postgres', ... * @return mixed */ public function __construct($driver) { $this->setDriver($driver); } } /* end of abstract class common_uri_AbstractUriProvider */