Last active
December 16, 2015 22:20
-
-
Save justinkelly/5506378 to your computer and use it in GitHub Desktop.
Kaltura PHP API v 3 filter by startDate issue
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
<?php | |
//.... | |
//sample code | |
$cat_id = '8317721'; | |
$page_id=1; | |
$pageSize=15; | |
$pager = new \Kaltura\Client\Type\FilterPager(); | |
$pager->pageIndex = $page_id; | |
$pager->pageSize = $pageSize; | |
$filter2 = new \Kaltura\Client\Type\MediaEntryFilter(); | |
$filter2->orderBy = Kaltura\Client\Enum\MediaEntryOrderBy::START_DATE_DESC; | |
/* | |
have tried : | |
$filter2->orderBy = 'startDate'; | |
$filter2->orderBy = '-startDate'; | |
$filter2->orderBy = 'START_DATE' | |
*/ | |
$filter2->categoriesIdsMatchAnd = $cat_id; | |
$entries = $client->media->listAction($filter2, $pager); | |
//.... | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment