php bitrix-php任务

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php bitrix-php任务相关的知识,希望对你有一定的参考价值。

<?php
//get tasks list
$tasks = restCommand('task.item.list', 
    array(
       'ORDER' => array('DEADLINE' => 'desc'),
       'FILTER' => array('RESPONSIBLE_ID' => $user, '<DEADLINE' => '2016-03-23'),
       'PARAMS' => array(),
       'SELECT' => array()
    ), 
    $_REQUEST["auth"]);
    
if (count($tasks['result']) > 0) {
  $arTasks = array();
  foreach ($tasks['result'] as $id => $arTask) {
     $arTasks[] = array(
        'LINK' => array(
           'NAME' => $arTask['TITLE'],
           'LINK' => 'https://'.$_REQUEST['auth']['domain'].'/company/personal/user/'.$arTask['RESPONSIBLE_ID'].'/tasks/task/view/'.$arTask['ID'].'/'
        )
     );
     $arTasks[] = array(
        'DELIMITER' => array(
           'SIZE' => 400,
           'COLOR' => '#c6c6c6'
        )
     );
  }
  $arReport = array(
     'title' => "Oh yeah, we've got trouble. Tackle these ASAP:",
     'report'  => '',
     'attach' => $arTasks
  );
}
else {
  $arReport = array(
     'title' => "You're awesome!",
     'report'  => "You're no fun, no tasks overdue. Just joking, keep it up!",
  );
}
print_r($arReport);

以上是关于php bitrix-php任务的主要内容,如果未能解决你的问题,请参考以下文章

php bitrix-php crm联系

php bitrix-php crm领先

php bitrix-php crm.company

php bitrix-php crm.deal

php 如果自动执行任务

宝塔上怎么做定时任务执行php脚本得,请大牛指点,详解谢谢