protected function _afterEntityInsert(AnCommandContext $context)
    {
        parent::_afterEntityInsert($context);

        if ($this->_send_after_insert) {
            //run no more than 30 seconds
            $command = sprintf('php -d max_execution_time=30 %s/index.php %s id=%d >/dev/null 2>&1', ANPATH_BASE, PROCESSOR_PATH, $context->entity->id);
            //error_log($command);
            $result = exec_in_background($command);
        }
    }
protected function _afterEntityInsert(AnCommandContext $context)
    {
        parent::_afterEntityInsert($context);

        if ($this->_send_after_insert) {
            //run no more than 30 seconds
            $command = sprintf('php -d max_execution_time=30 %s/index.php %s id=%d >/dev/null 2>&1', ANPATH_BASE, PROCESSOR_PATH, $context->entity->id);
            //error_log($command);
            $result = exec_in_background($command);
        }
    }
protected function _afterEntityInsert ( AnCommandContext $ context ) { parent :: _afterEntityInsert ( $ context ) ; if ( $ this -> _send_after_insert ) { //run no more than 30 seconds $ command = sprintf ( 'php -d max_execution_time=30 %s/index.php %s id=%d >/dev/null 2>&1' , ANPATH_BASE , PROCESSOR_PATH , $ context -> entity -> id ) ; //error_log($command); $ result = exec_in_background ( $ command ) ; } }
After Insert command. Called after a notification is inserted. This method
tries to send the notification.

@param AnCommandContext $context The command context
After Insert command . Called after a notification is inserted . This method tries to send the notification .