\Components\Commerce\Affiliates \Components\Commerce\Affiliates\Administrators \Components\Commerce\Affiliates\Commissions \Components\Commerce\Affiliates\Payments \Components\Commerce\Configuration\PaymentMethods \Components\Commerce\Configuration\ShippingMethods \Components\Commerce\Discounts \Components\Commerce\Products \Components\Commerce\Products\Brands \Components\Commerce\Products\Categories \Components\Commerce\Products\Inventory \Components\Commerce\RecurringSales \Components\Commerce\RecurringSales\StoredCards \Components\Commerce\Sales \Components\Commerce\Sales\Items \Components\Commerce\Sales\Receipts \Components\Commerce\Sales\Receipts\Allocations \Components\Customers\Contacts \Components\Customers\Contacts\Relationships \Components\Customers\Contacts\Relationships\Types \Components\Customers\Groups \Components\Marketing\EmailMarketing \Components\Marketing\Events \Components\Marketing\Events\Attendees \Components\Marketing\Events\Locations \Components\Settings\Administrators \Components\Settings\Domains \Components\Website\Analytics\Sessions \Components\Website\Comments \Components\Website\Designs \Components\Website\Media \Components\Website\Pages \Components\Website\Pages\Forms \Components\Website\Posts \Components\Website\Posts\Categories \Framework\Assets\CSS \Framework\Assets\JavaScript \Framework\Caching\FileBased \Framework\Data\Util \Framework\Date \Framework\DOM\Renderer \Framework\HTML\Converters \Framework\HTTP\Cookies \Framework\HTTP\Redirection \Framework\HTTP\Request \Framework\HTTP\Session \Framework\HTTP\UserAgent \Framework\I18N\CompanyTypes \Framework\I18N\Countries \Framework\I18N\Languages \Framework\Network\GeoIP
.
.
.
Methods

\Components\Website\Pages::

Class Methods

The following static methods are available on this class:
array current()
Description
Returns the current page
Parameters
none
Return
Page row corresponding to the current page visited
string currentGetColumn($strColumn)
Description
Retreives an attribute for the current page
Parameters
$strColumn
string
Return
Value of the attribute
bool currentIsChildPageOf($strPageId, $bIncludePage)
Description
Returns whether or not the current page is a child page of $strPageId
Parameters
$strPageId
string
$bIncludePage
bool
If true, returns true if $strPageId == currentPageId()
Return
bool
string currentPageId()
Description
Returns the current page id

'/' when visiting the home page '/about/' when visiting about page etc.
Parameters
none
Return
Page id corresponding to the current page visited
string currentPageQuery()
Description
If the page is handling a child 404 request, the page query returns the child part
Parameters
none
Return
Query
bool delete($strKeyValue, $bDeleteMedia, $strReason)
Description
Deletes a record from the database
Parameters
$strKeyValue
string|array
$bDeleteMedia
bool
$strReason
mixed
Return
bool
array get($strKey)
Description
Returns an entity
Parameters
$strKey
mixed
Value of the primary key
Return
Entity
array getAll($arrProperties)
Description
Return a set of records from the database
Parameters
$arrProperties
array
Return
Array of Pages
array getChildren($strId, $arrProperties)
Description
Returns all pages nested directly underneath a page
Parameters
$strId
string
Page Id
$arrProperties
array
Return
array
int getChildrenCount($strPageId, $arrFilter)
Description
Returns the number of pages nested directly underneath a page
Parameters
$strPageId
string
Page Id
$arrFilter
array
Return
int
array getChildrenRecursive($strId, $arrProperties)
Description
Returns all pages nested directly underneath a page
Parameters
$strId
string
Page Id
$arrProperties
array
Return
array
void getChildrenWithRedirectors($strId, $arrProperties)
Description
Retrieves the children of a specific page, but includes redirectors which appear in navigation
Parameters
$strId
string
$arrProperties
array
Return
void
mixed getColumn($strKey, $strColumn)
Description
Gets a single field from a record
Parameters
$strKey
string
$strColumn
string
Return
mixed
int getCount($arrFilter)
Description
Returns the number of rows in the database
Parameters
$arrFilter
array
Return
int
mixed save($arrEntity, $strReason)
Description
Saves a record into the database
Parameters
$arrEntity
array
$strReason
string
Return
mixed
mixed saveColumn($strKeyValue, $strColumn, $strValue, $strReason)
Description
Saves a specific column of a row into a database
Parameters
$strKeyValue
string
$strColumn
string
$strValue
string
$strReason
string
Return
Id
array search($strSearch, $arrProperties)
Description
Performs a search
Parameters
$strSearch
string
$arrProperties
mixed
Return
array

Database Fields

The following fields are used when retrieving and saving entities.
contact_id
int (11)
design_id
int (11)
page_accept_child_404
tinyint unsigned (1)
page_api_class_link
text
page_content
mediumtext
page_content_additional
mediumtext
page_created
datetime
Default value: 0000-00-00 00:00:00
page_css
mediumtext
page_header_category
varchar (255)
page_header_functions
text
page_icon
varchar (255)
page_id
varchar (255)
page_is_domain
tinyint unsigned (1)
page_is_hidden_in_navigation
tinyint (1)
page_is_hidden_in_sitemap
tinyint unsigned (1)
page_is_offline
tinyint unsigned (1)
page_js
mediumtext
page_last_modified
datetime
Default value: 0000-00-00 00:00:00
page_order
int (11)
page_other_fields
text
page_parent_id
varchar (255)
page_php_source
mediumtext
page_search_canonical_override
varchar (255)
page_search_change_frequency
varchar (16)
page_search_description
varchar (255)
page_search_description_inherited
varchar (255)
page_search_keywords
varchar (255)
page_search_keywords_inherited
varchar (255)
page_search_nofollow
tinyint unsigned (1)
page_search_noindex
tinyint unsigned (1)
page_search_priority
decimal unsigned (2,1)
Default value: 0.5
page_search_title
varchar (255)
page_search_title_prefix
varchar (255)
page_search_title_prefix_inherited
varchar (255)
page_security_condition_id
smallint unsigned (5)
page_security_contact_groups
text
page_security_contact_mode
enum ('contacts','group','conditions')
page_security_contact_require_login
tinyint (1)
page_security_contact_squeeze_viewlimit
smallint unsigned (5)
page_security_description
varchar (255)
page_security_heading
varchar (255)
page_security_new
tinyint unsigned (1)
page_title
varchar (127)
page_type_id
int (10)
page_visits_total
int unsigned (10)