- 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 contentPublish
public class contentPublish extends AdministrationPage
content.publish.php #17The Publish page is where the majority of an Authors time will be spent in Symphony with adding, editing and removing entries from Sections. This Page controls the entries table as well as the Entry creation screens.
Properties
mixed $_errors
Methods
void __actionEdit(Section $section, Entry $entry, $fields)
$context,
Just prior to rendering of an Entry edit form.
Parameters
void __actionIndex(
$context, $options)
Allows an extension to modify the existing options for this page's
With Selected menu. If the $options
parameter is an empty array,
the 'With Selected' menu will not be rendered.
Parameters
void __actionNew()
void __switchboard(
$type)
The __switchboard
function acts as a controller to display content
based off the $type. By default, the $type
is 'view' but it can be set
also set to 'action'. The $type
is prepended by __ and the context is
append to the $type to create the name of the function that will provide
that logic. For example, if the $type was action and the context of the
current page was new, the resulting function to be called would be named
__actionNew()
. If an action function is not provided by the Page, this function
returns nothing, however if a view function is not provided, a 404 page
will be returned.
Parameters
void __viewEdit(Section $section, Entry $entry, $fields)
$context,
Creation of an Entry. New Entry object is provided.
Parameters
void __viewIndex()
void __viewNew(Section $section, Entry $entry, $fields)
$context,
Editing an entry. Entry object is provided.
Parameters
void action()
This function is called when $_REQUEST
contains a key of 'action'.
Any logic that needs to occur immediately for the action to complete
should be contained within this function. By default this calls the
__switchboard
with the type set to 'action'.
See Also
array findParentRelatedEntries(
$field_id, $entry_id)
Find related entries for the current field. Requires the column names
to be entry_id
and relation_id
as with the Select Box Link
array findRelatedEntries(
$field_id, $entry_id)
Find related entries from a linking field's data table. Requires the
column names to be entry_id
and relation_id
as with the Select Box Link
String isFieldHidden(Field $field)
Check whether a field is a Select Box Link and is hidden
void sort(
$sort, $order, $params)
void view()
Called to build the content for the page. This function immediately calls
__switchboard()
which acts a bit of a controller to show content based on
off a type, such as 'view' or 'action'. AdministrationPages
can override this
function to just display content if they do not need the switchboard functionality