HOR-3670-RG-3 Files review:

workflow/engine/classes/entities/Entity_AppSolrQueue.php 
workflow/engine/classes/entities/Entity_Base.php 
workflow/engine/classes/entities/Entity_FacetGroup.php 
workflow/engine/classes/entities/Entity_FacetInterfaceRequest.php 
workflow/engine/classes/entities/Entity_FacetInterfaceResult.php 
workflow/engine/classes/entities/Entity_FacetItem.php 
workflow/engine/classes/entities/Entity_FacetRequest.php 
workflow/engine/classes/entities/Entity_FacetResult.php 
workflow/engine/classes/entities/Entity_SelectedFacetGroupItem.php 
workflow/engine/classes/entities/Entity_SolrQueryResult.php
This commit is contained in:
Roly Rudy Gutierrez Pinto
2017-08-11 16:37:01 -04:00
parent b1016289f4
commit b1fde52397
30 changed files with 3328 additions and 3531 deletions

View File

@@ -0,0 +1,38 @@
<?php
class EntitySolrQueryResult extends EntityBase
{
public $sEcho = '';
public $iTotalRecords = 0;
public $iTotalDisplayRecords = 10;
public $aaData = array(); // array of arrays of records to
// display
private function __construct()
{
}
public static function createEmpty()
{
$obj = new EntitySolrQueryResult();
return $obj;
}
public static function createForRequest($data)
{
$obj = new EntitySolrQueryResult();
$obj->initializeObject($data);
$requiredFields = array(
'sEcho',
'iTotalRecords',
'iTotalDisplayRecords',
'aaData'
);
$obj->validateRequiredFields($requiredFields);
return $obj;
}
}