correct docstrings

This commit is contained in:
coderkun 2015-03-06 11:09:35 +01:00
commit 2c0e68b194
78 changed files with 275 additions and 62 deletions

View file

@ -67,6 +67,7 @@
*
* @throws IdNotFoundException
* @param string $seminaryUrl URL-Title of a Seminary
* @param string $all Whether to list all Characters at once or not (optional)
*/
public function index($seminaryUrl, $all=null)
{

View file

@ -66,7 +66,8 @@
*
* @param array $receiver User that the message will be send to
* @param array $seminary Seminary which the Character was created for
* @param array $newCharacter Newly registered user
* @param arary $user User of the newly registered Character
* @param array $newCharacter Newly registered Character
*/
public function characterregistration($receiver, $seminary, $user, $newCharacter)
{

View file

@ -26,6 +26,8 @@
/**
* Action: index.
*
* @param $array $user User receiving mail
*/
public function index($user)
{

View file

@ -1108,46 +1108,6 @@
}
/**
* Action: createmedia.
* TODO only temporary for easier data import.
*
* Display a form for creating new Seminary media.
*
* @param string $seminaryUrl URL-title of Seminary
*/
public function createmedia($seminaryUrl)
{
// Get seminary
$seminary = $this->Seminaries->getSeminaryByUrl($seminaryUrl);
// Create media
$mediaId = null;
$error = null;
if($this->request->getRequestMethod() == 'POST' && !is_null($this->request->getPostParam('submit')))
{
$file = $_FILES['file'];
$error = $file['error'];
if(empty($error))
{
$mediaId = $this->Media->createQuestMedia(
$this->Auth->getUserId(),
$seminary['id'],
$file['name'],
$this->request->getPostParam('description'),
$file['type'],
$file['tmp_name']
);
}
}
// Pass data to view
$this->set('seminary', $seminary);
$this->set('mediaid', $mediaId);
}
/**

View file

@ -74,6 +74,7 @@
* @throws IdNotFoundException
* @param string $seminaryUrl URL-title of Seminary
* @param string $uploadUrl URL-name of the upload
* @param string $action Current action (optional)
*/
public function seminary($seminaryUrl, $uploadUrl, $action=null)
{

View file

@ -49,6 +49,8 @@
/**
* Action: index.
*
* @param string $all Whether to list all users at once or not (optional)
*/
public function index($all=null)
{