PHP Class DrugSetAdminController

(C) Moorfields Eye Hospital NHS Foundation Trust, 2008-2011 (C) OpenEyes Foundation, 2011-2015 This file is part of OpenEyes. OpenEyes is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenEyes is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenEyes in a file titled COPYING. If not, see .
Author: OpenEyes ([email protected])
Inheritance: extends BaseAdminController
Show file Open project: openeyes/openeyes

Public Properties

Property Type Description
$itemsPerPage integer

Public Methods

Method Description
actionDelete ( ) Deletes rows for the model.
actionDrugSets ( ) Render the basic drug set admin page.
actionEdit ( boolean | integer $id = false ) Edits or adds drug sets.
actionSaveDrugSet ( ) Save drug set data from the admin interface.

Protected Methods

Method Description
initAdmin ( boolean $id = false ) : Admin Init the edit admin page, because we have a custom save URL, so we need to use Admin in more then 1 function.

Method Details

actionDelete() public method

Deletes rows for the model.
public actionDelete ( )

actionDrugSets() public method

Render the basic drug set admin page.
public actionDrugSets ( )

actionEdit() public method

Edits or adds drug sets.
public actionEdit ( boolean | integer $id = false )
$id boolean | integer

actionSaveDrugSet() public method

Save drug set data from the admin interface.
public actionSaveDrugSet ( )

initAdmin() protected method

Init the edit admin page, because we have a custom save URL, so we need to use Admin in more then 1 function.
protected initAdmin ( boolean $id = false ) : Admin
$id boolean
return Admin

Property Details

$itemsPerPage public property

public int $itemsPerPage
return integer