PHP Class Services\PracticeService

Inheritance: extends ModelService
Show file Open project: openeyes/openeyes

Protected Properties

Property Type Description
$operations
$primary_model
$search_params

Public Methods

Method Description
delete ( integer $id ) Delete the practice from the database, first unassociating it with any patients.
modelToResource ( $practice )
resourceToModel ( $res, $prac )
search ( array $params )

Method Details

delete() public method

Delete the practice from the database, first unassociating it with any patients.
public delete ( integer $id )
$id integer

modelToResource() public method

public modelToResource ( $practice )

resourceToModel() public method

public resourceToModel ( $res, $prac )

Property Details

$operations protected static property

protected static $operations

$primary_model protected static property

protected static $primary_model

$search_params protected static property

protected static $search_params