
** Get all presentations from selection Plan GET /api/v1/summits/{id}/selection-plans/{selection_plan_id}/presentations filtering 'title' => ['=@', '=='], 'abstract' => ['=@', '=='], 'social_summary' => ['=@', '=='], 'tags' => ['=@', '=='], 'level' => ['=@', '=='], 'summit_type_id' => ['=='], 'event_type_id' => ['=='], 'track_id' => ['=='], 'speaker_id' => ['=='], 'speaker' => ['=@', '=='], 'speaker_email' => ['=@', '=='], 'selection_status' => ['=='], 'id' => ['=='], 'selection_plan_id' => ['=='], 'status' => ['=='], 'is_chair_visible' => ['=='], 'is_voting_visible' => ['=='], ** for track chairs app use 'filter' => 'status==Received,is_chair_visible==1', ordering track Scopes REALM_BASE_URL/summits/read AUTHZ super-admins administrators track-chairs track-chairs-admins ** Get individual Selection List GET /api/v1/summits/{id}/tracks/{track_id}/selection-lists/individual/owner/{owner_id} Scopes REALM_BASE_URL/summits/read AUTHZ super-admins administrators track-chairs track-chairs-admins ** Add to my individual Selection List POST /api/v1/summits/{id}/tracks/{track_id}/selection-lists/individual/presentation-selections/{collection}/presentations/{presentation_id} where {collection} should be one of following: * selected * maybe * pass Scopes REALM_BASE_URL/summits/write AUTHZ super-admins administrators track-chairs track-chairs-admins ** Remove From my individual selection list DELETE /api/v1/summits/{id}/tracks/{track_id}/selection-lists/individual/presentation-selections/{collection}/presentations/{presentation_id} where {collection} should be one of following: * selected * maybe * pass Scopes REALM_BASE_URL/summits/write AUTHZ super-admins administrators track-chairs track-chairs-admins ** Get Team Selection List GET /api/v1/summits/{id}/tracks/{track_id}/selection-lists/team Scopes REALM_BASE_URL/summits/read AUTHZ super-admins administrators track-chairs track-chairs-admins ** Create team selection list POST /api/v1/summits/{id}/tracks/{track_id}/selection-lists/team Scopes REALM_BASE_URL/summits/write AUTHZ super-admins administrators track-chairs track-chairs-admins ** Reorder list PUT /api/v1/summits/{id}/tracks/{track_id}/selection-lists/{list_id}/reorder payload hash => 'required|string' collection => 'required|string|in:selected,maybe' presentations => 'required|int_array' ( presentations ids) Scopes REALM_BASE_URL/summits/write AUTHZ super-admins administrators track-chairs track-chairs-admins ** Get track chairs per Summit GET /api/v1/summits/{id}/track-chairs fitering 'member_first_name' => ['=@', '=='], 'member_last_name' => ['=@', '=='], 'member_full_name' => ['=@', '=='], 'member_email' => ['=@', '=='], 'member_id' => ['=='], 'track_id' => ['=='], 'summit_id' => ['=='] Scopes REALM_BASE_URL/summits/read AUTHZ super-admins administrators track-chairs track-chairs-admins ** Mark Presentation as viewed PUT /api/v1/summits/{id}/selection-plans/{selection_plan_id}/presentations/{presentation_id}/view Scopes REALM_BASE_URL/summits/write AUTHZ super-admins administrators track-chairs track-chairs-admins ** Add Presentation Comment POST /api/v1/summits/{id}/selection-plans/{selection_plan_id}/presentations/{presentation_id}/comments Payload 'body' => 'required|string', 'is_public' => 'required|boolean', Scopes REALM_BASE_URL/summits/write AUTHZ super-admins administrators track-chairs track-chairs-admins ** Get all Presention Category Change Request GET /api/v1/summits/{id}/selection-plans/{selection_plan_id}/presentations/all/category-change-requests filtering 'selection_plan_id' => ['=='], 'summit_id' => ['=='], 'new_category_id' => ['=='], 'old_category_id' => ['=='], 'new_category_title' => ['=@', '=='], 'old_category_title' => ['=@', '=='], 'requester_fullname' => ['=@', '=='], 'requester_email' => ['=@', '=='], 'aprover_fullname' => ['=@', '=='], 'aprover_email' => ['=@', '=='] ordering 'id', 'approval_date', 'status' Scopes REALM_BASE_URL/summits/read REALM_BASE_URL/summits/read/all AUTHZ super-admins administrators track-chairs track-chairs-admins ** Add Presentation Category change Request POST /api/v1/summits/{id}/selection-plans/{selection_plan_id}/presentations/{presentation_id}/category-change-requests payload 'new_category_id' => 'required|integer', Scopes REALM_BASE_URL/summits/write AUTHZ super-admins administrators track-chairs track-chairs-admins ** Resolve Presentation Category change Request PUT /api/v1/summits/{id}/selection-plans/{selection_plan_id}/presentations/{presentation_id}/category-change-requests/{category_change_request_id} payload 'approved' => 'required|bool', 'reason' => 'sometimes|string', Scopes REALM_BASE_URL/summits/write AUTHZ super-admins administrators track-chairs track-chairs-admins ** Add track chair POST /api/v1/summits/{id}/track-chairs Payload 'member_id' => 'required|int', 'categories' => 'required|int_array', scopes REALM_BASE_URL/summits/write AUTHZ super-admins administrators track-chairs-admins ** Update track chair PUT /api/v1/summits/{id}/track-chairs/{track_chair_id} Payload 'categories' => 'required|int_array', scopes REALM_BASE_URL/summits/write AUTHZ super-admins administrators track-chairs-admins ** Delete track chairs DELETE /api/v1/summits/{id}/track-chairs/{track_chair_id} scopes REALM_BASE_URL/summits/write AUTHZ super-admins administrators track-chairs-admins ** Get Track Chair by Id GET /api/v1/summits/{id}/track-chairs/{track_chair_id} scopes REALM_BASE_URL/summits/read AUTHZ super-admins administrators track-chairs-admins Change-Id: Iab0d77a6337a0db27c649dcafb1d90f09923df8a Signed-off-by: smarcet <smarcet@gmail.com>
466 lines
16 KiB
PHP
466 lines
16 KiB
PHP
<?php namespace App\Repositories\Summit;
|
|
/**
|
|
* Copyright 2016 OpenStack Foundation
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
**/
|
|
use App\Models\Foundation\Main\IGroup;
|
|
use Doctrine\ORM\Tools\Pagination\Paginator;
|
|
use models\main\Tag;
|
|
use models\summit\ISummitEventRepository;
|
|
use models\summit\Presentation;
|
|
use models\summit\Summit;
|
|
use models\summit\SummitEvent;
|
|
use App\Repositories\SilverStripeDoctrineRepository;
|
|
use utils\DoctrineCaseFilterMapping;
|
|
use utils\DoctrineFilterMapping;
|
|
use utils\DoctrineJoinFilterMapping;
|
|
use utils\DoctrineSwitchFilterMapping;
|
|
use utils\Filter;
|
|
use utils\Order;
|
|
use utils\PagingInfo;
|
|
use utils\PagingResponse;
|
|
use Doctrine\ORM\Query\Expr\Join;
|
|
use utils\DoctrineLeftJoinFilterMapping;
|
|
use models\summit\SummitGroupEvent;
|
|
/**
|
|
* Class DoctrineSummitEventRepository
|
|
* @package App\Repositories\Summit
|
|
*/
|
|
final class DoctrineSummitEventRepository
|
|
extends SilverStripeDoctrineRepository
|
|
implements ISummitEventRepository
|
|
{
|
|
|
|
|
|
private static $forbidden_classes = [
|
|
SummitGroupEvent::ClassName,
|
|
];
|
|
|
|
/**
|
|
* @param SummitEvent $event
|
|
* @return SummitEvent[]
|
|
*/
|
|
public function getPublishedOnSameTimeFrame(SummitEvent $event)
|
|
{
|
|
$summit = $event->getSummit();
|
|
$end_date = $event->getEndDate();
|
|
$start_date = $event->getStartDate();
|
|
|
|
$query = $this->getEntityManager()->createQueryBuilder()
|
|
->select("e")
|
|
->from(\models\summit\SummitEvent::class, "e")
|
|
->join('e.summit', 's', Join::WITH, " s.id = :summit_id")
|
|
->where('e.published = 1')
|
|
->andWhere('e.start_date < :end_date')
|
|
->andWhere('e.end_date > :start_date')
|
|
->setParameter('summit_id', $summit->getId())
|
|
->setParameter('start_date', $start_date)
|
|
->setParameter('end_date', $end_date);
|
|
|
|
$idx = 1;
|
|
foreach(self::$forbidden_classes as $forbidden_class){
|
|
$query = $query
|
|
->andWhere("not e INSTANCE OF :forbidden_class".$idx);
|
|
$query->setParameter("forbidden_class".$idx, $forbidden_class);
|
|
$idx++;
|
|
}
|
|
|
|
return $query->getQuery()->getResult();
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
protected function getFilterMappings()
|
|
{
|
|
return [
|
|
'id' => 'e.id:json_int',
|
|
'title' => 'e.title:json_string',
|
|
'abstract' => 'e.abstract:json_string',
|
|
'level' => 'e.level:json_string',
|
|
'status' => 'p.status:json_string',
|
|
'progress' => 'p.progress:json_int',
|
|
'is_chair_visible' => new DoctrineJoinFilterMapping
|
|
(
|
|
'e.category',
|
|
'c',
|
|
"c.chair_visible :operator :value"
|
|
),
|
|
'is_voting_visible' => new DoctrineJoinFilterMapping
|
|
(
|
|
'e.category',
|
|
'c',
|
|
"c.voting_visible :operator :value"
|
|
),
|
|
'social_summary' => 'e.social_summary:json_string',
|
|
'published' => 'e.published',
|
|
'start_date' => 'e.start_date:datetime_epoch',
|
|
'end_date' => 'e.end_date:datetime_epoch',
|
|
'tags' => new DoctrineLeftJoinFilterMapping
|
|
(
|
|
'e.tags',
|
|
't',
|
|
"t.tag :operator :value"
|
|
),
|
|
'summit_id' => new DoctrineJoinFilterMapping
|
|
(
|
|
'e.summit',
|
|
's',
|
|
"s.id :operator :value"
|
|
),
|
|
'event_type_id' => new DoctrineJoinFilterMapping
|
|
(
|
|
'e.type',
|
|
'et',
|
|
"et.id :operator :value"
|
|
),
|
|
'track_id' => new DoctrineJoinFilterMapping
|
|
(
|
|
'e.category',
|
|
'c',
|
|
"c.id :operator :value"
|
|
),
|
|
'selection_plan_id' => new DoctrineFilterMapping
|
|
(
|
|
"(selp.id :operator :value)"
|
|
),
|
|
'location_id' => new DoctrineLeftJoinFilterMapping
|
|
(
|
|
'e.location',
|
|
'l',
|
|
"l.id :operator :value"
|
|
),
|
|
'speaker' => new DoctrineFilterMapping
|
|
(
|
|
"( concat(sp.first_name, ' ', sp.last_name) :operator :value ".
|
|
"OR concat(spm.first_name, ' ', spm.last_name) :operator :value ".
|
|
"OR concat(spmm.first_name, ' ', spmm.last_name) :operator :value ".
|
|
"OR sp.first_name :operator :value ".
|
|
"OR sp.last_name :operator :value ".
|
|
"OR spm.first_name :operator :value ".
|
|
"OR spm.last_name :operator :value ".
|
|
"OR spmm.first_name :operator :value ".
|
|
"OR spmm.last_name :operator :value) "
|
|
),
|
|
'speaker_email' => new DoctrineFilterMapping
|
|
(
|
|
"(sprr.email :operator :value OR spmm.email :operator :value OR spmm2.email :operator :value OR sprr2.email :operator :value)"
|
|
),
|
|
'speaker_id' => new DoctrineFilterMapping
|
|
(
|
|
"(sp.id :operator :value OR spm.id :operator :value)"
|
|
),
|
|
'sponsor_id' => new DoctrineFilterMapping
|
|
(
|
|
"(sprs.id :operator :value)"
|
|
),
|
|
'sponsor' => new DoctrineFilterMapping
|
|
(
|
|
"(sprs.name :operator :value)"
|
|
),
|
|
'selection_status' => new DoctrineSwitchFilterMapping([
|
|
'selected' => new DoctrineCaseFilterMapping(
|
|
'selected',
|
|
"ssp.order is not null and sspl.list_type = 'Group' and sspl.category = e.category"
|
|
),
|
|
'accepted' => new DoctrineCaseFilterMapping(
|
|
'accepted',
|
|
"ssp.order is not null and ssp.order <= cc.session_count and sspl.list_type = 'Group' and sspl.list_class = 'Session' and sspl.category = e.category"
|
|
),
|
|
'alternate' => new DoctrineCaseFilterMapping(
|
|
'alternate',
|
|
"ssp.order is not null and ssp.order > cc.session_count and sspl.list_type = 'Group' and sspl.list_class = 'Session' and sspl.category = e.category"
|
|
),
|
|
'lightning-accepted' => new DoctrineCaseFilterMapping(
|
|
'lightning-accepted',
|
|
"ssp.order is not null and ssp.order <= cc.lightning_count and sspl.list_type = 'Group' and sspl.list_class = 'Lightning' and sspl.category = e.category"
|
|
),
|
|
'lightning-alternate' => new DoctrineCaseFilterMapping(
|
|
'lightning-alternate',
|
|
"ssp.order is not null and ssp.order > cc.lightning_count and sspl.list_type = 'Group' and sspl.list_class = 'Lightning' and sspl.category = e.category"
|
|
),
|
|
]
|
|
),
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
protected function getOrderMappings()
|
|
{
|
|
return [
|
|
'id' => 'e.id',
|
|
'title' => 'e.title',
|
|
'start_date' => 'e.start_date',
|
|
'end_date' => 'e.end_date',
|
|
'created' => 'e.created',
|
|
'track' => 'cc.title',
|
|
'location' => 'l.name',
|
|
'trackchairsel' => 'ssp.order'
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @param PagingInfo $paging_info
|
|
* @param Filter|null $filter
|
|
* @param Order|null $order
|
|
* @return PagingResponse
|
|
*/
|
|
public function getAllByPage(PagingInfo $paging_info, Filter $filter = null, Order $order = null)
|
|
{
|
|
|
|
$query = $this->getEntityManager()->createQueryBuilder()
|
|
->select("e")
|
|
->from($this->getBaseEntity(), "e")
|
|
->leftJoin(Presentation::class, 'p', 'WITH', 'e.id = p.id')
|
|
->leftJoin("e.location", 'l', Join::LEFT_JOIN)
|
|
->leftJoin("e.category", 'cc', Join::LEFT_JOIN)
|
|
->leftJoin("e.sponsors", "sprs", Join::LEFT_JOIN)
|
|
->leftJoin("p.speakers", "sp", Join::LEFT_JOIN)
|
|
->leftJoin('p.selected_presentations', "ssp", Join::LEFT_JOIN)
|
|
->leftJoin('p.selection_plan', "selp", Join::LEFT_JOIN)
|
|
->leftJoin('ssp.list', "sspl", Join::LEFT_JOIN)
|
|
->leftJoin('p.moderator', "spm", Join::LEFT_JOIN)
|
|
->leftJoin('spm.member', "spmm2", Join::LEFT_JOIN)
|
|
->leftJoin('sp.member', "spmm", Join::LEFT_JOIN)
|
|
->leftJoin('sp.registration_request', "sprr", Join::LEFT_JOIN)
|
|
->leftJoin('spm.registration_request', "sprr2", Join::LEFT_JOIN);
|
|
|
|
if(!is_null($filter)){
|
|
$filter->apply2Query($query, $this->getFilterMappings());
|
|
}
|
|
|
|
if (!is_null($order)) {
|
|
$order->apply2Query($query, $this->getOrderMappings());
|
|
if(!$order->hasOrder('id')) {
|
|
$query = $query->addOrderBy("e.id", 'ASC');
|
|
}
|
|
} else {
|
|
//default order
|
|
$query = $query->addOrderBy("e.start_date",'ASC');
|
|
$query = $query->addOrderBy("e.end_date", 'ASC');
|
|
$query = $query->addOrderBy("e.id", 'ASC');
|
|
}
|
|
|
|
$can_view_private_events = self::isCurrentMemberOnGroup(IGroup::SummitAdministrators);
|
|
|
|
if(!$can_view_private_events){
|
|
$idx = 1;
|
|
foreach(self::$forbidden_classes as $forbidden_class){
|
|
$query = $query
|
|
->andWhere("not e INSTANCE OF :forbidden_class".$idx);
|
|
$query->setParameter("forbidden_class".$idx, $forbidden_class);
|
|
$idx++;
|
|
}
|
|
}
|
|
|
|
$query = $query
|
|
->setFirstResult($paging_info->getOffset())
|
|
->setMaxResults($paging_info->getPerPage());
|
|
|
|
$paginator = new Paginator($query, $fetchJoinCollection = true);
|
|
$total = $paginator->count();
|
|
$data = [];
|
|
|
|
foreach($paginator as $entity)
|
|
$data[]= $entity;
|
|
|
|
return new PagingResponse
|
|
(
|
|
$total,
|
|
$paging_info->getPerPage(),
|
|
$paging_info->getCurrentPage(),
|
|
$paging_info->getLastPage($total),
|
|
$data
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @param int $event_id
|
|
*/
|
|
public function cleanupScheduleAndFavoritesForEvent($event_id){
|
|
|
|
$query = "DELETE Member_Schedule FROM Member_Schedule WHERE SummitEventID = {$event_id};";
|
|
$this->getEntityManager()->getConnection()->executeUpdate($query);
|
|
|
|
$query = "DELETE `Member_FavoriteSummitEvents` FROM `Member_FavoriteSummitEvents` WHERE SummitEventID = {$event_id};";
|
|
$this->getEntityManager()->getConnection()->executeUpdate($query);
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
protected function getBaseEntity()
|
|
{
|
|
return SummitEvent::class;
|
|
}
|
|
|
|
/**
|
|
* @param PagingInfo $paging_info
|
|
* @param Filter|null $filter
|
|
* @param Order|null $order
|
|
* @return PagingResponse
|
|
*/
|
|
public function getAllByPageLocationTBD(PagingInfo $paging_info, Filter $filter = null, Order $order = null)
|
|
{
|
|
|
|
$query = $this->getEntityManager()->createQueryBuilder()
|
|
->select("e")
|
|
->from($this->getBaseEntity(), "e")
|
|
->leftJoin(Presentation::class, 'p', 'WITH', 'e.id = p.id')
|
|
->leftJoin("e.location", 'l', Join::LEFT_JOIN)
|
|
->leftJoin("e.category", 'cc', Join::LEFT_JOIN)
|
|
->leftJoin("p.speakers", "sp", Join::LEFT_JOIN)
|
|
->leftJoin('p.selection_plan', "selp", Join::LEFT_JOIN)
|
|
->leftJoin('p.moderator', "spm", Join::LEFT_JOIN)
|
|
->leftJoin('sp.member', "spmm", Join::LEFT_JOIN)
|
|
->leftJoin('sp.registration_request', "sprr", Join::LEFT_JOIN)
|
|
->where("l.id is null or l.id = 0");
|
|
|
|
if(!is_null($filter)){
|
|
$filter->apply2Query($query, $this->getFilterMappings());
|
|
}
|
|
|
|
if (!is_null($order)) {
|
|
$order->apply2Query($query, $this->getOrderMappings());
|
|
} else {
|
|
//default order
|
|
$query = $query->addOrderBy("e.start_date",'ASC');
|
|
$query = $query->addOrderBy("e.end_date", 'ASC');
|
|
}
|
|
|
|
$can_view_private_events = self::isCurrentMemberOnGroup(IGroup::SummitAdministrators);
|
|
|
|
if(!$can_view_private_events){
|
|
$idx = 1;
|
|
foreach(self::$forbidden_classes as $forbidden_class){
|
|
$query = $query
|
|
->andWhere("not e INSTANCE OF :forbidden_class".$idx);
|
|
$query->setParameter("forbidden_class".$idx, $forbidden_class);
|
|
$idx++;
|
|
}
|
|
}
|
|
|
|
$query = $query
|
|
->setFirstResult($paging_info->getOffset())
|
|
->setMaxResults($paging_info->getPerPage());
|
|
|
|
$paginator = new Paginator($query, $fetchJoinCollection = true);
|
|
$total = $paginator->count();
|
|
$data = [];
|
|
|
|
foreach($paginator as $entity)
|
|
$data[]= $entity;
|
|
|
|
return new PagingResponse
|
|
(
|
|
$total,
|
|
$paging_info->getPerPage(),
|
|
$paging_info->getCurrentPage(),
|
|
$paging_info->getLastPage($total),
|
|
$data
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @param Summit $summit,
|
|
* @param array $external_ids
|
|
* @return mixed
|
|
*/
|
|
public function getPublishedEventsBySummitNotInExternalIds(Summit $summit, array $external_ids)
|
|
{
|
|
$query = $this->getEntityManager()->createQueryBuilder()
|
|
->select("e")
|
|
->from($this->getBaseEntity(), "e")
|
|
->join('e.summit', 's', Join::WITH, " s.id = :summit_id")
|
|
->where('e.published = 1')
|
|
->andWhere('e.external_id not in (:external_ids)')
|
|
->setParameter('summit_id', $summit->getId())
|
|
->setParameter('external_ids', $external_ids);
|
|
|
|
return $query->getQuery()->getResult();
|
|
}
|
|
|
|
/**
|
|
* @param int $summit_id,
|
|
* @return array
|
|
*/
|
|
public function getPublishedEventsIdsBySummit(int $summit_id):array
|
|
{
|
|
$query = $this->getEntityManager()
|
|
->createQueryBuilder()
|
|
->select("e.id")
|
|
->from($this->getBaseEntity(), "e")
|
|
->join('e.summit', 's', Join::WITH, " s.id = :summit_id")
|
|
->where('e.published = 1')
|
|
->setParameter('summit_id', $summit_id);
|
|
|
|
$res = $query->getQuery()->getArrayResult();
|
|
return array_column($res, 'id');
|
|
}
|
|
|
|
/**
|
|
* @param PagingInfo $paging_info
|
|
* @param Filter|null $filter
|
|
* @param Order|null $order
|
|
* @return PagingResponse
|
|
*/
|
|
public function getAllPublishedTagsByPage(PagingInfo $paging_info, Filter $filter = null, Order $order = null): PagingResponse
|
|
{
|
|
|
|
$query = $this->getEntityManager()->createQueryBuilder()
|
|
->select("distinct t")
|
|
->from(Tag::class, "t")
|
|
->join("t.events", 'e')
|
|
->leftJoin(Presentation::class, 'p', 'WITH', 'e.id = p.id');
|
|
|
|
if(!is_null($filter)){
|
|
$filter->apply2Query($query, [
|
|
'tag' => 't.tag:json_string',
|
|
'summit_id'=> new DoctrineJoinFilterMapping
|
|
(
|
|
'e.summit',
|
|
's',
|
|
"s.id :operator :value"
|
|
),
|
|
]);
|
|
}
|
|
|
|
if (!is_null($order)) {
|
|
$order->apply2Query($query, [
|
|
'tag' => 't.tag',
|
|
]);
|
|
} else {
|
|
$query = $query->addOrderBy("t.tag", 'ASC');
|
|
}
|
|
|
|
$query = $query
|
|
->setFirstResult($paging_info->getOffset())
|
|
->setMaxResults($paging_info->getPerPage());
|
|
|
|
$paginator = new Paginator($query, $fetchJoinCollection = true);
|
|
$total = $paginator->count();
|
|
$data = [];
|
|
|
|
foreach($paginator as $entity)
|
|
$data[]= $entity;
|
|
|
|
return new PagingResponse
|
|
(
|
|
$total,
|
|
$paging_info->getPerPage(),
|
|
$paging_info->getCurrentPage(),
|
|
$paging_info->getLastPage($total),
|
|
$data
|
|
);
|
|
}
|
|
} |