Documentation

add

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

Static method adds a task into Favorites for a specific (or current) user. This function does not check access permissions.

Parameters

ParameterDescriptionVersion
$dataPrimary key.
$behaviourBehaviour flags:
  • CHECK_EXISTENCE - when set as true, the function checks if the task is in Favorites (database query is added). By default value is true. When set to false can result in SQL query error.
  • AFFECT_CHILDREN - when value is true, all subtasks are also going to be added to Favorites (be default false).


© «Bitrix24», 2001-2024