Documentation

Add

int Add($settings);

Adds a new report. Static method.

Function parameters

Parameter Description
settings Array with the new report configuration.

Returned value

Returns ID of the created report, or false otherwise.

Examples of use

<?
$ID = CReport::Add( array( 'title' => 'List of tasks', 'description' => 'Just a list of tasks', 'owner' => 'TASKS', 'entity' => 'Bitrix\\Tasks\\Task', 'period' => array( 'type' => 'month', 'value' => null ), 'select' => array( 0 => array('name' => 'TITLE'), 1 => array('name' => 'PRIORITY'), 2 => array('name' => 'RESPONSIBLE.SHORT_NAME'), 3 => array('name' => 'STATUS_PSEUDO') ), 'filter' => array(), 'sort' => 0, 'sort_type' => 'ASC', 'limit' => null, 'red_neg_vals' => false, 'grouping_mode' => false, 'chart' => null ) );
?>

© «Bitrix24», 2001-2024
Up