diff --git a/addons/userrights/userrightsprofile.class.inc.php b/addons/userrights/userrightsprofile.class.inc.php
index 396766dba..f65b15145 100644
--- a/addons/userrights/userrightsprofile.class.inc.php
+++ b/addons/userrights/userrightsprofile.class.inc.php
@@ -148,7 +148,7 @@ class URP_Users extends UserRightsBaseClass
$oPage->table($aDisplayConfig, $aDisplayData);
}
- function DisplayBareRelations(web_page $oPage)
+ function DisplayBareRelations(WebPage $oPage)
{
parent::DisplayBareRelations($oPage);
@@ -272,7 +272,7 @@ class URP_Profiles extends UserRightsBaseClass
$oPage->table($aDisplayConfig, $aDisplayData);
}
- function DisplayBareRelations(web_page $oPage)
+ function DisplayBareRelations(WebPage $oPage)
{
parent::DisplayBareRelations($oPage);
diff --git a/application/ajaxwebpage.class.inc.php b/application/ajaxwebpage.class.inc.php
index fbacc0058..3c1ace518 100644
--- a/application/ajaxwebpage.class.inc.php
+++ b/application/ajaxwebpage.class.inc.php
@@ -11,7 +11,7 @@ require_once("../application/webpage.class.inc.php");
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
*/
-class ajax_page extends web_page
+class ajax_page extends WebPage
{
/**
* Jquery style ready script
diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php
index 454cbd8e8..08617ed31 100644
--- a/application/cmdbabstract.class.inc.php
+++ b/application/cmdbabstract.class.inc.php
@@ -116,7 +116,7 @@ abstract class cmdbAbstractObject extends CMDBObject
return $sDisplayValue;
}
- function DisplayBareHeader(web_page $oPage)
+ function DisplayBareHeader(WebPage $oPage)
{
// Standard Header with name, actions menu and history block
//
@@ -140,12 +140,12 @@ abstract class cmdbAbstractObject extends CMDBObject
$oPage->add("\n");
}
- function DisplayBareDetails(web_page $oPage)
+ function DisplayBareDetails(WebPage $oPage)
{
$oPage->add($this->GetBareDetails($oPage));
}
- function DisplayBareRelations(web_page $oPage)
+ function DisplayBareRelations(WebPage $oPage)
{
// Related objects
$oPage->AddTabContainer('Related Objects');
@@ -197,7 +197,7 @@ abstract class cmdbAbstractObject extends CMDBObject
return $sDisplayName;
}
- function GetBareDetails(web_page $oPage)
+ function GetBareDetails(WebPage $oPage)
{
$sHtml = '';
$oAppContext = new ApplicationContext();
@@ -244,7 +244,7 @@ abstract class cmdbAbstractObject extends CMDBObject
}
- function DisplayDetails(web_page $oPage)
+ function DisplayDetails(WebPage $oPage)
{
$sTemplate = Utils::ReadFromFile(MetaModel::GetDisplayTemplate(get_class($this)));
if (!empty($sTemplate))
@@ -262,7 +262,7 @@ abstract class cmdbAbstractObject extends CMDBObject
}
}
- function DisplayPreview(web_page $oPage)
+ function DisplayPreview(WebPage $oPage)
{
$aDetails = array();
$sClass = get_class($this);
@@ -276,13 +276,13 @@ abstract class cmdbAbstractObject extends CMDBObject
// Comment by Rom: this helper may be used to display objects of class DBObject
// -> I am using this to display the changes history
- public static function DisplaySet(web_page $oPage, CMDBObjectSet $oSet, $aExtraParams = array())
+ public static function DisplaySet(WebPage $oPage, CMDBObjectSet $oSet, $aExtraParams = array())
{
$oPage->add(self::GetDisplaySet($oPage, $oSet, $aExtraParams));
}
- //public static function GetDisplaySet(web_page $oPage, CMDBObjectSet $oSet, $sLinkageAttribute = '', $bDisplayMenu = true, $bSelectMode = false)
- public static function GetDisplaySet(web_page $oPage, CMDBObjectSet $oSet, $aExtraParams = array())
+ //public static function GetDisplaySet(WebPage $oPage, CMDBObjectSet $oSet, $sLinkageAttribute = '', $bDisplayMenu = true, $bSelectMode = false)
+ public static function GetDisplaySet(WebPage $oPage, CMDBObjectSet $oSet, $aExtraParams = array())
{
static $iListId = 0;
$iListId++;
@@ -418,7 +418,7 @@ abstract class cmdbAbstractObject extends CMDBObject
return $sHtml;
}
- static function DisplaySetAsCSV(web_page $oPage, CMDBObjectSet $oSet, $aParams = array())
+ static function DisplaySetAsCSV(WebPage $oPage, CMDBObjectSet $oSet, $aParams = array())
{
$oPage->add(self::GetSetAsCSV($oSet, $aParams));
}
@@ -455,7 +455,7 @@ abstract class cmdbAbstractObject extends CMDBObject
return $sHtml;
}
- static function DisplaySetAsXML(web_page $oPage, CMDBObjectSet $oSet, $aParams = array())
+ static function DisplaySetAsXML(WebPage $oPage, CMDBObjectSet $oSet, $aParams = array())
{
$oAppContext = new ApplicationContext();
$sClassName = $oSet->GetFilter()->GetClass();
@@ -480,7 +480,7 @@ abstract class cmdbAbstractObject extends CMDBObject
}
// By rom
- function DisplayChangesLog(web_page $oPage)
+ function DisplayChangesLog(WebPage $oPage)
{
$oFltChangeOps = new CMDBSearchFilter('CMDBChangeOpSetAttribute');
$oFltChangeOps->AddCondition('objkey', $this->GetKey(), '=');
@@ -498,13 +498,13 @@ abstract class cmdbAbstractObject extends CMDBObject
}
}
- public static function DisplaySearchForm(web_page $oPage, CMDBObjectSet $oSet, $aExtraParams = array())
+ public static function DisplaySearchForm(WebPage $oPage, CMDBObjectSet $oSet, $aExtraParams = array())
{
$oPage->add(self::GetSearchForm($oPage, $oSet, $aExtraParams));
}
- public static function GetSearchForm(web_page $oPage, CMDBObjectSet $oSet, $aExtraParams = array())
+ public static function GetSearchForm(WebPage $oPage, CMDBObjectSet $oSet, $aExtraParams = array())
{
static $iSearchFormId = 0;
$oAppContext = new ApplicationContext();
@@ -755,7 +755,7 @@ abstract class cmdbAbstractObject extends CMDBObject
return $sHTMLValue;
}
- public function DisplayModifyForm(web_page $oPage)
+ public function DisplayModifyForm(WebPage $oPage)
{
static $iFormId = 0;
$iFormId++;
@@ -812,7 +812,7 @@ abstract class cmdbAbstractObject extends CMDBObject
$oPage->add("\n");
}
- public static function DisplayCreationForm(web_page $oPage, $sClass, $oObjectToClone = null, $aArgs = array())
+ public static function DisplayCreationForm(WebPage $oPage, $sClass, $oObjectToClone = null, $aArgs = array())
{
static $iCreationFormId = 0;
diff --git a/application/csvpage.class.inc.php b/application/csvpage.class.inc.php
index ed1fb724b..2912f62a8 100644
--- a/application/csvpage.class.inc.php
+++ b/application/csvpage.class.inc.php
@@ -4,7 +4,7 @@ require_once("../application/webpage.class.inc.php");
* Simple web page with no includes or fancy formatting, useful to generateXML documents
* The page adds the content-type text/XML and the encoding into the headers
*/
-class CSVPage extends web_page
+class CSVPage extends WebPage
{
function __construct($s_title)
{
diff --git a/application/displayblock.class.inc.php b/application/displayblock.class.inc.php
index 42fea0d48..198bbebaf 100644
--- a/application/displayblock.class.inc.php
+++ b/application/displayblock.class.inc.php
@@ -149,7 +149,7 @@ class DisplayBlock
return new $sBlockClass($oFilter, $sBlockType, $bAsynchronous, $aParams);
}
- public function Display(web_page $oPage, $sId, $aExtraParams = array())
+ public function Display(WebPage $oPage, $sId, $aExtraParams = array())
{
$oPage->add($this->GetDisplay($oPage, $sId, $aExtraParams));
/*
@@ -184,7 +184,7 @@ class DisplayBlock
*/
}
- public function GetDisplay(web_page $oPage, $sId, $aExtraParams = array())
+ public function GetDisplay(WebPage $oPage, $sId, $aExtraParams = array())
{
$sHtml = '';
$aExtraParams = array_merge($aExtraParams, $this->m_aParams);
@@ -220,12 +220,12 @@ class DisplayBlock
return $sHtml;
}
- public function RenderContent(web_page $oPage, $aExtraParams = array())
+ public function RenderContent(WebPage $oPage, $aExtraParams = array())
{
$oPage->add($this->GetRenderContent($oPage, $aExtraParams));
}
- public function GetRenderContent(web_page $oPage, $aExtraParams = array())
+ public function GetRenderContent(WebPage $oPage, $aExtraParams = array())
{
$sHtml = '';
// Add the extra params into the filter if they make sense for such a filter
@@ -615,7 +615,7 @@ class DisplayBlock
*/
class HistoryBlock extends DisplayBlock
{
- public function GetRenderContent(web_page $oPage, $aExtraParams = array())
+ public function GetRenderContent(WebPage $oPage, $aExtraParams = array())
{
$sHtml = '';
// Add the extra params into the filter if they make sense for such a filter
@@ -689,7 +689,7 @@ class HistoryBlock extends DisplayBlock
class MenuBlock extends DisplayBlock
{
- public function GetRenderContent(web_page $oPage, $aExtraParams = array())
+ public function GetRenderContent(WebPage $oPage, $aExtraParams = array())
{
$sHtml = '';
$oAppContext = new ApplicationContext();
diff --git a/application/loginwebpage.class.inc.php b/application/loginwebpage.class.inc.php
index 32a330be0..ae8ae075d 100644
--- a/application/loginwebpage.class.inc.php
+++ b/application/loginwebpage.class.inc.php
@@ -3,7 +3,7 @@ require_once("../application/nicewebpage.class.inc.php");
/**
* Web page used for displaying the login form
*/
-class login_web_page extends nice_web_page
+class LoginWebPage extends NiceWebPage
{
public function __construct()
{
@@ -96,7 +96,7 @@ h1 {
}
else
{
- $oPage = new login_web_page();
+ $oPage = new LoginWebPage();
$oPage->DisplayLoginForm();
$oPage->output();
exit;
@@ -110,7 +110,7 @@ h1 {
if (!UserRights::Login($sAuthUser, $sAuthPwd))
{
self::ResetSession();
- $oPage = new login_web_page();
+ $oPage = new LoginWebPage();
$oPage->DisplayLoginForm( true /* failed attempt */);
$oPage->output();
exit;
diff --git a/application/menunode.class.inc.php b/application/menunode.class.inc.php
index 19b54b245..943bd393c 100644
--- a/application/menunode.class.inc.php
+++ b/application/menunode.class.inc.php
@@ -113,7 +113,7 @@ class menuNode extends DBObject
return $oSet;
}
- public function RenderContent(web_page $oPage, $aExtraParams = array())
+ public function RenderContent(WebPage $oPage, $aExtraParams = array())
{
$sTemplate = $this->Get('template');
$oTemplate = new DisplayTemplate($sTemplate);
@@ -136,7 +136,7 @@ class menuNode extends DBObject
}
$oP->AddToMenu("\n");
}
- static public function DisplayCreationForm(web_page $oP, $sClass, $sFilter, $aExtraParams = array())
+ static public function DisplayCreationForm(WebPage $oP, $sClass, $sFilter, $aExtraParams = array())
{
$oFilter = DBObjectSearch::unserialize($sFilter);
$oP->p('Create a new menu item for: '.$oFilter->__DescribeHTML());
diff --git a/application/nicewebpage.class.inc.php b/application/nicewebpage.class.inc.php
index 63cfd4cc8..e8e48e07c 100644
--- a/application/nicewebpage.class.inc.php
+++ b/application/nicewebpage.class.inc.php
@@ -3,7 +3,7 @@ require_once("../application/webpage.class.inc.php");
/**
* Web page with some associated CSS and scripts (jquery) for a fancier display
*/
-class nice_web_page extends web_page
+class NiceWebPage extends WebPage
{
var $m_aReadyScripts;
diff --git a/application/template.class.inc.php b/application/template.class.inc.php
index 4ebfdf429..807ffdf30 100644
--- a/application/template.class.inc.php
+++ b/application/template.class.inc.php
@@ -15,7 +15,7 @@ class DisplayTemplate
$this->m_sTemplate = $sTemplate;
}
- public function Render(web_page $oPage, $aParams = array())
+ public function Render(WebPage $oPage, $aParams = array())
{
$this->m_sTemplate = MetaModel::ApplyParams($this->m_sTemplate, $aParams);
$iStart = 0;
diff --git a/application/ui.linkswidget.class.inc.php b/application/ui.linkswidget.class.inc.php
index 8100f9ee8..aa6b47684 100644
--- a/application/ui.linkswidget.class.inc.php
+++ b/application/ui.linkswidget.class.inc.php
@@ -17,7 +17,7 @@ class UILinksWidget
$this->m_iInputId = $iInputId;
}
- public function Display(web_page $oPage, $oCurrentValuesSet = null)
+ public function Display(WebPage $oPage, $oCurrentValuesSet = null)
{
$sHTMLValue = '';
$sTargetClass = self::GetTargetClass($this->m_sClass, $this->m_sAttCode);
@@ -122,7 +122,7 @@ class UILinksWidget
}
/**
* This static function is called by the Ajax Page when there is a need to fill an autocomplete combo
- * @param $oPage web_page The ajax page used for the put^put (sent back to the browser
+ * @param $oPage WebPage The ajax page used for the put^put (sent back to the browser
* @param $oContext UserContext The context of the user (for limiting the search)
* @param $sClass string The name of the class of the current object being edited
* @param $sAttCode string The name of the attribute being edited
@@ -130,7 +130,7 @@ class UILinksWidget
* @param $iMaxCount integer The maximum number of items to return
* @return void
*/
- static public function Autocomplete(web_page $oPage, UserContext $oContext, $sClass, $sAttCode, $sName, $iMaxCount)
+ static public function Autocomplete(WebPage $oPage, UserContext $oContext, $sClass, $sAttCode, $sName, $iMaxCount)
{
// #@# todo - add context information, otherwise any value will be authorized for external keys
$aAllowedValues = MetaModel::GetAllowedValues_att($sClass, $sAttCode, array() /* $aArgs */, $sName);
@@ -166,7 +166,7 @@ class UILinksWidget
/**
* This static function is called by the Ajax Page display a set of objects being linked
* to the object being created
- * @param $oPage web_page The ajax page used for the put^put (sent back to the browser
+ * @param $oPage WebPage The ajax page used for the put^put (sent back to the browser
* @param $sClass string The name of the 'linking class' which is the class of the objects to display
* @param $sSet JSON serialized set of objects
* @param $sExtKeyToMe Name of the attribute in sClass that is pointing to a given object
diff --git a/application/uilinkswizard.class.inc.php b/application/uilinkswizard.class.inc.php
index 3779efac1..ede866c45 100644
--- a/application/uilinkswizard.class.inc.php
+++ b/application/uilinkswizard.class.inc.php
@@ -55,7 +55,7 @@ class UILinksWizard
}
}
- public function Display(web_page $oP, UserContext $oContext, $aExtraParams = array())
+ public function Display(WebPage $oP, UserContext $oContext, $aExtraParams = array())
{
$oAttDef = MetaModel::GetAttributeDef($this->m_sClass, $this->m_sLinkageAttr);
$sTargetClass = $oAttDef->GetTargetClass();
@@ -295,7 +295,7 @@ class UILinksWizard
return $aRow;
}
- protected function DisplayFormTable(web_page $oP, $aConfig, $aData)
+ protected function DisplayFormTable(WebPage $oP, $aConfig, $aData)
{
$oP->add("
\n");
// Header
@@ -327,7 +327,7 @@ class UILinksWizard
$oP->add("
\n");
}
- protected function DisplayFormRow(web_page $oP, $aConfig, $aRow, $iRowId)
+ protected function DisplayFormRow(WebPage $oP, $aConfig, $aRow, $iRowId)
{
$oP->add("
\n");
foreach($aConfig as $sName=>$void)
@@ -337,7 +337,7 @@ class UILinksWizard
$oP->add("
\n");
}
- public function DisplayAddForm(web_page $oP, UserContext $oContext)
+ public function DisplayAddForm(WebPage $oP, UserContext $oContext)
{
$oAttDef = MetaModel::GetAttributeDef($this->m_sClass, $this->m_sLinkageAttr);
$sTargetClass = $oAttDef->GetTargetClass();
@@ -361,7 +361,7 @@ class UILinksWizard
$oP->add_ready_script("$('div#SearchFormToAdd form').bind('submit', function() {var the_form = this; SearchObjectsToAdd(the_form.id); return false;});");
}
- public function SearchObjectsToAdd(web_page $oP, UserContext $oContext)
+ public function SearchObjectsToAdd(WebPage $oP, UserContext $oContext)
{
//$oAttDef = MetaModel::GetAttributeDef($this->m_sClass, $this->m_sLinkageAttr);
@@ -371,7 +371,7 @@ class UILinksWizard
$oBlock->Display($oP, 'ResultsToAdd', array('menu' => false, 'selection_mode' => true, 'display_limit' => false)); // Don't display the 'Actions' menu on the results
}
- public function DoAddObjects(web_page $oP, UserContext $oContext, $aLinkedObjectIds = array())
+ public function DoAddObjects(WebPage $oP, UserContext $oContext, $aLinkedObjectIds = array())
{
//$oAttDef = MetaModel::GetAttributeDef($this->m_sClass, $this->m_sLinkageAttr);
//$sTargetClass = $oAttDef->GetTargetClass();
diff --git a/application/webpage.class.inc.php b/application/webpage.class.inc.php
index b7cafa940..42d7135cc 100644
--- a/application/webpage.class.inc.php
+++ b/application/webpage.class.inc.php
@@ -6,11 +6,11 @@
* and renders the full web page by putting the elements in the proper place & order
* when the output() method is called.
* Usage:
- * $oPage = new web_page("Title of my page");
+ * $oPage = new WebPage("Title of my page");
* $oPage->p("Hello World !");
* $oPage->output();
*/
-class web_page
+class WebPage
{
protected $s_title;
protected $s_content;
diff --git a/application/xmlpage.class.inc.php b/application/xmlpage.class.inc.php
index d3a62adfe..24a81c562 100644
--- a/application/xmlpage.class.inc.php
+++ b/application/xmlpage.class.inc.php
@@ -4,7 +4,7 @@ require_once("../application/webpage.class.inc.php");
* Simple web page with no includes or fancy formatting, useful to generateXML documents
* The page adds the content-type text/XML and the encoding into the headers
*/
-class XMLPage extends web_page
+class XMLPage extends WebPage
{
function __construct($s_title)
{
diff --git a/business/itop.business.class.inc.php b/business/itop.business.class.inc.php
index a13f76f31..17ae3d77c 100644
--- a/business/itop.business.class.inc.php
+++ b/business/itop.business.class.inc.php
@@ -646,7 +646,7 @@ class bizLocation extends logInfra
*/
}
- function DisplayDetails(web_page $oPage)
+ function DisplayDetails(WebPage $oPage)
{
parent::DisplayDetails($oPage);
/*
@@ -865,7 +865,7 @@ class bizInterface extends logInfra
MetaModel::Init_SetZListItems('advanced_search', array('name', 'status', 'device_id', 'org_id')); // Criteria of the advanced search form
}
- function DisplayDetails(web_page $oPage)
+ function DisplayDetails(WebPage $oPage)
{
parent::DisplayDetails($oPage);
/*
@@ -942,7 +942,7 @@ class bizSubnet extends logInfra
MetaModel::Init_SetZListItems('advanced_search', array('name', 'ip','mask')); // Criteria of the advanced search form
}
- function DisplayBareRelations(web_page $oPage)
+ function DisplayBareRelations(WebPage $oPage)
{
parent::DisplayBareRelations($oPage);
@@ -1109,7 +1109,7 @@ class bizPC extends bizDevice
MetaModel::Init_SetZListItems('advanced_search', array('name', 'status', 'type', 'brand', 'model', 'cpu', 'memory_size', 'hdd_size')); // Criteria of the advanced search form
}
- function DisplayDetails(web_page $oPage)
+ function DisplayDetails(WebPage $oPage)
{
parent::DisplayDetails($oPage);
/*
@@ -1256,7 +1256,7 @@ class bizServer extends bizDevice
MetaModel::Init_SetZListItems('advanced_search', array('name', 'status','brand', 'model', 'os_family', 'os_version', 'location_id', 'cpu', 'number_of_cpus', 'memory_size', 'hdd_size', 'hdd_free_size')); // Criteria of the advanced search form
}
- function DisplayDetails(web_page $oPage)
+ function DisplayDetails(WebPage $oPage)
{
parent::DisplayDetails($oPage);
/*
@@ -1436,7 +1436,7 @@ class bizInfraGroup extends logInfra
MetaModel::Init_SetZListItems('advanced_search', array('name', 'status', 'type', 'description', 'org_id')); // Criteria of the advanced search form
}
- function DisplayDetails(web_page $oPage)
+ function DisplayDetails(WebPage $oPage)
{
parent::DisplayDetails($oPage);
/*
@@ -1537,7 +1537,7 @@ class bizApplication extends logInfra
}
}
- function DisplayDetails(web_page $oPage)
+ function DisplayDetails(WebPage $oPage)
{
parent::DisplayDetails($oPage);
/*
diff --git a/pages/UI.php b/pages/UI.php
index e3a34c623..2bcb89fb7 100644
--- a/pages/UI.php
+++ b/pages/UI.php
@@ -30,7 +30,7 @@ $currentOrganization = utils::ReadParam('org_id', '');
$operation = utils::ReadParam('operation', '');
require_once('../application/loginwebpage.class.inc.php');
-login_web_page::DoLogin(); // Check user rights and prompt if needed
+LoginWebPage::DoLogin(); // Check user rights and prompt if needed
$oP = new iTopWebPage("Welcome to ITop", $currentOrganization);
diff --git a/pages/advanced_search.php b/pages/advanced_search.php
index 80ec35657..aa503c610 100644
--- a/pages/advanced_search.php
+++ b/pages/advanced_search.php
@@ -9,7 +9,7 @@ require_once('../application/dialogstack.class.inc.php');
require_once('../application/startup.inc.php');
// #@# not used, but... require_once('../classes/usercontext.class.inc.php');
-$oPage = new nice_web_page("ITop finder");
+$oPage = new NiceWebPage("ITop finder");
$oPage->no_cache();
diff --git a/pages/ajax.php b/pages/ajax.php
index 1173ddd21..76cef861a 100644
--- a/pages/ajax.php
+++ b/pages/ajax.php
@@ -9,7 +9,7 @@ function ReadParam($sName, $defaultValue = "")
return isset($_REQUEST[$sName]) ? $_REQUEST[$sName] : $defaultValue;
}
-$oPage = new nice_web_page("Asynchronous versus asynchronous DisplayBlocks");
+$oPage = new NiceWebPage("Asynchronous versus asynchronous DisplayBlocks");
$oPage->no_cache();
$oPage->add("
Asynchronous versus asynchronous DisplayBlocks
\n");
diff --git a/pages/ajax.render.php b/pages/ajax.render.php
index 3ac20e6a9..477643d55 100644
--- a/pages/ajax.render.php
+++ b/pages/ajax.render.php
@@ -296,7 +296,7 @@ $oPage->output();
/**
* Downloads a document to the browser, either as 'inline' or 'attachment'
*
- * @param web_page $oPage The web page for the output
+ * @param WebPage $oPage The web page for the output
* @param UserContext $oContext The current User/security context to retreive the objects
* @param string $sClass Class name of the object
* @param mixed $id Identifier of the object
@@ -304,7 +304,7 @@ $oPage->output();
* @param string $sContentDisposition Either 'inline' or 'attachment'
* @return none
*/
-function DownloadDocument(web_page $oPage, UserContext $oContext, $sClass, $id, $sAttCode, $sContentDisposition = 'attachement')
+function DownloadDocument(WebPage $oPage, UserContext $oContext, $sClass, $id, $sAttCode, $sContentDisposition = 'attachement')
{
try
{
diff --git a/pages/audit.php b/pages/audit.php
index 88ce7c90a..edfa99a3e 100644
--- a/pages/audit.php
+++ b/pages/audit.php
@@ -8,7 +8,7 @@ $operation = utils::ReadParam('operation', '');
$oAppContext = new ApplicationContext();
require_once('../application/loginwebpage.class.inc.php');
-login_web_page::DoLogin(); // Check user rights and prompt if needed
+LoginWebPage::DoLogin(); // Check user rights and prompt if needed
$oP = new iTopWebPage("iTop - CMDB Audit", $currentOrganization);
diff --git a/pages/csvimport.php b/pages/csvimport.php
index 377b2a7c3..8ba2e60f4 100644
--- a/pages/csvimport.php
+++ b/pages/csvimport.php
@@ -5,7 +5,7 @@ require_once('../application/itopwebpage.class.inc.php');
require_once('../application/startup.inc.php');
require_once('../application/loginwebpage.class.inc.php');
-login_web_page::DoLogin(); // Check user rights and prompt if needed
+LoginWebPage::DoLogin(); // Check user rights and prompt if needed
$oContext = new UserContext();
$oAppContext = new ApplicationContext();
diff --git a/pages/data_generator.php b/pages/data_generator.php
index 351269d18..c80478812 100644
--- a/pages/data_generator.php
+++ b/pages/data_generator.php
@@ -62,11 +62,11 @@ $aClassesToGenerate = array('bizOrganization' /* This one is special and must go
/**
* Populate an organization with objects of each class listed in the (global) $aClassesToGenerate array
*
- * @param web_page $oPage The object used for the HTML output
+ * @param WebPage $oPage The object used for the HTML output
* @param cmdbGenerator $oGenerator The object used for the generation of the objects
* @param string $sSize An enum specifying (roughly) how many objects of each class to create: one of 'small', 'medium', 'big', 'huge' or 'max'
*/
-function PopulateOrganization(CMDBChange $oMyChange, web_page $oPage, cmdbDataGenerator $oGenerator, $sSize = 'small')
+function PopulateOrganization(CMDBChange $oMyChange, WebPage $oPage, cmdbDataGenerator $oGenerator, $sSize = 'small')
{
global $aClassesToGenerate;
@@ -111,7 +111,7 @@ function PopulateOrganization(CMDBChange $oMyChange, web_page $oPage, cmdbDataGe
/**
* Delete an organization and all the instances of 'Object' belonging to this organization
*
- * @param web_page $oPage The object used for the HTML output
+ * @param WebPage $oPage The object used for the HTML output
* @param string $sOrganizationCode The code (pkey) of the organization to delete
*/
function DeleteOrganization($oMyChange, $oPage, $sOrganizationCode)
diff --git a/pages/db_importer.php b/pages/db_importer.php
index 7d7df9894..cb56bf4e7 100644
--- a/pages/db_importer.php
+++ b/pages/db_importer.php
@@ -5,7 +5,7 @@ require_once('../application/itopwebpage.class.inc.php');
require_once('../application/startup.inc.php');
require_once('../application/loginwebpage.class.inc.php');
-login_web_page::DoLogin(); // Check user rights and prompt if needed
+LoginWebPage::DoLogin(); // Check user rights and prompt if needed
$sOperation = utils::ReadParam('operation', 'menu');
$oContext = new UserContext();
diff --git a/pages/incident.php b/pages/incident.php
index ff9fe3df9..8024cd77b 100644
--- a/pages/incident.php
+++ b/pages/incident.php
@@ -24,7 +24,7 @@ abstract class DialogWizard
return $this->m_aSteps[$sStep];
}
- protected function AddContextToForm(web_page $oPage)
+ protected function AddContextToForm(WebPage $oPage)
{
// Store as hidden fields in the page all the variables from the previous steps
foreach($this->m_aSteps as $sStep => $aFields)
@@ -37,7 +37,7 @@ abstract class DialogWizard
}
}
- function GetObjectPicker(web_page $oPage, $sTitle, $sFieldName, $sClass)
+ function GetObjectPicker(WebPage $oPage, $sTitle, $sFieldName, $sClass)
{
$sScript =
<<AddCondition('pkey', array(0), 'IN');
@@ -258,7 +258,7 @@ class IncidentCreationWizard extends DialogWizard
$oPage->add("m_sNextStep."\" />\n");
}
- public function DisplayNewTicketForm(web_page $oPage)
+ public function DisplayNewTicketForm(WebPage $oPage)
{
assert($this->m_sCurrentStep == '1');
$this->m_sNextStep = '2';
@@ -280,7 +280,7 @@ class IncidentCreationWizard extends DialogWizard
$oPage->add('');
}
- public function DisplayImpactedInfraForm(web_page $oPage)
+ public function DisplayImpactedInfraForm(WebPage $oPage)
{
assert($this->m_sCurrentStep == '2');
$this->m_sNextStep = '3';
@@ -296,7 +296,7 @@ class IncidentCreationWizard extends DialogWizard
$oPage->add('');
}
- public function DisplayAdditionalImpactedObjectForm(web_page $oPage)
+ public function DisplayAdditionalImpactedObjectForm(WebPage $oPage)
{
assert($this->m_sCurrentStep == '3');
$this->m_sNextStep = '4';
@@ -344,7 +344,7 @@ class IncidentCreationWizard extends DialogWizard
$oPage->add('');
}
- public function DisplayRelatedTicketsForm(web_page $oPage)
+ public function DisplayRelatedTicketsForm(WebPage $oPage)
{
assert($this->m_sCurrentStep == '4');
$this->m_sNextStep = '5';
@@ -380,7 +380,7 @@ class IncidentCreationWizard extends DialogWizard
$oPage->add('');
}
- public function DisplayContactsToNotifyForm(web_page $oPage)
+ public function DisplayContactsToNotifyForm(WebPage $oPage)
{
assert($this->m_sCurrentStep == '5');
$this->m_sNextStep = '6';
@@ -395,7 +395,7 @@ class IncidentCreationWizard extends DialogWizard
$oPage->add('');
}
- function DisplayFinalForm(web_page $oPage)
+ function DisplayFinalForm(WebPage $oPage)
{
$oAppContext = new ApplicationContext();
assert($this->m_sCurrentStep == '6');
@@ -483,7 +483,7 @@ class IncidentCreationWizard extends DialogWizard
$oPage->add('');
}
- public function CreateIncident(web_page $oPage)
+ public function CreateIncident(WebPage $oPage)
{
$oAppContext = new ApplicationContext();
assert($this->m_sCurrentStep == '7');
diff --git a/pages/index.php b/pages/index.php
index f8d93ec62..5d5b81581 100644
--- a/pages/index.php
+++ b/pages/index.php
@@ -5,7 +5,7 @@ require_once('../application/dialogstack.class.inc.php');
require_once('../application/startup.inc.php');
-$oPage = new nice_web_page("The very first iTop page");
+$oPage = new NiceWebPage("The very first iTop page");
$oPage->no_cache();
@@ -82,7 +82,7 @@ function DisplaySelectOrg($oPage, $sCurrentOrganization, $iContext)
}
}
-function DisplayDetails(web_page $oPage, $sClassName, $sKey)
+function DisplayDetails(WebPage $oPage, $sClassName, $sKey)
{
global $oContext;
//$oObj = MetaModel::GetObject($sClassName, $sKey);
@@ -135,7 +135,7 @@ function DisplayDetails(web_page $oPage, $sClassName, $sKey)
}
// By Rom
-function DisplayChangesLog(web_page $oPage, $sClassName, $sKey)
+function DisplayChangesLog(WebPage $oPage, $sClassName, $sKey)
{
global $oContext;
//$oObj = MetaModel::GetObject($sClassName, $sKey);
@@ -149,7 +149,7 @@ function DisplayChangesLog(web_page $oPage, $sClassName, $sKey)
$oPage->p("Delete this object (no confirmation!)");
}
-function DumpObjectsAsCSV(web_page $oPage, $sClassName, $oSearchFilter = null, $sSeparator = ",")
+function DumpObjectsAsCSV(WebPage $oPage, $sClassName, $oSearchFilter = null, $sSeparator = ",")
{
global $oContext;
@@ -179,7 +179,7 @@ function DumpObjectsAsCSV(web_page $oPage, $sClassName, $oSearchFilter = null,
}
}
-function DumpObjects(web_page $oPage, $sClassName, CMDBSearchFilter $oSearchFilter = null)
+function DumpObjects(WebPage $oPage, $sClassName, CMDBSearchFilter $oSearchFilter = null)
{
global $oContext;
@@ -209,7 +209,7 @@ function DumpObjects(web_page $oPage, $sClassName, CMDBSearchFilter $oSearchFilt
$oPage->table($aAttribs, $aValues);
}
-function DisplayEditForm(web_page $oPage, $sClassName, $sKey)
+function DisplayEditForm(WebPage $oPage, $sClassName, $sKey)
{
global $oContext;
//$oObj = MetaModel::GetObject($sClassName, $sKey);
@@ -264,7 +264,7 @@ function DisplayEditForm(web_page $oPage, $sClassName, $sKey)
$oPage->add("