forked from jessp01/server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Merge branch 'master' of https://github.com/kaltura/server"
- Loading branch information
Showing
1,308 changed files
with
148,602 additions
and
3,313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
configurations/admin.ini | ||
configurations/batch.ini | ||
configurations/db.ini | ||
configurations/dc_config.ini | ||
configurations/generator.ini | ||
configurations/html5.php | ||
configurations/local.ini | ||
configurations/logger.ini | ||
configurations/plugins.ini | ||
configurations/system.ini | ||
configurations/url_managers.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<iframe width="100%" height="550" src="/api_v3/testmeDoc?hideMenu=true" frameborder="0" class="auto-height"></iframe> | ||
<iframe width="100%" height="550" src="/api_v3/testmeDoc/?hideMenu=true" frameborder="0" class="auto-height"></iframe> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<iframe width="100%" height="550" src="/api_v3/testme?hideMenu=true" frameborder="0" class="auto-height"></iframe> | ||
<iframe width="100%" height="550" src="/api_v3/testme/?hideMenu=true" frameborder="0" class="auto-height"></iframe> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<iframe width="100%" height="550" src="/api_v3/xsdDoc?hideMenu=true" frameborder="0" class="auto-height"></iframe> | ||
<iframe width="100%" height="550" src="/api_v3/xsdDoc/?hideMenu=true" frameborder="0" class="auto-height"></iframe> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
alpha/apps/kaltura/lib/events/consumers/kObjectReplacedEventConsumer.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
/** | ||
* Applicative event that raised explicitly by the developer | ||
* @package Core | ||
* @subpackage events | ||
*/ | ||
interface kObjectReplacedEventConsumer extends KalturaEventConsumer | ||
{ | ||
/** | ||
* @param BaseObject $object | ||
* @param BatchJob $raisedJob | ||
* @return bool true if should continue to the next consumer | ||
*/ | ||
public function objectReplaced(BaseObject $object, BatchJob $raisedJob = null); | ||
|
||
/** | ||
* @param BaseObject $object | ||
* @return bool true if the consumer should handle the event | ||
*/ | ||
public function shouldConsumeReplacedEvent(BaseObject $object); | ||
} |
33 changes: 33 additions & 0 deletions
33
alpha/apps/kaltura/lib/events/events/kObjectReplacedEvent.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/** | ||
* Applicative event that raised explicitly by the developer | ||
* @package Core | ||
* @subpackage events | ||
*/ | ||
class kObjectReplacedEvent extends kApplicativeEvent | ||
{ | ||
const EVENT_CONSUMER = 'kObjectReplacedEventConsumer'; | ||
|
||
public function getConsumerInterface() | ||
{ | ||
return self::EVENT_CONSUMER; | ||
} | ||
|
||
/** | ||
* @param kObjectReadyForReplacmentEventConsumer $consumer | ||
* @return bool true if should continue to the next consumer | ||
*/ | ||
protected function doConsume(KalturaEventConsumer $consumer) | ||
{ | ||
if(!$consumer->shouldConsumeReplacedEvent($this->object)) | ||
return true; | ||
|
||
$additionalLog = ''; | ||
if(method_exists($this->object, 'getId')) | ||
$additionalLog .= 'id [' . $this->object->getId() . ']'; | ||
|
||
KalturaLog::debug(get_class($this) . ' event consumed by ' . get_class($consumer) . ' object type [' . get_class($this->object) . '] ' . $additionalLog); | ||
return $consumer->objectReplaced($this->object, $this->raisedJob); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.