- Symphony 2.3.6
-
› 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
Deprecated in Symphony 2.3.6
References in the API marked as deprecated should not be used for new integrations. Existing implementations should seek to find alternative methods/functions where possible.
Classes
::MD5
MD5 is a cryptography class for hashing and comparing messages using the MD5-Algorithm
::SHA1
SHA1 is a cryptography class for hashing and comparing messages using the SHA1-Algorithm
Fields
Entry::$creationDate
An ISO 8601 representation of when this Entry was created
eg. 2004-02-12T15:19:21+00:00
Page::$_status
The HTTP status code of the page using the HTTP_STATUSES
constants
Methods
Administration::saveConfig
Writes the current Symphony Configuration object to a file in the CONFIG directory. This will overwrite any existing configuration file every time this function is called.
AdministrationPage::__fetchAvailablePageTypes
Returns all the page types that exist in this Symphony install. There are 5 default system page types, and new types can be added by Developers via the Page Editor.
DateTimeObj::getTimeAgo
A wrapper for get, this function will return a HTML string representing
an <abbr>
element which contained the formatted date of now, and an
RFC 2822 formatted date (Thu, 21 Dec 2000 16:01:07 +0200) as the title
attribute. Symphony uses this in it's status messages so that it can
dynamically update how long ago the action took place using Javascript.
EmailHelper::getMimeType
Gets mime type of a file.
For email attachments, the mime type is very important.
Uses the PHP 5.3 function finfo_open
when available, otherwise falls
back to using a mapping of known of common mimetypes. If no matches
are found application/octet-stream
will be returned.
Extension::about
The about method allows an extension to provide
information about itself as an associative array. eg.
'name' => 'Name of Extension',
'version' => '1.8',
'release-date' => 'YYYY-MM-DD',
'author' => array(
'name' => 'Author Name',
'website' => 'Author Website',
'email' => 'Author Email'
),
'description' => 'A description about this extension'
ExtensionManager::about
This function will load an extension's meta information given the extension
$name
. Since Symphony 2.3, this function will look for an extension.meta.xml
file inside the extension's folder. If this is not found, it will initialise
the extension and invoke the about()
function. By default this extension will
return an associative array display the basic meta data about the given extension.
If the $rawXML
parameter is passed true, and the extension has a extension.meta.xml
file, this function will return DOMDocument
of the file.
Field::buildDSRetrivalSQL
Field::createSectionAssociation
Create an association between a section and a field.
Field::removeSectionAssociation
Permanently remove a section association for this field in the database.
FieldManager::fetchTypes
Returns an array of all available field handles discovered in the
TOOLKIT . /fields
or EXTENSIONS . /{}/fields
.
FrontendPage::fetchPageTypes
Given a page ID, return it's type from tbl_pages
FrontendPage::resolvePageFileLocation
Resolves the path to this page's XSLT file. The Symphony convention
is that they are stored in the PAGES
folder. If this page has a parent
it will be as if all the / in the URL have been replaced with _. ie.
/articles/read/ will produce a file articles_read.xsl
General::sendEmail
Allows you to send emails. It initializes the core email class.
Section::fetchFilterableFields
Returns an array of all the fields that can be filtered.
Symphony::initialiseCookie
Setter for $Cookie
. This will use PHP's parseurl
function on the current URL to set a cookie using the cookieprefix
defined in the Symphony configuration. The cookie will last two
weeks.
This function also defines two constants, __SYM_COOKIE_PATH__
and __SYM_COOKIE_PREFIX__
.
Symphony::resolvePage
Given the $page_id
and a $column
, this function will return an
array of the given $column
for the Page, including all parents.
Symphony::resolvePagePath
Given the $page_id
, return the complete path to the
current page.
Symphony::resolvePageTitle
Given the $page_id
, return the complete title of the
current page.
Widget::wrapFormElementWithError
Will wrap a <div>
around a desired element to trigger the default
Symphony error styling.
contentBlueprintsPages::typeUsed
Returns boolean if a the given $type
is set for
the given $page_id
.
Constants
::DS_FILTER_AND
A constant that represents if this filter is an AND filter in which an Entry must match all these filters
::DS_FILTER_OR
A constant that represents if this filter is an OR filter in which an entry can match any or all of these filters
Functions
::mysql_date_diff
This function, give two DateTime objects, will return the difference between the two in hours and minutes, in a format suitable for MySQL.
This function does not provide full date_diff functionality, it's a stopgap for PHP5.2 support.