Commit b64846cf authored by metzlerd's avatar metzlerd
Browse files

Refactor classes for FrxDataSource

parent 4d33b4b6
......@@ -85,4 +85,18 @@ class Frx {
}
/**
* Forena Repository manager
* Class factory
* @return FrxRepoMan
*/
public static function RepoMan() {
static $o = '';
if (!$o) {
require_once 'FrxRepoMan.inc';
$o = new FrxRepoMan();
}
return $o;
}
}
\ No newline at end of file
......@@ -3,10 +3,10 @@
require_once('forena.common.inc');
/**
* @file
* Class that defines default methods for access control in an FrxDataProvider
* Class that defines default methods for access control in an FrxDataSource
*
*/
class FrxDataProvider{
class FrxDataSource{
public $conf;
public $block_path;
......
......@@ -7,7 +7,7 @@
*/
// Include Report renderer.
require_once('FrxReport.inc');
require_once('FrxDataProvider.inc');
require_once('FrxDataSource.inc');
class FrxReportGenerator {
......
......@@ -9,7 +9,7 @@
require_once 'Frx.inc';
require_once 'FrxReport.inc';
require 'FrxDocument.inc';
require_once('FrxDataProvider.inc');
require_once('FrxDataSource.inc');
require_once('FrxReportGenerator.inc');
require_once('FrxSQLQueryBuilder.inc');
require_once('FrxDrupalApplication.inc');
......
......@@ -6,7 +6,7 @@
* drupal connections.
*
*/
class FrxDrupal extends FrxDataProvider {
class FrxDrupal extends FrxDataSource {
/**
* Implements hooks into the drupal applications
*/
......
......@@ -5,6 +5,6 @@
* Implements a method for importing xml feeds available on the web
* @TODO: Implement the feed engine using curl
*/
class FrxFeedEngine extends FrxDataProvider {
class FrxFeedEngine extends FrxDataSource {
}
\ No newline at end of file
......@@ -8,7 +8,7 @@
* @author metzlerd
*
*/
class FrxFiles extends FrxDataProvider {
class FrxFiles extends FrxDataSource {
private $path;
public function __construct($conf, $repos_path) {
parent::__construct($conf, $repos_path);
......
......@@ -7,7 +7,7 @@
* In order to take advantage of XML support the following XML
*
*/
class FrxMSSQL extends FrxDataProvider {
class FrxMSSQL extends FrxDataSource {
private $db;
......
......@@ -7,7 +7,7 @@
* In order to take advantage of XML support the following XML
*
*/
class FrxOracle extends FrxDataProvider {
class FrxOracle extends FrxDataSource {
private $db;
......
......@@ -6,7 +6,7 @@
*
*/
class FrxPDO extends FrxDataProvider {
class FrxPDO extends FrxDataSource {
private $db;
......
......@@ -7,7 +7,7 @@
* In order to take advantage of XML support the following XML
*
*/
class FrxPostgres extends FrxDataProvider {
class FrxPostgres extends FrxDataSource {
private $db;
......
......@@ -25,12 +25,12 @@ class in order to use the default behavior for this method.</td>
<tr>
<th style="width: 30%;" align="left" valign="top">access($right)</th>
<td style="width: 70%;" align="left" valign="top" scope="col">Given a permissions string, retrun a user data block.&#xA0; Extend the
FrxDataProvider class in order to use the default behavior for this method.</td>
FrxDataSource class in order to use the default behavior for this method.</td>
</tr>
<tr>
<th style="width: 30%;" align="left" valign="top">load_block($block_name)</th>
<td style="width: 70%;" align="left" valign="top" scope="col">Load the access controls and block method for the named block.&#xA0;
Extend the FrxDataProvider class in order to use the default behavior for this method.</td>
Extend the FrxDataSource class in order to use the default behavior for this method.</td>
</tr>
<tr>
<th style="width: 30%;" align="left" valign="top">data($block_name)</th>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment