New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REACH-Cloning reach profile and partner catalog items #7903

Merged
merged 2 commits into from Dec 6, 2018

Conversation

Projects
None yet
2 participants
@gotlieb
Copy link
Contributor

gotlieb commented Dec 6, 2018

{
if ($resultItem->getCode() == "SERVICE_FORBIDDEN_CONTENT_BLOCKED")
{
$resultMessage = $resultItem->getMessage(). ". ";

This comment has been minimized.

@MosheMaorKaltura

MosheMaorKaltura Dec 6, 2018

Contributor

Use ' instead of "

$resultMessage .= $resultItem->getMessage(). ". ";
}
}
if (count($resultMessage))

This comment has been minimized.

@MosheMaorKaltura

MosheMaorKaltura Dec 6, 2018

Contributor

Count of null does not work in php7.2

{
if ($resultItem instanceof Kaltura_Client_Exception)
{
if ($resultItem->getCode() == "SERVICE_FORBIDDEN_CONTENT_BLOCKED")

This comment has been minimized.

@MosheMaorKaltura

MosheMaorKaltura Dec 6, 2018

Contributor

Single quotes

$partnerCatalogItems = array();
$result = $reachPluginClient->vendorCatalogItem->listAction($catalogItemProfileFilter, $pager);
$totalCount = $result->totalCount;
while ($totalCount > 0)

This comment has been minimized.

@MosheMaorKaltura

MosheMaorKaltura Dec 6, 2018

Contributor

do
{
$result = $reachPluginClient->vendorCatalogItem->listAction($catalogItemProfileFilter, $pager);
foreach ($result->objects as $partnerCatalogItem)
{
/* @var $partnerCatalogItem Kaltura_Client_Reach_Type_VendorCatalogItem */
$partnerCatalogItems[] = $partnerCatalogItem;
}
$pager->pageIndex++;
}
while(count($result->objects));

@gotlieb gotlieb merged commit e7c5fba into Naos-14.10.0 Dec 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment