MDL-29624 Media embedding system : phpdoc tweaks.

This commit is contained in:
Aparup Banerjee 2012-05-10 10:51:15 +08:00
parent e1e3fa217f
commit 83c9d449e0
3 changed files with 8 additions and 16 deletions

View file

@ -35,26 +35,18 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
if (!defined('CORE_MEDIA_VIDEO_WIDTH')) { if (!defined('CORE_MEDIA_VIDEO_WIDTH')) {
/** // Default video width if no width is specified; some players may do something
* Default video width if no width is specified; some players may do something // more intelligent such as use real video width.
* more intelligent such as use real video width. // May be defined in config.php if required.
*
* May be defined in config.php if required.
*/
define('CORE_MEDIA_VIDEO_WIDTH', 400); define('CORE_MEDIA_VIDEO_WIDTH', 400);
} }
if (!defined('CORE_MEDIA_VIDEO_HEIGHT')) { if (!defined('CORE_MEDIA_VIDEO_HEIGHT')) {
/** // Default video height. May be defined in config.php if required.
* Default video height. May be defined in config.php if required.
*/
define('CORE_MEDIA_VIDEO_HEIGHT', 300); define('CORE_MEDIA_VIDEO_HEIGHT', 300);
} }
if (!defined('CORE_MEDIA_AUDIO_WIDTH')) { if (!defined('CORE_MEDIA_AUDIO_WIDTH')) {
/** // Default audio width if no width is specified.
* Default audio width if no width is specified. // May be defined in config.php if required.
*
* May be defined in config.php if required.
*/
define('CORE_MEDIA_AUDIO_WIDTH', 300); define('CORE_MEDIA_AUDIO_WIDTH', 300);
} }

View file

@ -2942,7 +2942,7 @@ class core_media_renderer extends plugin_renderer_base {
protected function get_players() { protected function get_players() {
global $CFG; global $CFG;
// Save time by only building the list once // Save time by only building the list once.
if (!$this->players) { if (!$this->players) {
// Get raw list of players. // Get raw list of players.
$players = $this->get_players_raw(); $players = $this->get_players_raw();

View file

@ -42,7 +42,7 @@ class medialib_testcase extends advanced_testcase {
global $CFG; global $CFG;
parent::setUp(); parent::setUp();
// Reset CFG // Reset CFG.
$this->resetAfterTest(true); $this->resetAfterTest(true);
// Consistent initial setup: all players disabled. // Consistent initial setup: all players disabled.