- Symphony 2.3.5
-
› assets
14 -
› boot
11 -
› content
24 -
› core
23 -
› cryptography
4 -
› email-gateways
3 -
› global
39 -
› interface
6 -
› toolkit
68 - Delegates94
- Deprecated30
Versions
- 2.7.9
- 2.7.8
- 2.7.7
- 2.7.6
- 2.7.5
- 2.7.3
- 2.7.2
- 2.7.10
- 2.7.1
- 2.7.0
- 2.6.9
- 2.6.8
- 2.6.7
- 2.6.6
- 2.6.5
- 2.6.4
- 2.6.3
- 2.6.2
- 2.6.11
- 2.6.10
- 2.6.1
- 2.6.0
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2
Options
Page HTMLPage AdministrationPage ResourcesPage contentBlueprintsDatasources
public class contentBlueprintsDatasources extends ResourcesPage
content.blueprintsdatasources.php #15The Datasource Editor page allows a developer to create new datasources from the four Symphony types, Section, Authors, Navigation, Dynamic XML, and Static XML
Properties
mixed $_errors
Methods
void __actionEdit()
void __actionIndex(
$resource_type)
This function is called from the resources index when a user uses the
With Selected, or Apply, menu. The type of resource is given by
$resource_type
. At this time the only two valid values,
RESOURCE_TYPE_EVENT
or RESOURCE_TYPE_DATASOURCE
.
The function handles 'delete', 'attach', 'detach', 'attach all', 'detach all' actions.
Parameters
void __actionNew(
$context, $file)
Prior to deleting the Datasource file. Target file path is provided.
Parameters
void __appendAuthorFilter(
$wrapper, $h4_label, $name, $value, $templateOnly)
void __form()
void __formAction()
void __injectIncludedElements(
$shell, $elements)
void __injectVarList(
$shell, $vars)
static array|boolean __isValidURL(
$url, $timeout, $error)
Given a $url
and $timeout
, this function will use the Gateway
class to determine that it is a valid URL and returns successfully
before the $timeout
. If it does not, an error message will be
returned, otherwise true.
Parameters
Returns
Returns an array with the 'data' if it is a valid URL, otherwise a string containing an error message.
void __viewEdit()
void __viewIndex(
$resource_type)
This function contains the minimal amount of logic for generating the
index table of a given $resource_type
. The table has name, source, pages
release date and author columns. The values for these columns are determined
by the resource's about()
method.
As Datasources types can be installed using Providers, the Source column
can be overridden with a Datasource's getSourceColumn
method (if it exists).
Parameters
void __viewInfo()
void __viewNew()
static void injectAboutInformation(
$shell, $details)
static void injectFilters(
$shell, $filters, $context, $file, $previous_file)
After editing the Datasource, the path to the Datasource file is provided