Initial Commit
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
class V1_UsersController extends App_Controller_Rest_Controller
|
||||
{
|
||||
|
||||
protected $_authInfo;
|
||||
|
||||
public function init()
|
||||
{
|
||||
$this->_resourceName = 'Users';
|
||||
$this->_authInfo = new App_Service_Auth();
|
||||
parent::init();
|
||||
}
|
||||
|
||||
public function postAction()
|
||||
{
|
||||
$this->disableCallAction();
|
||||
}
|
||||
|
||||
public function putAction()
|
||||
{
|
||||
$this->disableCallAction();
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
{
|
||||
$this->disableCallAction();
|
||||
}
|
||||
|
||||
//-----------------------------------------------
|
||||
|
||||
public function switchMethodFunction($method)
|
||||
{
|
||||
switch ($method) {
|
||||
default:
|
||||
$this->defaultGetList();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public function getSingleElementManipulate($data)
|
||||
{
|
||||
return array_diff_key($data, array_flip(array('token', 'password', 'staylogin')));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}//END CLASS
|
||||
Reference in New Issue
Block a user