User Create page
This commit is contained in:
29
core/Api/User/Invite.class.php
Normal file
29
core/Api/User/Invite.class.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace Api\User;
|
||||
|
||||
use Api\Parameter\StringType;
|
||||
use \Api\Request;
|
||||
|
||||
class Invite extends Request {
|
||||
|
||||
public function __construct($user, $externalCall = false) {
|
||||
parent::__construct($user, $externalCall, array(
|
||||
'username' => new StringType('username', 32),
|
||||
'email' => new StringType('email', 64),
|
||||
));
|
||||
$this->csrfTokenRequired = true;
|
||||
$this->loginRequired = true;
|
||||
$this->requiredGroup = USER_GROUP_ADMIN;
|
||||
}
|
||||
|
||||
public function execute($values = array()) {
|
||||
if(!parent::execute($values)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// TODO:
|
||||
|
||||
return $this->success;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user