2011-08-15 22:10:46 +02:00
|
|
|
<?php
|
2012-07-16 03:17:13 +02:00
|
|
|
class Application_Model_StreamSetting
|
|
|
|
{
|
2012-07-10 05:32:21 +02:00
|
|
|
public static function setValue($key, $value, $type)
|
2012-04-01 21:51:03 +02:00
|
|
|
{
|
|
|
|
$con = Propel::getConnection();
|
2012-03-02 22:55:11 +01:00
|
|
|
|
2012-04-01 21:51:03 +02:00
|
|
|
// Check if key already exists
|
2012-03-02 22:55:11 +01:00
|
|
|
$sql = "SELECT COUNT(*) FROM cc_stream_setting"
|
2012-09-05 21:15:56 +02:00
|
|
|
." WHERE keyname = :key";
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2012-09-05 21:15:56 +02:00
|
|
|
$stmt = $con->prepare($sql);
|
|
|
|
$stmt->bindParam(':key', $key);
|
|
|
|
|
|
|
|
if ($stmt->execute()) {
|
|
|
|
$result = $stmt->fetchColumn(0);
|
|
|
|
} else {
|
|
|
|
$msg = implode(',', $stmt->errorInfo());
|
|
|
|
throw new Exception("Error: $msg");
|
|
|
|
}
|
2012-03-02 22:55:11 +01:00
|
|
|
|
2012-04-01 21:51:03 +02:00
|
|
|
if ($result == 1) {
|
2012-03-02 22:55:11 +01:00
|
|
|
$sql = "UPDATE cc_stream_setting"
|
2012-09-05 21:15:56 +02:00
|
|
|
." SET value = :value, type = :type"
|
|
|
|
." WHERE keyname = :key";
|
2012-03-02 22:55:11 +01:00
|
|
|
} else {
|
|
|
|
$sql = "INSERT INTO cc_stream_setting (keyname, value, type)"
|
2012-09-05 21:15:56 +02:00
|
|
|
." VALUES (:key, :value, :type)";
|
2012-03-02 22:55:11 +01:00
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2012-09-05 21:15:56 +02:00
|
|
|
$stmt = $con->prepare($sql);
|
|
|
|
$stmt->bindParam(':key', $key);
|
|
|
|
$stmt->bindParam(':value', $value);
|
|
|
|
$stmt->bindParam(':type', $type);
|
|
|
|
|
|
|
|
if ($stmt->execute()) {
|
|
|
|
//do nothing
|
|
|
|
} else {
|
|
|
|
$msg = implode(',', $stmt->errorInfo());
|
|
|
|
throw new Exception("Error: $msg");
|
|
|
|
}
|
2012-03-02 22:55:11 +01:00
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2012-07-10 05:32:21 +02:00
|
|
|
public static function getValue($key)
|
2012-04-01 21:51:03 +02:00
|
|
|
{
|
2012-07-16 03:17:13 +02:00
|
|
|
$con = Propel::getConnection();
|
2012-09-05 21:15:56 +02:00
|
|
|
|
2012-03-02 22:55:11 +01:00
|
|
|
//Check if key already exists
|
2012-09-05 21:15:56 +02:00
|
|
|
$sql = "SELECT value FROM cc_stream_setting"
|
|
|
|
." WHERE keyname = :key";
|
2012-03-02 22:55:11 +01:00
|
|
|
|
2012-09-05 21:15:56 +02:00
|
|
|
$stmt = $con->prepare($sql);
|
|
|
|
$stmt->bindParam(':key', $key);
|
|
|
|
|
|
|
|
if ($stmt->execute()) {
|
|
|
|
$result = $stmt->fetchColumn(0);
|
2012-07-10 05:32:21 +02:00
|
|
|
} else {
|
2012-09-05 21:15:56 +02:00
|
|
|
$msg = implode(',', $stmt->errorInfo());
|
|
|
|
throw new Exception("Error: $msg");
|
2012-03-02 22:55:11 +01:00
|
|
|
}
|
2012-09-05 21:15:56 +02:00
|
|
|
|
|
|
|
return $result ? $result : "";
|
2012-03-02 22:55:11 +01:00
|
|
|
}
|
2011-09-27 21:26:40 +02:00
|
|
|
|
|
|
|
/* Returns the id's of all streams that are enabled in an array. An
|
|
|
|
* example of the array returned in JSON notation is ["s1", "s2", "s3"] */
|
2012-04-01 21:51:03 +02:00
|
|
|
public static function getEnabledStreamIds()
|
|
|
|
{
|
|
|
|
$con = Propel::getConnection();
|
2011-09-27 21:26:40 +02:00
|
|
|
$sql = "SELECT * "
|
|
|
|
."FROM cc_stream_setting "
|
2011-11-29 22:25:30 +01:00
|
|
|
."WHERE keyname LIKE '%_enable' "
|
2011-11-30 22:10:40 +01:00
|
|
|
."AND value='true'";
|
2011-09-27 21:26:40 +02:00
|
|
|
|
2012-04-01 21:51:03 +02:00
|
|
|
$rows = $con->query($sql)->fetchAll();
|
2011-09-27 21:26:40 +02:00
|
|
|
$ids = array();
|
|
|
|
|
2012-04-01 21:51:03 +02:00
|
|
|
foreach ($rows as $row) {
|
2011-09-27 21:26:40 +02:00
|
|
|
$ids[] = substr($row["keyname"], 0, strpos($row["keyname"], "_"));
|
|
|
|
}
|
|
|
|
|
2012-08-22 00:41:56 +02:00
|
|
|
//Logging::info(print_r($ids, true));
|
2011-09-27 21:26:40 +02:00
|
|
|
return $ids;
|
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
|
|
|
|
/* Returns only global data as array*/
|
|
|
|
public static function getGlobalData()
|
|
|
|
{
|
|
|
|
$con = Propel::getConnection();
|
2011-11-25 23:33:59 +01:00
|
|
|
$sql = "SELECT * "
|
2012-04-01 21:51:03 +02:00
|
|
|
."FROM cc_stream_setting "
|
|
|
|
."WHERE keyname IN ('output_sound_device', 'icecast_vorbis_metadata')";
|
|
|
|
|
|
|
|
$rows = $con->query($sql)->fetchAll();
|
2011-11-25 23:33:59 +01:00
|
|
|
$data = array();
|
2012-04-01 21:51:03 +02:00
|
|
|
|
|
|
|
foreach ($rows as $row) {
|
|
|
|
$data[$row["keyname"]] = $row["value"];
|
2011-11-25 23:33:59 +01:00
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2011-11-25 23:33:59 +01:00
|
|
|
return $data;
|
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2011-09-27 21:26:40 +02:00
|
|
|
/* Returns all information related to a specific stream. An example
|
|
|
|
* of a stream id is 's1' or 's2'. */
|
2012-04-01 21:51:03 +02:00
|
|
|
public static function getStreamData($p_streamId)
|
|
|
|
{
|
|
|
|
$con = Propel::getConnection();
|
2012-09-17 22:17:53 +02:00
|
|
|
$streamId = pg_escape_string($p_streamId);
|
2011-09-27 21:26:40 +02:00
|
|
|
$sql = "SELECT * "
|
|
|
|
."FROM cc_stream_setting "
|
2012-09-17 22:17:53 +02:00
|
|
|
."WHERE keyname LIKE '{$streamId}_%'";
|
2012-09-05 21:15:56 +02:00
|
|
|
|
|
|
|
$stmt = $con->prepare($sql);
|
|
|
|
|
|
|
|
if ($stmt->execute()) {
|
|
|
|
$rows = $stmt->fetchAll();
|
|
|
|
} else {
|
|
|
|
$msg = implode(',', $stmt->errorInfo());
|
|
|
|
throw new Exception("Error: $msg");
|
|
|
|
}
|
2011-09-27 21:26:40 +02:00
|
|
|
|
|
|
|
$data = array();
|
|
|
|
|
2012-04-01 21:51:03 +02:00
|
|
|
foreach ($rows as $row) {
|
2011-09-27 21:26:40 +02:00
|
|
|
$data[$row["keyname"]] = $row["value"];
|
|
|
|
}
|
|
|
|
|
|
|
|
return $data;
|
2011-08-15 22:10:46 +02:00
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
|
|
|
|
public static function getStreamSetting()
|
|
|
|
{
|
|
|
|
$con = Propel::getConnection();
|
2011-08-15 22:10:46 +02:00
|
|
|
$sql = "SELECT *"
|
2011-10-11 02:14:27 +02:00
|
|
|
." FROM cc_stream_setting"
|
|
|
|
." WHERE keyname not like '%_error'";
|
2011-08-15 22:10:46 +02:00
|
|
|
|
2012-04-01 21:51:03 +02:00
|
|
|
$rows = $con->query($sql)->fetchAll();
|
|
|
|
|
2012-03-05 19:51:59 +01:00
|
|
|
$exists = array();
|
2012-04-01 21:51:03 +02:00
|
|
|
|
|
|
|
foreach ($rows as $r) {
|
|
|
|
if ($r['keyname'] == 'master_live_stream_port') {
|
2012-03-05 19:51:59 +01:00
|
|
|
$exists['master_live_stream_port'] = true;
|
2012-07-16 03:17:13 +02:00
|
|
|
} elseif ($r['keyname'] == 'master_live_stream_mp') {
|
2012-03-05 19:51:59 +01:00
|
|
|
$exists['master_live_stream_mp'] = true;
|
2012-07-16 03:17:13 +02:00
|
|
|
} elseif ($r['keyname'] == 'dj_live_stream_port') {
|
2012-03-05 19:51:59 +01:00
|
|
|
$exists['dj_live_stream_port'] = true;
|
2012-07-16 03:17:13 +02:00
|
|
|
} elseif ($r['keyname'] == 'dj_live_stream_mp') {
|
2012-03-05 19:51:59 +01:00
|
|
|
$exists['dj_live_stream_mp'] = true;
|
|
|
|
}
|
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
|
|
|
|
if (!isset($exists["master_live_stream_port"])) {
|
2012-07-11 00:51:32 +02:00
|
|
|
$rows[] = array("keyname" =>"master_live_stream_port",
|
|
|
|
"value"=>self::getMasterLiveStreamPort(),
|
2012-07-10 05:32:21 +02:00
|
|
|
"type"=>"integer");
|
2012-03-02 22:55:11 +01:00
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
if (!isset($exists["master_live_stream_mp"])) {
|
2012-07-11 00:51:32 +02:00
|
|
|
$rows[] = array("keyname" =>"master_live_stream_mp",
|
|
|
|
"value"=>self::getMasterLiveStreamMountPoint(),
|
2012-07-10 05:32:21 +02:00
|
|
|
"type"=>"string");
|
2012-03-02 22:55:11 +01:00
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
if (!isset($exists["dj_live_stream_port"])) {
|
2012-07-11 00:51:32 +02:00
|
|
|
$rows[] = array("keyname" =>"dj_live_stream_port",
|
|
|
|
"value"=>self::getDjLiveStreamPort(),
|
2012-07-10 05:32:21 +02:00
|
|
|
"type"=>"integer");
|
2012-03-02 22:55:11 +01:00
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
if (!isset($exists["dj_live_stream_mp"])) {
|
2012-07-11 00:51:32 +02:00
|
|
|
$rows[] = array("keyname" =>"dj_live_stream_mp",
|
|
|
|
"value"=>self::getDjLiveStreamMountPoint(),
|
2012-07-10 05:32:21 +02:00
|
|
|
"type"=>"string");
|
2012-03-02 22:55:11 +01:00
|
|
|
}
|
2012-07-16 03:17:13 +02:00
|
|
|
|
2011-08-15 22:10:46 +02:00
|
|
|
return $rows;
|
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2012-08-29 23:51:47 +02:00
|
|
|
|
|
|
|
private static function saveStreamSetting($key, $value)
|
|
|
|
{
|
|
|
|
$stream_setting = CcStreamSettingQuery::create()->filterByDbKeyName($key)->findOne();
|
|
|
|
if (is_null($stream_setting)) {
|
|
|
|
throw new Exception("Keyname $key does not exist!");
|
|
|
|
}
|
|
|
|
|
|
|
|
$stream_setting->setDbValue($value);
|
|
|
|
$stream_setting->save();
|
|
|
|
}
|
|
|
|
|
2011-11-13 21:34:26 +01:00
|
|
|
/*
|
|
|
|
* function that take all the information of stream and sets them.
|
|
|
|
* This is used by stream setting via UI.
|
2012-04-01 21:51:03 +02:00
|
|
|
*
|
2011-11-13 21:34:26 +01:00
|
|
|
* @param $data - array that contains all the data. $data is [][] which
|
|
|
|
* contains multiple stream information
|
|
|
|
*/
|
2012-04-01 21:51:03 +02:00
|
|
|
public static function setStreamSetting($data)
|
|
|
|
{
|
2012-07-10 05:32:21 +02:00
|
|
|
foreach ($data as $key => $d) {
|
2011-11-29 22:25:30 +01:00
|
|
|
if ($key == "output_sound_device" || $key == "icecast_vorbis_metadata") {
|
2012-09-04 22:00:12 +02:00
|
|
|
$v = ($d == 1) ? "true" : "false";
|
2012-08-29 23:51:47 +02:00
|
|
|
|
|
|
|
self::saveStreamSetting($key, $v);
|
2012-07-16 03:17:13 +02:00
|
|
|
} elseif ($key == "output_sound_device_type") {
|
2012-09-04 22:00:12 +02:00
|
|
|
self::saveStreamSetting($key, $d);
|
2012-07-16 03:17:13 +02:00
|
|
|
} elseif (is_array($d)) {
|
2011-08-18 19:53:12 +02:00
|
|
|
$temp = explode('_', $key);
|
|
|
|
$prefix = $temp[0];
|
2012-07-10 05:32:21 +02:00
|
|
|
foreach ($d as $k => $v) {
|
2011-11-29 22:25:30 +01:00
|
|
|
$keyname = $prefix . "_" . $k;
|
|
|
|
if ($k == 'enable') {
|
|
|
|
$v = $d['enable'] == 1 ? 'true' : 'false';
|
2011-08-18 19:53:12 +02:00
|
|
|
}
|
2011-09-01 22:02:06 +02:00
|
|
|
$v = trim($v);
|
2012-08-29 23:51:47 +02:00
|
|
|
self::saveStreamSetting($keyname, $v);
|
2011-08-18 19:53:12 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2012-10-17 21:28:05 +02:00
|
|
|
/*
|
|
|
|
* Sets indivisual stream setting.
|
|
|
|
*
|
|
|
|
* $data - data array. $data is [].
|
|
|
|
* TODO: Make this SQL a prepared statement!
|
|
|
|
*
|
|
|
|
* Do not remove this function. It is called by airtime-system.php
|
|
|
|
*/
|
|
|
|
public static function setIndividualStreamSetting($data)
|
|
|
|
{
|
|
|
|
$con = Propel::getConnection();
|
|
|
|
|
|
|
|
foreach ($data as $keyname => $v) {
|
|
|
|
$sql = "UPDATE cc_stream_setting SET value='$v' WHERE keyname='$keyname'";
|
|
|
|
$con->exec($sql);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-11-30 02:15:38 +01:00
|
|
|
/*
|
|
|
|
* Stores liquidsoap status if $boot_time > save time.
|
|
|
|
* save time is the time that user clicked save on stream setting page
|
|
|
|
*/
|
2012-04-01 21:51:03 +02:00
|
|
|
public static function setLiquidsoapError($stream_id, $msg, $boot_time=null)
|
|
|
|
{
|
2012-07-16 03:17:13 +02:00
|
|
|
$con = Propel::getConnection();
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2011-11-30 02:15:38 +01:00
|
|
|
$update_time = Application_Model_Preference::GetStreamUpdateTimestemp();
|
2012-04-01 21:51:03 +02:00
|
|
|
if ($boot_time == null || $boot_time > $update_time) {
|
2011-11-30 02:15:38 +01:00
|
|
|
$keyname = "s".$stream_id."_liquidsoap_error";
|
|
|
|
$sql = "SELECT COUNT(*) FROM cc_stream_setting"
|
2012-09-05 21:15:56 +02:00
|
|
|
." WHERE keyname = :keyname";
|
|
|
|
|
|
|
|
$stmt = $con->prepare($sql);
|
|
|
|
$stmt->bindParam(':keyname', $keyname);
|
|
|
|
|
|
|
|
if ($stmt->execute()) {
|
|
|
|
$result= $stmt->fetchColumn(0);
|
|
|
|
} else {
|
|
|
|
$msg = implode(',', $stmt->errorInfo());
|
|
|
|
throw new Exception("Error: $msg");
|
|
|
|
}
|
|
|
|
|
2012-04-01 21:51:03 +02:00
|
|
|
if ($result == 1) {
|
2011-11-30 02:15:38 +01:00
|
|
|
$sql = "UPDATE cc_stream_setting"
|
2012-09-05 21:15:56 +02:00
|
|
|
." SET value = :msg"
|
|
|
|
." WHERE keyname = :keyname";
|
2012-04-01 21:51:03 +02:00
|
|
|
} else {
|
2011-11-30 02:15:38 +01:00
|
|
|
$sql = "INSERT INTO cc_stream_setting (keyname, value, type)"
|
2012-09-05 21:15:56 +02:00
|
|
|
." VALUES (:keyname, :msg, 'string')";
|
|
|
|
}
|
|
|
|
|
|
|
|
$stmt = $con->prepare($sql);
|
|
|
|
$stmt->bindParam(':keyname', $keyname);
|
|
|
|
$stmt->bindParam(':msg', $msg);
|
|
|
|
|
|
|
|
if ($stmt->execute()) {
|
|
|
|
//do nothing
|
|
|
|
} else {
|
|
|
|
$msg = implode(',', $stmt->errorInfo());
|
|
|
|
throw new Exception("Error: $msg");
|
2011-11-30 02:15:38 +01:00
|
|
|
}
|
2011-10-11 02:14:27 +02:00
|
|
|
}
|
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
|
|
|
|
public static function getLiquidsoapError($stream_id)
|
|
|
|
{
|
2012-07-16 03:17:13 +02:00
|
|
|
$con = Propel::getConnection();
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2011-10-11 02:14:27 +02:00
|
|
|
$keyname = "s".$stream_id."_liquidsoap_error";
|
|
|
|
$sql = "SELECT value FROM cc_stream_setting"
|
2012-09-05 21:15:56 +02:00
|
|
|
." WHERE keyname = :keyname";
|
|
|
|
|
|
|
|
$stmt = $con->prepare($sql);
|
|
|
|
$stmt->bindParam(':keyname', $keyname);
|
|
|
|
|
|
|
|
if ($stmt->execute()) {
|
|
|
|
$result= $stmt->fetchColumn(0);
|
|
|
|
} else {
|
|
|
|
$msg = implode(',', $stmt->errorInfo());
|
|
|
|
throw new Exception("Error: $msg");
|
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2012-07-10 05:32:21 +02:00
|
|
|
return ($result !== false) ? $result : null;
|
2011-10-11 02:14:27 +02:00
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
|
|
|
|
public static function getStreamEnabled($stream_id)
|
|
|
|
{
|
2012-07-16 03:17:13 +02:00
|
|
|
$con = Propel::getConnection();
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2011-11-29 22:25:30 +01:00
|
|
|
$keyname = "s" . $stream_id . "_enable";
|
2011-10-13 20:20:08 +02:00
|
|
|
$sql = "SELECT value FROM cc_stream_setting"
|
2012-09-05 21:15:56 +02:00
|
|
|
." WHERE keyname = :keyname";
|
|
|
|
|
|
|
|
$stmt = $con->prepare($sql);
|
|
|
|
$stmt->bindParam(':keyname', $keyname);
|
|
|
|
|
|
|
|
if ($stmt->execute()) {
|
|
|
|
$result= $stmt->fetchColumn(0);
|
2011-11-29 22:25:30 +01:00
|
|
|
} else {
|
2012-09-05 21:15:56 +02:00
|
|
|
$msg = implode(',', $stmt->errorInfo());
|
|
|
|
throw new Exception("Error: $msg");
|
2011-10-13 20:20:08 +02:00
|
|
|
}
|
2012-07-16 03:17:13 +02:00
|
|
|
|
2012-09-05 21:15:56 +02:00
|
|
|
return ($result != 'false');
|
2011-10-13 20:20:08 +02:00
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2011-12-07 16:31:16 +01:00
|
|
|
/*
|
|
|
|
* Only returns info that is needed for data collection
|
|
|
|
* returns array('s1'=>array(keyname=>value))
|
|
|
|
*/
|
2012-04-01 21:51:03 +02:00
|
|
|
public static function getStreamInfoForDataCollection()
|
|
|
|
{
|
2012-07-16 03:17:13 +02:00
|
|
|
$con = Propel::getConnection();
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2011-12-07 16:31:16 +01:00
|
|
|
$out = array();
|
|
|
|
$enabled_stream = self::getEnabledStreamIds();
|
2012-04-01 21:51:03 +02:00
|
|
|
|
|
|
|
foreach ($enabled_stream as $stream) {
|
2012-09-05 21:15:56 +02:00
|
|
|
$keys = array("{$stream}_output", "{$stream}_type", "{$stream}_bitrate", "{$stream}_host");
|
|
|
|
$key_csv = implode(',', $keys);
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2011-12-07 16:31:16 +01:00
|
|
|
$sql = "SELECT keyname, value FROM cc_stream_setting"
|
2012-09-05 21:15:56 +02:00
|
|
|
." WHERE keyname IN (:key_csv)";
|
|
|
|
|
|
|
|
$stmt = $con->prepare($sql);
|
|
|
|
$stmt->bindParam(':key_csv', $key_csv);
|
|
|
|
|
|
|
|
if ($stmt->execute()) {
|
|
|
|
$rows = $stmt->fetchAll();
|
|
|
|
} else {
|
|
|
|
$msg = implode(',', $stmt->errorInfo());
|
|
|
|
throw new Exception("Error: $msg");
|
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2011-12-07 16:31:16 +01:00
|
|
|
$info = array();
|
2012-04-01 21:51:03 +02:00
|
|
|
foreach ($rows as $r) {
|
2011-12-07 16:31:16 +01:00
|
|
|
$temp = explode("_", $r['keyname']);
|
|
|
|
$info[$temp[1]] = $r['value'];
|
2012-04-01 21:51:03 +02:00
|
|
|
$out[$stream] = $info;
|
2011-12-07 16:31:16 +01:00
|
|
|
}
|
|
|
|
}
|
2012-07-16 03:17:13 +02:00
|
|
|
|
2011-12-07 16:31:16 +01:00
|
|
|
return $out;
|
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2012-07-10 05:32:21 +02:00
|
|
|
public static function setMasterLiveStreamPort($value)
|
|
|
|
{
|
|
|
|
self::setValue("master_live_stream_port", $value, "integer");
|
2012-03-02 22:55:11 +01:00
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2012-07-10 05:32:21 +02:00
|
|
|
public static function getMasterLiveStreamPort()
|
|
|
|
{
|
|
|
|
return self::getValue("master_live_stream_port");
|
2012-03-02 22:55:11 +01:00
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2012-07-10 05:32:21 +02:00
|
|
|
public static function setMasterLiveStreamMountPoint($value)
|
|
|
|
{
|
|
|
|
self::setValue("master_live_stream_mp", $value, "string");
|
2012-03-02 22:55:11 +01:00
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2012-07-10 05:32:21 +02:00
|
|
|
public static function getMasterLiveStreamMountPoint()
|
|
|
|
{
|
|
|
|
return self::getValue("master_live_stream_mp");
|
2012-03-02 22:55:11 +01:00
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2012-07-10 05:32:21 +02:00
|
|
|
public static function setDjLiveStreamPort($value)
|
|
|
|
{
|
|
|
|
self::setValue("dj_live_stream_port", $value, "integer");
|
2012-03-02 22:55:11 +01:00
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2012-07-10 05:32:21 +02:00
|
|
|
public static function getDjLiveStreamPort()
|
|
|
|
{
|
|
|
|
return self::getValue("dj_live_stream_port");
|
2012-03-02 22:55:11 +01:00
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2012-07-10 05:32:21 +02:00
|
|
|
public static function setDjLiveStreamMountPoint($value)
|
|
|
|
{
|
|
|
|
self::setValue("dj_live_stream_mp", $value, "string");
|
2012-03-02 22:55:11 +01:00
|
|
|
}
|
2012-04-01 21:51:03 +02:00
|
|
|
|
2012-07-10 05:32:21 +02:00
|
|
|
public static function getDjLiveStreamMountPoint()
|
|
|
|
{
|
|
|
|
return self::getValue("dj_live_stream_mp");
|
2012-03-02 22:55:11 +01:00
|
|
|
}
|
2011-09-27 21:26:40 +02:00
|
|
|
}
|