Admin_ContentPage module, ContentPage library.
More...
Admin_ContentPage module, ContentPage library.
Plugin / Module Library
- Author
- CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
- Version
- 1.1.5.4
- Date
- Creation: Jun 2005
-
Modification: Nov 2022
- Copyright
- 2005 - 2022 CaMykS Team
- Note
- This program is distributed as is - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ContentPage class.
◆ __construct()
ContentPage::__construct |
( |
|
$mode = CAMYKS_MODE_SITE , |
|
|
|
$id = 0 , |
|
|
|
$params = array() |
|
) |
| |
Class constructor.
- Parameters
-
integer | $mode | |
integer | $id | |
array | $params | |
- Returns
- void
◆ get()
ContentPage::get |
( |
|
$page = null | ) |
|
Return page case of CaMykS mode.
- Parameters
-
mixed | $page | the page to get |
- Returns
- boolean success
◆ save()
Save object.
- Returns
- boolean success
◆ site_get()
ContentPage::site_get |
( |
|
$page | ) |
|
Return object in site mode.
- Parameters
-
mixed | $page | the page to get |
- Returns
- boolean success
◆ load_asFrontPage()
ContentPage::load_asFrontPage |
( |
|
$page | ) |
|
Load object as displayed front page.
- Parameters
-
- Returns
- boolean success
◆ admin_get()
ContentPage::admin_get |
( |
| ) |
|
Return object in admin mode.
- Returns
- boolean success
◆ check_rights()
ContentPage::check_rights |
( |
| ) |
|
Check admin user right on this page.
- Returns
- boolean result
◆ check_data()
ContentPage::check_data |
( |
| ) |
|
|
private |
Check page data.
- Returns
- boolean result
◆ initialise()
ContentPage::initialise |
( |
| ) |
|
|
private |
Initialise object.
- Returns
- boolean result
◆ get_fromDatabase()
ContentPage::get_fromDatabase |
( |
|
$page = null | ) |
|
|
private |
Load object data from database.
- Parameters
-
mixed | $page | the page to get |
- Returns
- boolean success
◆ get_homeFromDatabase()
ContentPage::get_homeFromDatabase |
( |
| ) |
|
Load homepage object data from database.
- Returns
- boolean success
◆ get_firstFromDatabase()
ContentPage::get_firstFromDatabase |
( |
| ) |
|
|
private |
Load first object available from database.
- Returns
- boolean success
◆ get_objectFromDatabase()
ContentPage::get_objectFromDatabase |
( |
|
$query = '' | ) |
|
|
private |
Load object data from database generic method.
- Parameters
-
string | $query | some query modification |
- Returns
- boolean success
◆ get_allVersionsFromDatabase()
ContentPage::get_allVersionsFromDatabase |
( |
| ) |
|
|
private |
Load all object version from database, set the latest version to the object.
- Returns
- boolean success
◆ get_localesFromDatabase()
ContentPage::get_localesFromDatabase |
( |
| ) |
|
|
private |
Load object locales from database.
- Returns
- success
◆ create_toDatabase()
ContentPage::create_toDatabase |
( |
| ) |
|
|
private |
Create new object to the database.
- Returns
- boolean success
◆ update_toDatabase()
ContentPage::update_toDatabase |
( |
| ) |
|
|
private |
Update object to database.
- Returns
- boolean success
◆ update_contentQuery()
ContentPage::update_contentQuery |
( |
| ) |
|
|
private |
Build content part for the updating query.
- Returns
- string the sql query part
◆ update_rightsQuery()
ContentPage::update_rightsQuery |
( |
| ) |
|
|
private |
Build right part for the updating query.
- Returns
- string the sql query part
◆ update_languages()
ContentPage::update_languages |
( |
| ) |
|
|
private |
Update object languages.
- Returns
- boolean success
◆ delete_fromDatabase()
ContentPage::delete_fromDatabase |
( |
| ) |
|
Delete object from database.
- Returns
- boolean success
◆ delete_localesFromDatabase()
ContentPage::delete_localesFromDatabase |
( |
| ) |
|
Delete object languages from database.
- Returns
- boolean success
◆ install()
Install object table into database, add first page.
- Returns
- boolean success
◆ is_installed()
ContentPage::is_installed |
( |
| ) |
|
Check if object is installed in database.
- Returns
- boolean result
◆ get_parentRights()
ContentPage::get_parentRights |
( |
| ) |
|
|
private |
Load parent page rights.
- Returns
- void
◆ get_newPosition()
ContentPage::get_newPosition |
( |
| ) |
|
|
private |
Return next page position into page tree.
- Returns
- void
◆ get_fromHeader()
ContentPage::get_fromHeader |
( |
| ) |
|
Load object data from header.
- Returns
- void
◆ update_move()
ContentPage::update_move |
( |
|
$newParentId | ) |
|
Update page location.
- Parameters
-
- Returns
- boolean success
◆ update_moveUp()
ContentPage::update_moveUp |
( |
| ) |
|
Update page position up.
- Returns
- boolean success
◆ update_moveDown()
ContentPage::update_moveDown |
( |
| ) |
|
Update page position down.
- Returns
- boolean success
◆ update_movePosition()
ContentPage::update_movePosition |
( |
|
$pos | ) |
|
Update page position with differential value.
- Parameters
-
- Returns
- boolean success
◆ get_fromArray()
ContentPage::get_fromArray |
( |
|
$data | ) |
|
|
private |
Load object data from array.
- Parameters
-
- Returns
- void
◆ get_localeFromArray()
ContentPage::get_localeFromArray |
( |
|
$data | ) |
|
|
private |
Load object locale data from an array.
- Parameters
-
- Returns
- void
◆ get_localesFromArray()
ContentPage::get_localesFromArray |
( |
|
$data | ) |
|
|
private |
Load object locales from an array.
- Parameters
-
- Returns
- array
◆ encode_metas()
ContentPage::encode_metas |
( |
| ) |
|
|
private |
Encode metas values.
- Returns
- void
◆ decode_metas()
ContentPage::decode_metas |
( |
| ) |
|
|
private |
Decode meta values.
- Returns
- void
◆ set_adminData()
ContentPage::set_adminData |
( |
|
$m | ) |
|
Set up default admin page parameters.
- Parameters
-
string | $m | the module to be administrate |
- Returns
- void
◆ init_site()
ContentPage::init_site |
( |
| ) |
|
Initialise object in site mode.
- Returns
- void
◆ init_admin()
ContentPage::init_admin |
( |
| ) |
|
Initialise object in admin mode.
- Returns
- void
◆ has_children()
ContentPage::has_children |
( |
| ) |
|
Check if page has children.
- Returns
- boolean result
◆ get_siteLink()
ContentPage::get_siteLink |
( |
|
$params = array() , |
|
|
|
$lg = '' |
|
) |
| |
Return page object site link.
- Parameters
-
- Returns
- string
◆ display()
Display object in site mode.
- Returns
- void
◆ display_module()
ContentPage::display_module |
( |
|
$index | ) |
|
Display module.
- Parameters
-
- Returns
- void
◆ get_adminPagesTree()
ContentPage::get_adminPagesTree |
( |
| ) |
|
Build admin mode page tree.
- Returns
- array
◆ get_pagesList()
ContentPage::get_pagesList |
( |
|
$lg = null , |
|
|
|
$where = '' |
|
) |
| |
Build complete page tree.
- Parameters
-
- Returns
- array
◆ get_modelsList()
ContentPage::get_modelsList |
( |
|
$where = '' | ) |
|
Return models list.
- Parameters
-
- Returns
- array
◆ get_longTitleDisplay()
ContentPage::get_longTitleDisplay |
( |
|
$encoding = '' | ) |
|
Return current page long title display.
- Parameters
-
- Returns
- string
◆ get_shortTitleDisplay()
ContentPage::get_shortTitleDisplay |
( |
|
$encoding = '' | ) |
|
Return current page short title display.
- Parameters
-
- Returns
- string
◆ get_titleDisplay()
ContentPage::get_titleDisplay |
( |
|
$encoding = '' | ) |
|
Return current page default title display.
- Parameters
-
- Returns
- string
◆ get_configValue()
ContentPage::get_configValue |
( |
|
$param = '' , |
|
|
|
$default = false |
|
) |
| |
Return parent configuration object value.
- Parameters
-
string | $param | |
mixed | $default | |
- Returns
- mixed
◆ update_toVersion1_1()
ContentPage::update_toVersion1_1 |
( |
| ) |
|
Execute version 1.1 update.
- Returns
- boolean success
◆ static_update_singleModuleContent()
ContentPage::static_update_singleModuleContent |
( |
|
$pid, |
|
|
|
$idx, |
|
|
|
$cid |
|
) |
| |
Update a single module content id for a page.
- Parameters
-
int | $pid | the page id |
int | $idx | the module index |
int | $cid | the module content id |
- Returns
- boolean success
◆ static_get_sitePages()
ContentPage::static_get_sitePages |
( |
| ) |
|
Return all pages from database.
- Returns
- array
- Deprecated:
◆ static_get_childrenPages()
ContentPage::static_get_childrenPages |
( |
|
$page = 0 , |
|
|
|
$level = 1 |
|
) |
| |
Return all children pages from a given page
- Parameters
-
int | $page | the page id |
int | $level | the level |
- Returns
- array
- Deprecated:
◆ static_get_relativeChildrenPages()
ContentPage::static_get_relativeChildrenPages |
( |
|
$level | ) |
|
Return children pages from current page.
- Parameters
-
- Returns
- array
- Deprecated:
◆ static_get_listedPages()
ContentPage::static_get_listedPages |
( |
|
$list, |
|
|
|
$lg = '' |
|
) |
| |
Return pages from a given list.
- Parameters
-
- Returns
- void
- Deprecated:
◆ static_get_pageBasicInfoByName()
ContentPage::static_get_pageBasicInfoByName |
( |
|
$name = '' | ) |
|
Return page basic info (id, title(current_language)) from name.
- Parameters
-
- Returns
- ContentPage Object
- Deprecated:
◆ static_get_pagesBasicInfoByNames()
ContentPage::static_get_pagesBasicInfoByNames |
( |
|
$names = array() | ) |
|
Return pages basic info (id, title(current_language)) from names.
- Parameters
-
- Returns
- array
- Deprecated:
◆ static_get_homepageBasicInfo()
ContentPage::static_get_homepageBasicInfo |
( |
| ) |
|
◆ $mode
Page mode, same as CaMykS modes.
var integer $mode
◆ $id
◆ $name
Page symbolic name.
var string $name
◆ $parent_id
Parent page id.
var integer $parent_id
◆ $position
Sorting position in parent page children list.
var integer $position
◆ $type
ContentPage::$type = 'page' |
Page type, currently unused.
var string $type
◆ $active
Page status.
var boolean $active
◆ $secured
ContentPage::$secured = 0 |
Page has to be access with https, currently unused.
var boolean $secured
◆ $wf_version
ContentPage::$wf_version = 1 |
Workflow version, currently unused.
var integer $wf_version
◆ $wf_status
Workflow status, currently unused.
var integer $wf_status
◆ $wf_cdate
Workflow creation date, currently unused.
var integer $wf_cdate
◆ $wf_mdate
Workflow modification date, currently unused.
var integer $wf_mdate
◆ $wf_owner
Page owner.
var string $wf_owner
◆ $wf_editor
Page editor group.
var string $wf_editor
◆ $wf_validator
ContentPage::$wf_validator |
Page validation group, currently unused.
var string $wf_validator
◆ $template
ContentPage::$template = '' |
Page template.
var string $template
◆ $theme
Page theme.
var string $theme
◆ $homepage
Is page the home page.
var boolean $homepage
◆ $modules
ContentPage::$modules = array() |
Included modules.
var array $modules
◆ $metas
ContentPage::$metas = array() |
Page metas.
var array $metas
◆ $metas_
ContentPage::$metas_ = '' |
Textual version of metas.
var string $metas_
◆ $children
ContentPage::$children = array() |
Page children.
var array $children
◆ $params
ContentPage::$params = array() |
Page parameters.
var array $params
◆ $params_
Textual version of page parameters.
var array $params
◆ $_libIsInstalled
ContentPage::$_libIsInstalled |
Library installation status.
var boolean $_libIsInstalled
◆ $_libParent
Parent module.
var boolean $_libParent
◆ $object_type
ContentPage::$object_type = 'Module Library' |
Library object type.
var string $object_type
◆ $maxmodules
Maximum module to be inserted in page.
var integer $maxmodules
◆ $status
ContentPage::$status = 200 |
HTTP status of the page.
var integer $status
The documentation for this class was generated from the following file: