select = (array) $select; parent::__construct($entityName, $actionName); } /** * @return array */ protected function getBatchRecords() { $params = [ 'checkPermissions' => $this->checkPermissions, 'where' => $this->where, 'orderBy' => $this->orderBy, 'limit' => $this->limit, 'offset' => $this->offset, ]; if (empty($this->reload)) { $params['select'] = $this->select; } return (array) civicrm_api4($this->getEntityName(), 'get', $params); } /** * @return array */ protected function getSelect() { return $this->select; } }