Navigation Menu

Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Media: Controller and Model Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed May 24, 2017
1 parent bcc5d77 commit fc0e72a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
23 changes: 23 additions & 0 deletions module/Media/src/Media/Controller/MediaController.php
Expand Up @@ -31,6 +31,9 @@

class MediaController extends AbstractActionController
{
/**
* Variables
*/
protected $mediaModel = null;
protected $bsock = null;
protected $acl_alert = false;
Expand All @@ -40,6 +43,11 @@ class MediaController extends AbstractActionController
"llist"
);

/**
* Index Action
*
* @return object
*/
public function indexAction()
{
$this->RequestURIPlugin()->setRequestURI();
Expand Down Expand Up @@ -74,6 +82,11 @@ public function indexAction()
);
}

/**
* Details Action
*
* @return object
*/
public function detailsAction()
{
$this->RequestURIPlugin()->setRequestURI();
Expand All @@ -99,6 +112,11 @@ public function detailsAction()
));
}

/**
* Get Data Action
*
* @return object
*/
public function getDataAction()
{
$this->RequestURIPlugin()->setRequestURI();
Expand Down Expand Up @@ -154,6 +172,11 @@ public function getDataAction()
return $response;
}

/**
* Get Media Model
*
* @return object
*/
public function getMediaModel()
{
if(!$this->mediaModel) {
Expand Down
23 changes: 23 additions & 0 deletions module/Media/src/Media/Model/MediaModel.php
Expand Up @@ -28,6 +28,13 @@
class MediaModel
{

/**
* Get all Volumes/Media
*
* @param $bsock
*
* @return array
*/
public function getVolumes(&$bsock=null)
{
if(isset($bsock)) {
Expand All @@ -47,6 +54,14 @@ public function getVolumes(&$bsock=null)
}
}

/**
* Get a single Volume
*
* @param $bsock
* @param $volume
*
* @return array
*/
public function getVolume(&$bsock=null, $volume=null)
{
if(isset($bsock, $volume)) {
Expand All @@ -60,6 +75,14 @@ public function getVolume(&$bsock=null, $volume=null)
}
}

/**
* Get Volume Jobs
*
* @param $bsock
* @param $volume
*
* @return array
*/
public function getVolumeJobs(&$bsock=null, $volume=null)
{
if(isset($bsock, $volume)) {
Expand Down

0 comments on commit fc0e72a

Please sign in to comment.