2017 © Pedro Peláez
 

library bitrix-ajax-response

image

domatskiy/bitrix-ajax-response

  • Sunday, October 29, 2017
  • by domatskiy
  • Repository
  • 1 Watchers
  • 0 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

bitrix-ajax-response

Установка

composer require domatskiy/bitrix-ajax-response

использование Closure

    new AjaxResponse(function(){

        ... 

        });

использование метода класса

    new AjaxResponse('class@method');

Использование старого bitrix api

Важно: в запросе нужно передавать поле 'ajax' со значением 'Y', (*1)

    new AjaxResponse('class@method', true);

Пример

define("STOP_STATISTICS", true);
define('NO_AGENT_CHECK', true);
define("STATISTIC_SKIP_ACTIVITY_CHECK", true);

use Domatskiy\AjaxResponse;

# подключаем bitrix
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");

if(class_exists('\Domatskiy\AjaxResponse')){

    new AjaxResponse(function(){

        $result = new AjaxResponse\Result();
        $data = array();

        # body

        $result->setData($data);
        return $result;

        });

    }

The Versions

29/10 2017

dev-master

9999999-dev http://domatskiy.ru

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

The Development Requires

by Evgeniy Domatskiy

user actions save cookie

29/10 2017

v1.4.0

1.4.0.0 http://domatskiy.ru

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

The Development Requires

by Evgeniy Domatskiy

user actions save cookie

28/10 2017

v1.3.0

1.3.0.0 http://domatskiy.ru

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

The Development Requires

by Evgeniy Domatskiy

user actions save cookie

28/10 2017

v1.2.0

1.2.0.0 http://domatskiy.ru

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

The Development Requires

by Evgeniy Domatskiy

user actions save cookie

22/09 2017

v1.2.1

1.2.1.0 http://domatskiy.ru

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

The Development Requires

by Evgeniy Domatskiy

user actions save cookie

21/09 2017

dev-dev

dev-dev http://domatskiy.ru

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

The Development Requires

by Evgeniy Domatskiy

user actions save cookie

14/09 2017

v1.1.1

1.1.1.0 http://domatskiy.ru

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

The Development Requires

by Evgeniy Domatskiy

user actions save cookie

14/09 2017

v1.1.0

1.1.0.0 http://domatskiy.ru

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

The Development Requires

by Evgeniy Domatskiy

user actions save cookie

14/09 2017

v1.0.2

1.0.2.0 http://domatskiy.ru

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

The Development Requires

by Evgeniy Domatskiy

user actions save cookie

14/09 2017

v1.0.1

1.0.1.0 http://domatskiy.ru

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

The Development Requires

by Evgeniy Domatskiy

user actions save cookie

14/09 2017

v1.0.0

1.0.0.0 http://domatskiy.ru

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

The Development Requires

by Evgeniy Domatskiy

user actions save cookie