+--------------------------------------------------------------------+
*/
namespace Civi\API;
+
use Civi\API\Exception\UnauthorizedException;
/**
$this->apiFieldSpec = $this->getFields();
$this->query = \CRM_Utils_SQL_Select::from($bao->tableName() . ' ' . self::MAIN_TABLE_ALIAS);
- $bao->free();
// Add ACLs first to avoid redundant subclauses
$this->checkPermissions = $checkPermissions;
while ($result_dao->fetch()) {
if (in_array('count_rows', $this->select)) {
- $result_dao->free();
return (int) $result_dao->c;
}
$result_entities[$result_dao->id] = [];
}
};
}
- $result_dao->free();
return $result_entities;
}