Documentation

GetCountInt

int GetCountInt($ownerId = '');

Allows to receive the number of user reports, corresponding to ownerId, or all user reports, if ownerId is not specified. Static method.

Function parameters

Parameter Description
$ownerId Owner ID. As a rule, contains name of the module, to which reports pertain to, as well as the name of basic entity (if reports can be generated in the module baed on different entities).

Returned value

Returns the number of reports.

Examples of use

<?
<br/>
$n = CReport::GetCountInt('crm');
echo '<p>Number of reports by deals: '.$n.'.</p>';
<br/>
?>

© «Bitrix24», 2001-2024