49 lines
916 B
PHP
49 lines
916 B
PHP
<?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
|