Properties

$layout

$layout : string

Type

string — the default layout for the controller view. Defaults to '//layouts/column1', meaning using a single column layout. See 'protected/views/layouts/column1.php'.

$menu

$menu : array

Type

array — context menu items. This property will be assigned to {@link CMenu::items}.

$breadcrumbs

$breadcrumbs : array

Type

array — the breadcrumbs of the current page. The value of this property will be assigned to {@link CBreadcrumbs::links}. Please refer to {@link CBreadcrumbs::links} for more details on how to specify this property.

$mainMenu

$mainMenu : 

Type

$subMenu

$subMenu : 

Type

$mainEMenu

$mainEMenu : 

Type

$subEMenu

$subEMenu : 

Type

Methods

init()

init() 

actionIndex()

actionIndex() 

render main page for routers

Throws

\CHttpException

actionView()

actionView() 

view details for selected routers

Throws

\CHttpException

actionHwinventory()

actionHwinventory() 

Create HW Inventory

Throws

\CHttpException

actionSwinventory()

actionSwinventory() 

Create SW inventory

Throws

\CHttpException

actionRelationalhw()

actionRelationalhw() 

Render "_relational" view for HW

actionRelationalsw()

actionRelationalsw() 

Render "_relational" view for SW

actionRoutermap()

actionRoutermap() 

Render router map

Throws

\CHttpException

actionTopologymap()

actionTopologymap() 

Render Topology map

actionHwbypartnumber()

actionHwbypartnumber() 

Render results of searching HW by part number

Throws

\CHttpException

actionSwbyrevision()

actionSwbyrevision() 

Render results of searching SW by part number

Throws

\CHttpException

actionViewconf()

actionViewconf() 

Render view configuration

Throws

\CHttpException

actionConfiguration()

actionConfiguration() 

Render compare two configurations

Throws

\CHttpException

actionHwexportxls()

actionHwexportxls() 

Create xls report for HW

actionHwinventoryexportxls()

actionHwinventoryexportxls() 

Render page for HW inventory export in xls file

actionHwinventoryexportpdf()

actionHwinventoryexportpdf() 

Render page for HW inventory export in pdf file

actionHwexportfindxls()

actionHwexportfindxls() 

Create xls file for HW search results

actionHwexportpdf()

actionHwexportpdf() 

Create pdf file for HW

actionHwexportfindpdf()

actionHwexportfindpdf() 

Create xls file for SW search results

actionSwexportfindxls()

actionSwexportfindxls() 

Create xls file for SW search results

actionSwexportxls()

actionSwexportxls() 

create xls file for SW

actionSwexportpdf()

actionSwexportpdf() 

create pdf file for SW

actionSwexportfindpdf()

actionSwexportfindpdf() 

Create pdf file for SW search results

actionSwinventoryexportxls()

actionSwinventoryexportxls() 

Create export for SW inventory in xls/csv file

actionSwinventoryexportpdf()

actionSwinventoryexportpdf() 

Create export for SW inventory in pdf file

loadModel()

loadModel(integer  $id) : object

load router model with interfaces,networks and phisical Interfaces relations

Parameters

integer $id

unique id ofrouter

Throws

\CHttpException

Returns

object

actionCreate()

actionCreate() 

Creates a new model.

If creation is successful, the browser will be redirected to the 'view' page.

actionUpdate()

actionUpdate(integer  $id) 

Updates a particular model.

If update is successful, the browser will be redirected to the 'view' page.

Parameters

integer $id

the ID of the model to be updated

actionDelete()

actionDelete(integer  $id) 

Deletes a particular model.

If deletion is successful, the browser will be redirected to the 'admin' page.

Parameters

integer $id

the ID of the model to be deleted

actionAdmin()

actionAdmin() 

Lists all models.

actionList()

actionList() 

Lists all models for definded access.

actionListSnmp()

actionListSnmp() 

Lists all models for definded access.

actionCleandb()

actionCleandb() 

Clean DB

Throws

\CHttpException

actionRunaudit()

actionRunaudit() 

Run initial discovery

Throws

\CHttpException

hasAccess()

hasAccess(\CAction  $action) : boolean

Check whether user has access to action or not.

Parameters

\CAction $action

Returns

boolean —

true if has access

setNoEmptyValue()

setNoEmptyValue(  $valore) 

Parameters

$valore

performAjaxValidation()

performAjaxValidation(\Routers  $model) 

Performs the AJAX validation.

Parameters

\Routers $model

the model to be validated

gethwlist()

gethwlist() : mixed

Create list of HW

Returns

mixed

getswlist()

getswlist() : mixed

Create list of SW

Returns

mixed

getContentFile()

getContentFile(  $url) 

Parameters

$url