33 lines
811 B
PHP
33 lines
811 B
PHP
<?php
|
|
|
|
class Application_Model_RestResources_Generic extends App_Model_AbstractRest {
|
|
|
|
protected $_risorsa = "generic";
|
|
|
|
public function __init() {
|
|
$this->init($this->_risorsa);
|
|
}
|
|
|
|
public function getById($id){
|
|
return parent::getById($id);
|
|
}
|
|
|
|
public function deleteById($id){
|
|
return parent::deleteById($id);
|
|
}
|
|
|
|
public function getList($paged = null,$count = null,$order = null){
|
|
return parent::getList($paged,$count,$order);
|
|
}
|
|
|
|
public function getFiltered($paged = null,$count = null,$order = null,$where = null){
|
|
return parent::getFiltered($paged,$count,$order,$where);
|
|
}
|
|
|
|
public function updateAccessoCloud($params){
|
|
$data = parent::getByMethod('nomeMetodoCustom',$params);
|
|
return $data['data'];
|
|
}
|
|
|
|
}
|