Initial Commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?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'];
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user