Skip to content

Commit

Permalink
Naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
blItzkrIg1o1 committed Jun 23, 2014
1 parent 77b968f commit ba32e7c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions alpha/lib/model/LiveEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ public function setDvrWindow($v)
public function setStreamName ( $v ) { $this->putInCustomData ( "streamName" , $v ); }
public function getStreamName ( ) { return $this->getFromCustomData( "streamName", null, $this->getId() . '_%i' ); }

public function setFirstBroadcastTime ( $v ) { $this->putInCustomData ( "first_broadcast" , $v ); }
public function getFirstBroadcastTime ( ) { return $this->getFromCustomData( "first_broadcast"); }
public function setFirstBroadcast ( $v ) { $this->putInCustomData ( "first_broadcast" , $v ); }
public function getFirstBroadcast ( ) { return $this->getFromCustomData( "first_broadcast"); }

public function getPushPublishEnabled()
{
Expand Down Expand Up @@ -568,7 +568,7 @@ public function getDynamicAttributes()
{
$dynamicAttributes = array(
LiveEntry::IS_LIVE => intval($this->hasMediaServer()),
LiveEntry::FIRST_BROADCAST => $this->getFirstBroadcastTime());
LiveEntry::FIRST_BROADCAST => $this->getFirstBroadcast());

return array_merge( $dynamicAttributes, parent::getDynamicAttributes() );
}
Expand Down
4 changes: 2 additions & 2 deletions api_v3/lib/KalturaLiveEntryService.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ function registerMediaServerAction($entryId, $hostname, $mediaServerIndex)
throw new KalturaAPIException(KalturaErrors::ENTRY_ID_NOT_FOUND, $entryId);

$dbEntry->setMediaServer($mediaServerIndex, $hostname);
if(is_null($dbEntry->getFirstBroadcastTime()))
$dbEntry->setFirstBroadcastTime(time());
if(is_null($dbEntry->getFirstBroadcast()))
$dbEntry->setFirstBroadcast(time());
$dbEntry->save();

$entry = KalturaEntryFactory::getInstanceByType($dbEntry->getType());
Expand Down
4 changes: 2 additions & 2 deletions api_v3/lib/types/entry/KalturaLiveEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ abstract class KalturaLiveEntry extends KalturaMediaEntry
* @readonly
* @filter order
*/
public $firstBroadcastTime;
public $firstBroadcast;

private static $map_between_objects = array
(
Expand All @@ -72,7 +72,7 @@ abstract class KalturaLiveEntry extends KalturaMediaEntry
"liveStreamConfigurations",
"recordedEntryId",
"pushPublishEnabled",
"firstBroadcastTime",
"firstBroadcast",
);

/* (non-PHPdoc)
Expand Down

0 comments on commit ba32e7c

Please sign in to comment.