Documentation

add

\Bitrix\Main\Entity\AddResult public static
\Bitrix\Tasks\Task\FavoriteTable::add(
 array ,
 array 
);

This static method adds task to Favorites for specific (or current) user. This function does not check access permission.

Parameters

ParameterDescriptionVersion
$dataPrimary key.
$behaviourBehaviour flags :
  • CHECK_EXISTENCE - when true, function checks task's Favorites status (database query is added). By default value is true. When set to false, it can result in SQL error.
  • AFFECT_CHILDREN - when true, all subtasks will be also added to favorites (false by default).


© «Bitrix24», 2001-2024
Up