- Symphony 2.2.1
-
› boot
9 -
› core
22 -
› email-gateways
3 -
› toolkit
66 -
› Unknown
33 - Delegates83
- 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
public class SectionManager
class.sectionmanager.php #13The SectionManager is responsible for managing all Sections in a Symphony
installation. The SectionManager contains basic CRUD operations for Sections.
Sections are stored in the database in tbl_sections
.
Properties
mixed $_Parent
The parent class who initialised the SectionManager, usually a Symphony instance, either Frontend or Administration
Methods
void __construct(
$parent)
The construct function sets the parent variable of the SectionManager
Parameters
integer add(
$settings)
Takes an associative array of Section settings and creates a new
entry in the tbl_sections
table, returning the ID of the Section.
The ID of the section is generated using auto_increment
Parameters
Section create()
Returns a new Section object, using the SectionManager as the Section's $parent.
void delete(
$section_id)
Deletes a Section by Section ID, removing all entries, fields, the Section and then any Section Associations in that order
Parameters
boolean edit(
$section_id, $settings)
Updates an existing Section given it's ID and an associative array of settings. The array does not have to contain all the settings for the Section as there is no deletion of settings prior to updating the Section
Parameters
Section|array fetch(
$section_id, $order, $sortfield)
Returns a Section object by ID, or returns an array of Sections if the Section ID was omitted. If the Section ID is omitted, it is possible to sort the Sections by providing a sort order and sort field. By default, Sections will be order in ascending order by their name
Parameters
Returns
A Section object or an array of Section objects
integer fetchIDFromHandle(
$handle)
Return a Section ID by the handle
Parameters
Returns
The Section ID
void flush()
This function will empty the $_pool array.