How to access the code in an Internal API?
Content
Hi,
Following is the code snippet from model file (okcs.php), which the controller of Answerlist widget references to fetch the list of answers. I wanted to understand, how can we check the code inside the getArticlesSortedBy function, specified as an internal API method?
Model file: okcs.php
-----------------------------------------
function __construct() {
parent::__construct();
require_once CORE_FILES . 'compatibility/Internal/OkcsApi.php';
$this->okcsApi = new \RightNow\compatibility\Internal\OkcsApi();
}
public function getArticlesSortedBy(array $filter) {
$localeCode = str_replace("-", "_", $this->getLocaleCode());
$length = $filter['truncate'];
$pageNumber = $filter['pageNumber'];
$pageSize = $filter['pageSize'];
$response = $this->okcsApi->getArticlesSortedBy($filter, $localeCode);
....
.....
}
Thanks!