Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
forena
Commits
b64846cf
Commit
b64846cf
authored
Nov 24, 2012
by
metzlerd
Browse files
Refactor classes for FrxDataSource
parent
4d33b4b6
Changes
12
Hide whitespace changes
Inline
Side-by-side
Frx.inc
View file @
b64846cf
...
...
@@ -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
FrxData
Provider
.inc
→
FrxData
Source
.inc
View file @
b64846cf
...
...
@@ -3,10 +3,10 @@
require_once
(
'forena.common.inc'
);
/**
* @file
* Class that defines default methods for access control in an FrxData
Provider
* Class that defines default methods for access control in an FrxData
Source
*
*/
class
FrxData
Provider
{
class
FrxData
Source
{
public
$conf
;
public
$block_path
;
...
...
FrxReportGenerator.inc
View file @
b64846cf
...
...
@@ -7,7 +7,7 @@
*/
// Include Report renderer.
require_once
(
'FrxReport.inc'
);
require_once
(
'FrxData
Provider
.inc'
);
require_once
(
'FrxData
Source
.inc'
);
class
FrxReportGenerator
{
...
...
forena.common.inc
View file @
b64846cf
...
...
@@ -9,7 +9,7 @@
require_once
'Frx.inc'
;
require_once
'FrxReport.inc'
;
require
'FrxDocument.inc'
;
require_once
(
'FrxData
Provider
.inc'
);
require_once
(
'FrxData
Source
.inc'
);
require_once
(
'FrxReportGenerator.inc'
);
require_once
(
'FrxSQLQueryBuilder.inc'
);
require_once
(
'FrxDrupalApplication.inc'
);
...
...
plugins/FrxDrupal.inc
View file @
b64846cf
...
...
@@ -6,7 +6,7 @@
* drupal connections.
*
*/
class
FrxDrupal
extends
FrxData
Provider
{
class
FrxDrupal
extends
FrxData
Source
{
/**
* Implements hooks into the drupal applications
*/
...
...
plugins/FrxFeedEngine.inc
View file @
b64846cf
...
...
@@ -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
FrxData
Provider
{
class
FrxFeedEngine
extends
FrxData
Source
{
}
\ No newline at end of file
plugins/FrxFiles.inc
View file @
b64846cf
...
...
@@ -8,7 +8,7 @@
* @author metzlerd
*
*/
class
FrxFiles
extends
FrxData
Provider
{
class
FrxFiles
extends
FrxData
Source
{
private
$path
;
public
function
__construct
(
$conf
,
$repos_path
)
{
parent
::
__construct
(
$conf
,
$repos_path
);
...
...
plugins/FrxMSSQL.inc
View file @
b64846cf
...
...
@@ -7,7 +7,7 @@
* In order to take advantage of XML support the following XML
*
*/
class
FrxMSSQL
extends
FrxData
Provider
{
class
FrxMSSQL
extends
FrxData
Source
{
private
$db
;
...
...
plugins/FrxOracle.inc
View file @
b64846cf
...
...
@@ -7,7 +7,7 @@
* In order to take advantage of XML support the following XML
*
*/
class
FrxOracle
extends
FrxData
Provider
{
class
FrxOracle
extends
FrxData
Source
{
private
$db
;
...
...
plugins/FrxPDO.inc
View file @
b64846cf
...
...
@@ -6,7 +6,7 @@
*
*/
class
FrxPDO
extends
FrxData
Provider
{
class
FrxPDO
extends
FrxData
Source
{
private
$db
;
...
...
plugins/FrxPostgres.inc
View file @
b64846cf
...
...
@@ -7,7 +7,7 @@
* In order to take advantage of XML support the following XML
*
*/
class
FrxPostgres
extends
FrxData
Provider
{
class
FrxPostgres
extends
FrxData
Source
{
private
$db
;
...
...
repos/reports/help/plugins.frx
View file @
b64846cf
...
...
@@ -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.
 
Extend the
FrxData
Provider
class in order to use the default behavior for this method.
</td>
FrxData
Source
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.
 
Extend the FrxData
Provider
class in order to use the default behavior for this method.
</td>
Extend the FrxData
Source
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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment